🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #137135

Re: [Dialog] Filtering on the To: field

#137135
From: Enrico Bauer
Date: Sat, 08 Nov 2003 16:55
68 lines
4098 bytes
08.11.2003 12:12:02, *foxidrive*:
> On Sat, 08 Nov 2003 07:18:07 GMT, foxidrive wrote:
>> On Fri, 7 Nov 2003 21:49:33 +0100, Enrico Bauer wrote:
>>> 07.11.2003 15:00:49, *foxidrive*:
>>>> [outgoing]
>>>> !move(george) to "george@hotmail.com"
>>> No AFAICS.
> The use of the Header keyword was pointed out to me and I have been playing
> around with it.  Is this a supported syntax and should it only score msgs
> TO an address that contains george?

I don't think so. AFAIS you cannot score or connect an action to the
To-Header.

>From the helpfile:

,---- [dialog.chm::/scoringactionsyntax.htm] 
| When retrieving article headers in an XOver operation you can score on
| the following headers: 
| 
| From         The From header field 
| Subject      The Subject of the message 
| Date         The Date of the message 
| Message-ID   The Message-ID of the message 
| References   The contents of the References header field 
| Bytes        The number of bytes of the message 
| Lines        The number of lines of the message 
| XRef         The contents of the XRef header field 
| XPost        A virtual, numerical field holding the number of groups
|              this message was posted to. 
| Age          A virtual, numerical field holding the age of the article
|              in numbers of days. 
| Score        The score of the message
`----

Two things: The To-Header is not mentioned and the help file speaks of
"retrieving" only. Scoring on these headers works *without* the
header-keyword.

> [outgoing]
> +20 Header (To) "george"
> In my tests it scores as 20 the emails that are addressed to george as well
> as messages that are from george, but addressed to someone else (and which
> does not contain george).  
> IE: The sample contained messages from myself to myself ("george") as well
> as messages from myself to another person, and all of them were scored as
> 20.


If you use the header-keyword in scoring and actions Dialog won't look
for your entry in a specific header anymore, but in all headers from the
XOver.

,---- [dialog.chm::/scoringactionsyntax.htm] 
| When retrieving bodies for articles or when receiving emails all headers
| are available for scoring. You can then additionally score on "Header".
| The variable "Header" holds the complete list of header fields of the
| message, separated by CRLF pairs. To score on this you might need to use
| regular expressions.
`----

Pay attention to the second sentence!

So - what you're trying to achieve is just not possible at the moment
(as I said from the beginning ;-)). Your scoring rule will match every
time there's a "george" somewhere in any header.

Enrico B.
Technical Details
Message-ID: <13uccbzv39ycf$.dlg@ID-5349.user.dfncis.de>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.20140922.mbox.gz!news5.aus1.giganews.com!firehose2!nntp4!intern1.nntp.aus1.giganews.com!border3.nntp.aus1.giganews.com!small1.nntp.aus1.giganews.com!nntp.giganews.com!newsfeed.stueberl.de!fu-berlin.de!uni-berlin.de!port-212-202-175-49.reverse.qsc.DE!not-for-mail
References: <1munzpn05wrus$.snsiemab0rt0$.dlg@40tude.net> <w0d8xja206th$.dlg@ID-5349.user.dfncis.de> <168nbzsiwfbbo.ew8pz0ywkze5$.dlg@40tude.net> <gfz3jpe8b0iq.a6q2lbjhte7p.dlg@40tude.net>

Show Full Headers
Complete Article Headers
Message-ID: <13uccbzv39ycf$.dlg@ID-5349.user.dfncis.de>
Subject: Re: [Dialog] Filtering on the To: field
Date: Sat, 8 Nov 2003 17:55:33 +0100
From: Enrico Bauer <enrico.bauer@web.de>
References: <1munzpn05wrus$.snsiemab0rt0$.dlg@40tude.net> <w0d8xja206th$.dlg@ID-5349.user.dfncis.de> <168nbzsiwfbbo.ew8pz0ywkze5$.dlg@40tude.net> <gfz3jpe8b0iq.a6q2lbjhte7p.dlg@40tude.net>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.20140922.mbox.gz!news5.aus1.giganews.com!firehose2!nntp4!intern1.nntp.aus1.giganews.com!border3.nntp.aus1.giganews.com!small1.nntp.aus1.giganews.com!nntp.giganews.com!newsfeed.stueberl.de!fu-berlin.de!uni-berlin.de!port-212-202-175-49.reverse.qsc.DE!not-for-mail
Newsgroups: news.software.readers
Lines: 68
Reply-To: ebsms@web.de
NNTP-Posting-Host: port-212-202-175-49.reverse.qsc.de (212.202.175.49)
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
X-Trace: news.uni-berlin.de 1068310527 47242704 212.202.175.49 (16 [5349])
User-Agent: 40tude_Dialog/2.0.8.14 (6cc39d14.464.511)
X-Face: "&aKKyoaJpNK$`uu7'woSmH_rFEuu~&'J|`sjOpDlW_9Cd=YY]\pE[~Y}vP:sU)lB(@dQ,
 a %K`.Y/hW2AE-!GbsoUh}#~7WA|~|u[u>+"NqU"7ZC>6)s#:5lP\m5~wL77|K