procmail
[Top] [All Lists]

Re: Use procmail on gateway

2001-09-28 13:29:35
Hoff_D <Hoff_D(_at_)bls(_dot_)gov> writes:
-----Original Message-----
From: Philip Guenther [mailto:guenther(_at_)gac(_dot_)edu]

Mprocmail,      P=/usr/local/bin/procmail, F=DFMSPhnu9,
Note that there's no 'm' flag in the F= directive.  That's what
controls this.

I didn't realize this was case-sensitive, but I built it from the .mc file
with MODIFY_MAILER_FLAGS(`procmail', `+m')dnl, so I don't know what's going
on.

Aha, the first argument to the MODIFY_MAILER_FLAGS() macro is the
prefix for the macros that govern in the target mailer.  Those are all
in uppercase, so the correct usage is

        MODIFY_MAILER_FLAGS(`PROCMAIL', `+m')dnl

That must occur before the "MAILER(`procmail')" line.


For local delivery, LMTP solves that problem.  For generic 
filtering via
mailfiltermode (-m) you can do it with careful use of 
recursive rcfiles,
but that's not for the faint of heart.

Do you have any good webpages or other docs about this?

Not really.  The mailing list archive contains posts by David Tamkin and
me that use recursive rcfiles for various purposes, but I don't know of
any webpages that are specific to using them with sendmail's procmail
mailer, or even general suggestions on writing recursive rcfiles.

Personally, I've found my experience programming in scheme and lisp,
programming languages where all looping is done via recursion, to have
been good preparation for writing recursive rcfiles in procmail...but
that's just me.  I believe David has said that he's never done any
'formal' studying of programming, so such experience is certainly not
a requirement for becoming a procmail wizard.


Philip Guenther
_______________________________________________
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>