procmail
[Top] [All Lists]

RE: another virus for your checker

2003-09-28 14:05:35
David W. Tamkin wrote:

Dallman asked,

Confession time: I've never used the -m, and only have the
vaguest idea what turning "procmail into a general purpose
mail filter" is supposed to mean (see "man procmail"); or
why I might want to.  I know that what I used above skips
any /etc/procmailrc, too.  Can someone explain -m better than
the man pages do?

-m leaves ORGMAIL unset, skips the sanity check on $ORGMAIL, does 
pre-set DEFAULT (to what $ORGMAIL would have been), defaults 
MAILDIR to the cwd of the invocation rather than defaulting it to 
$HOME, and passes its remaining positional parameters (after -m, 
any command-line variable assignments, and one rcfile) to the 
rcfile as "$@" with their count as $#.

I've found it useful for wedging into outgoing mail if your 
MUA allows it.  Instead of letting the mail client invoke the MTA 
directly, you can do some massaging by making it call procmail -m 
instead.  

And . . .

 You could do that without -m, but when you know you don't want 
mail saved to $ORGMAIL -m has the efficiency of skipping the 
sanity check and of not writing to $ORGMAIL if the save to 
$DEFAULT fails.

Great restatement, David; thanks a bunch.

I don't see procmailing outgoing mail in my medium-scale future,
and like you have never yet done the feed-to-pipe trick quite
like that either; so I probably will continue to forget about
the -m for the next little while.  But at least now I know why
I might want to think about it at some point.

Dallman


_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

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