procmail
[Top] [All Lists]

Re: cc w/o removing the mail from /var/spool/mail/user_name

1997-02-20 09:17:58
"Carlos" == Carlos Lisboa <carlos(_at_)edo(_dot_)net> writes:

Carlos> How to send a copy of a received mail received from "kyko" to
Carlos> another account and keeping the original on
Carlos> /var/spool/mail/user_name? (The user reads his email w/
Carlos> eudora)

You should add a X-Loop header field to prevent bounces. Try this
(untested):
:0
* ^From.*kyko
* ! ^X-Loop: clisboa(_at_)edo(_dot_)net
{
:0fh
| formail -A 'X-Loop: clisboa(_at_)edo(_dot_)net

:0c
! weblocal(_at_)edo(_dot_)net clisboa(_at_)edo(_dot_)net
}

You should read man 5 procmailex for more examples.

-- 
Guy Geens <guy(_dot_)geens(_at_)elis(_dot_)rug(_dot_)ac(_dot_)be>
Home Page: http://www.elis.rug.ac.be/~ggeens
finger ggeens(_at_)elis(_dot_)rug(_dot_)ac(_dot_)be for PGP public keys (or use 
keyserver) 

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