procmail
[Top] [All Lists]

Re: Comments on this recipe

1999-12-23 03:11:14
"Nicholas Waltham" <nick(_at_)wwf(_dot_)org(_dot_)co> writes:
I have set up postfix to BCC all mail to an alias, which then runs
procmail with this recipe. The idea is that the BCC should go back
to the sender, which can then have the mail automatically filed in 
their set items. Its a bit crude to say the least, and I am really
wondering if there is some way I can extract the LHS of the address
(the username) to be able to file directly into the users Sent Items
instead of having to go through the MTS again.

What do you mean by "sender"?  If you mean "the user (login) on the system
which generated the message" then it's a question of whether postfix
saves that somewhere.  What about message that come in via SMTP, perhaps
from someone's desktop machine?  How are you going to determine who
the sender is?

If by "sender" you mean the originater as specified in the standard
headers (From:, Sender:, Return-Path:, etc) then the recipes you have
are about as close as you'll get.  I would probably change the "FROM"
recipe to not use the -t flag on formail.  This will cause formail to
favor the envelope sender over the header sender, which is more likely
to be what you want in this situation.


Philip Guenther

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