🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.readers
6 messages
6 total messages Started by RichGK Mon, 12 Apr 2004 22:39
[Dialog] Scoring for the "To" address
#146223
Author: RichGK
Date: Mon, 12 Apr 2004 22:39
11 lines
1408 bytes
I'm attempting to create a rule so that emails to specific addresses get
marked such as this.

=+500 For "joe@blablaryeyf.com"

I get an error that indicates that "For" isn't recognised (neither does
"To"), can anyone tell me what to use here?

Thanks,
Rich.
 
Re: [Dialog] Scoring for the "To" address
#146226
Author: Antonio 'Gandalf' Favata
Date: Mon, 12 Apr 2004 22:47
15 lines
1879 bytes
RichGK skribis:

> I get an error that indicates that "For" isn't recognised (neither does
> "To"), can anyone tell me what to use here?

=+500 Header "To: joe@blablaryeyf.com"

or even better

=+500 Header {^(To|CC|X-(Apparently|Original)-To):.*joe@blablaryeyf\.com}
-- 
Fare Well!    FIAG http://www.fiag.it ~ X-Privat http://www.x-privat.org
G             40tude Dialog 2.0.10.1it (beta 33) http://snurl.com/dialog
Dialog, Agent, Pimmy, Xnews, Gravity... news:it.comp.software.newsreader
Mozilla Suite, Firefox, Thunderbird... news:it-alt.comp.software.mozilla
Re: [Dialog] Scoring for the "To" address
#146254
Author: daRkSidE
Date: Tue, 13 Apr 2004 12:49
16 lines
2021 bytes
*RichGK*, 13.04.04 00:39, news.software.readers:

> =+500 For "joe@blablaryeyf.com"
> I get an error that indicates that "For" isn't recognised (neither does
> "To"), can anyone tell me what to use here?

Shouldn't you use From?
However, just Xover headers (plus XPost, Age, Score and Header) can be
used as field.

I would be a good idea let usable directly every header for email
sections. (Dunno if already asked in Mantis)

-- 
13.04.2004 14:01:40, daRkSidE
Foobar: The Smashing Pumpkins - Bullet with butterfly wings
Re: [Dialog] Scoring for the "To" address
#146259
Author: RichGK
Date: Tue, 13 Apr 2004 16:48
19 lines
1648 bytes
On Tue, 13 Apr 2004 00:47:23 +0200, Antonio 'Gandalf' Favata amazed us all
by typing:

> RichGK skribis:
> 
>> I get an error that indicates that "For" isn't recognised (neither does
>> "To"), can anyone tell me what to use here?
> 
> =+500 Header "To: joe@blablaryeyf.com"
> 
> or even better
> 
> =+500 Header {^(To|CC|X-(Apparently|Original)-To):.*joe@blablaryeyf\.com}

Thanks!

Could you tell me what the second rule achieves?

Rich.
Re: [Dialog] Scoring for the "To" address
#146502
Author: Antonio 'Gandalf' Favata
Date: Fri, 16 Apr 2004 23:45
27 lines
2554 bytes
RichGK skribis:

>> =+500 Header "To: joe@blablaryeyf.com"
>> or even better
>> =+500 Header {^(To|CC|X-(Apparently|Original)-To):.*joe@blablaryeyf\.com}
> Thanks!

You're welcome (and sorry for the late reply).

> Could you tell me what the second rule achieves?

Mainly three things:
1. It checks that the joe@ address is actually in the To (or similar)
   header, and not e.g. in the Subject header, as in
||   	Subject: To: joe@blablaryeyf.com
   This is because of the ^, it means «beginning of the string/line».
2. It checks four fields (To, CC, X-Apparently-To and X-Original-To),
   not only the To one. You may want to remove this feature, depending
   on your needs. Header {^To:.*blablaryeyf\.com} will do.
3. It will match even if the content of the To field is not only that
   email address but also a name or such, as in
||	To: Joe <joe@blablaryeyf.com>
-- 
Fare Well!    FIAG http://www.fiag.it ~ X-Privat http://www.x-privat.org
G             40tude Dialog 2.0.10.1it (beta 33) http://snurl.com/dialog
Dialog, Agent, Pimmy, Xnews, Gravity... news:it.comp.software.newsreader
Mozilla Suite, Firefox, Thunderbird... news:it-alt.comp.software.mozilla
Re: [Dialog] Scoring for the "To" address
#146532
Author: RickM
Date: Sat, 17 Apr 2004 12:14
39 lines
2317 bytes
On 17 Apr 2004 Antonio 'Gandalf' Favata
<gandalf@shadowfax.ithn.invalid> wrote: 

> RichGK skribis:
> 
>>> =+500 Header "To: joe@blablaryeyf.com"
>>> or even better
>>> =+500 Header
>>> {^(To|CC|X-(Apparently|Original)-To):.*joe@blablaryeyf\.com} 
>> Thanks!
> 
> You're welcome (and sorry for the late reply).
> 
>> Could you tell me what the second rule achieves?
> 
> Mainly three things:
> 1. It checks that the joe@ address is actually in the To (or
> similar) 
>    header, and not e.g. in the Subject header, as in
>||        Subject: To: joe@blablaryeyf.com

Actually it still doesn't work the way you might expect it to. If you
set up a filter for this group, like:
        =+500 Header {^from:.*dialog}
you will most likely [wrongly] get quite a few hits.

Since ".*" also covers CRLFs the filter spills over into other headers.

To avoid this you can use something like this:
        =+500 Header {^from:[^\n]*dialog}        
which checks that there isn't a new line between the two terms.

(BTW, I posted a very similar message to this when Dialog was first
released and I was evaluating it but I don't think that anyone latched
onto it.)

-- 
Rick
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads