🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #137768

Re: [Dialog] Anything equivalent to Agent's "Any-Sender" ?

#137768
From: foxidrive
Date: Wed, 19 Nov 2003 06:58
37 lines
2922 bytes
On Tue, 18 Nov 2003 20:23:24 -0800, Ken Stuart wrote:

> I am implementing "rules" in Dialog in order to automatically put incoming
> email into the appropriate folder (especially for mailing list messaages).
> 
> Does Dialog have anything equivalent to Agent's "Any-Sender" and
> "Any-Recipient"?
> 
> Here is the Agent Help blurb for it:
> 
> " The fields Any-Sender and Any-Recipient have special meaning.  Any-Sender
> matches the first non-empty field from the set of fields (From,
> Apparently-From, Sender, Reply-To, X-Sender).  For example, the filter
> any-sender: tom.gold appears in any of the listed fields.  Similarly, any
> recipient matches the set (To, Apparently-To, Cc, Bcc). "

I think you'd need a string of regular expressions, one for each header, in
the following format.

!move(ToFolder) Header {^X-Apparently-To:.*$}

You might also be interested in the Help from Dialog under scoring/actions
for mailing lists:

===[start copy]===
A variation of this is: 

[email.*] 
!move(@%X-Mailing-List%) Header {^(X-Mailing-List:)} 

Notice the additional "@" in the target folder expression. If this @ is
present, the value of the header field is simply searched for the character
@ and only the text before the first found @ is used as the target folder.
Again, for a message which has a "X-Mailing-List:
speedboats@yahoogroups.com" header field, the message would be moved to the
"speedboats" folder, instead of the "speedboats@yahoogroups.com" folder. 
===[end copy]===
Technical Details
Message-ID: <1dgebzolxoi49.d5btryk3937z.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!internal1.nntp.ash.giganews.com!border2.nntp.ash.giganews.com!border1.nntp.ash.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!newsfeed.vmunix.org!news1.optus.net.au!optus!news.optus.net.au!53ab2750!not-for-mail
References: <n9bba2pb0uyv$.5lswzqpwhsuv.dlg@40tude.net>

Show Full Headers
Complete Article Headers
Message-ID: <1dgebzolxoi49.d5btryk3937z.dlg@40tude.net>
Subject: Re: [Dialog] Anything equivalent to Agent's "Any-Sender" ?
Date: Wed, 19 Nov 2003 06:58:50 GMT
From: foxidrive <foxidrive@Shotmail.com>
References: <n9bba2pb0uyv$.5lswzqpwhsuv.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!internal1.nntp.ash.giganews.com!border2.nntp.ash.giganews.com!border1.nntp.ash.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!newsfeed.vmunix.org!news1.optus.net.au!optus!news.optus.net.au!53ab2750!not-for-mail
Newsgroups: news.software.readers
User-Agent: 40tude_Dialog/2.0.8.1
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
X-Original-NNTP-Posting-Host: 220.240.64.143
X-Original-Trace: 19 Nov 2003 17:58:49 +1100, 220.240.64.143
Lines: 37
NNTP-Posting-Host: 203.194.27.1
X-Complaints-To: abuse@comindico.com.au
X-Trace: news.optus.net.au 1069225130 203.194.27.1 (Wed,
NNTP-Posting-Date: Wed, 19 Nov 2003 17:58:50 EST
Organization: Comindico Australia - reports relating to abuse should be sent
 to abuse@comindico.com.au