procmail
[Top] [All Lists]

Comments on this recipe

1999-12-10 12:04:40
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.

Thanks in advance for your suggestions
Nicholas Waltham



SHELL=/bin/sh

PATH = /usr/local/bin:/usr/bin:/bin:/usr/cyrus/bin

:0 h
TO=| formail -xTo:

:0 h
FROM=| formail -rt -xTo:
                           
# Attempt delivery
:0 w
* ^From.*wwf.org.co
* !^X-Loop:.*BCC
|((formail -rt -k -b -a"X-Loop: BCC" -i "MIME-Version:" \
                  -i "Content-Type:" \
                  -a  "Reply-To:$TO"; \
                  echo  "---" ) | \
  /usr/sbin/sendmail -f $FROM)

:0
/dev/null

<Prev in Thread] Current Thread [Next in Thread>
  • Comments on this recipe, Nicholas Waltham <=