procmail
[Top] [All Lists]

Re: Forwarding and Saving

1997-12-07 12:58:18
On Sun, 7 Dec 1997 07:44:15 -0500 (EST) The_Saw wrote
      Now comes the problem.  I want to add an X-Loop header to mail
that comes in, forward it here, but also save it in the INBOUND.MAIL
folder.  I've succeeded at making procmail do these two things:

1) Send the mail to here with the X-Loop header, and stick the mail
  in /var/spool/mail/saw so it can disappear.
2) Put the mail in /home/saw/mail/INBOUND.MAIL and not forward it over
  to this account.


Let's see If I understand this correctly...  You want to add X-Loop
to all incoming mail, save it in $HOME/INBOUND.MAIL on the receiving
machine, and forward it to another account.  If this is correct, something
roughly similar to the following should do the trick:

:0 fw
| formail -A "X-Loop: <some address>"

MAILDIR=$HOME
:0 c:
INBOUND.MAIL

:0
! <address...>

-- 
Chris Mikkelson                 
mikk0022(_at_)maroon(_dot_)tc(_dot_)umn(_dot_)edu
U of M Tuba and Student    "Life is too short for windows..."
'94-present

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