procmail
[Top] [All Lists]

Re: Recipe problem

2004-08-25 13:06:12
On Wed, Aug 25, 2004 at 02:29:00PM -0500, Chuck Campbell wrote:
* (^TO|^TO_|^Sender:|^X-list:|^FROM_DAEMON|^From:.*)linux-xfs

Hint:
    What is the difference between
    Sender:linux-xfs
    Sender: linux-xfs

So, I thought the .* meant to match anything except a newline
(including white space).  Or does it only apply to the ^From:, the way
I've got it written?

A quick scan of man procmail, man procmailrc and man procmailex
doesn't find the macro definitions for ^TO, ^TO_, ^FROM_DAEMON, so I
haven't been able to look them up yet... 

Should this work then?

:0
* (^TO |^TO_ |^Sender: |^X-list: |^FROM_DAEMON |^From: .*)linux-xfs
linux-xfs

or should it be this?

:0
* (^TO|^TO_|^Sender:|^X-list:|^FROM_DAEMON|^From:.*) linux-xfs
linux-xfs

or is it really supposed to tbe this?

:0
* (^TO|^TO_|^Sender:|^X-list:|^FROM_DAEMON|^From:).* linux-xfs
linux-xfs

Better.  But, ^FROM_DAEMON is very specific for messages from "daemon".
Normally, you would do,
    * ^Sender:.*linux-xfs
or
    * ^X-list:.*linux-xfs
or
    * ^TO_xfs-master

-- 
William Park <opengeometry(_at_)yahoo(_dot_)ca>
Open Geometry Consulting, Toronto, Canada

____________________________________________________________
procmail mailing list   Procmail homepage: http://www.procmail.org/
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

<Prev in Thread] Current Thread [Next in Thread>