procmail
[Top] [All Lists]

Re: Catch-all list filter

2008-01-04 15:03:15
On Fri, 4 Jan 2008, David Dyer-Bennet wrote:
It seems obvious to me, actually; I'd deliver the mesage to both 
/mailbox1 and /mailbox2 if condition1 was satisfied.  Since condition 
lines have the leading "*" to mark them, I see no ambiguity.

It's not ambiguity. It's just a simple syntactical rule of 'one action'
per recipe. The number (or even presence) of conditions is irrevlant.
The ":0" does not attach to the condition, it attaches to the action.

Every delivery line attaches to the most recent : line (with some
rules to get it right across {}).

*Could* be done, but really, how often do you want to do that?
It is much simpler parsing to just say 'next line is action'.

The man page even talks about delivering to multiple mailboxes or 
directories (saying that in the case of multiple directories, hardlinks 
are used); in the absence of saying what the syntax is to invoke that 
function, I was assuming multiple lines.
(Which leads me to the question of what the man page *does* mean when it 
talks about delivering to multiple directories; what syntax does that?)

The procmailex man page shows examples - all on one line space separated.

Probably in Perl, and maybe TCL, where "@" is an interpolation character 
within double-quoted strings? I know I've run into it in those contexts.

(nod) That would be it. Also, I think, in spamassassin, because it uses
Perl RE's.....

- Charles

____________________________________________________________
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>