I use procmail to filter my mail from certain people and mailing
lists into separate folders.  What I would like to do is have
procmail send a copy of every message that it receives to another
user (or to another file).

As an example, the local user account that I use for e-mail is
"hypnos".  Fetchmail grabs the mail using POP3 (over SSH) at
regular intervals while I'm connected.  Fetchmail, of course,
sends the mail to sendmail, which sends it to procmail for
delivery (I think).  For ANY and EVERY message that is sent to
"hypnos", I would like to send a copy to another local user
account "archive", or, alternately (and probably easier), to a
local file "archive".

I know I need to add a recipe to my .procmailrc file (and it
probably should be at the top), but I'm unable to figure out
the appropriate recipe.  I found an example in procmailex(5)
man page, but it was part of another filter (so it only did
the copy/forward for certain messages).  I need the recipe
to copy the message to the other user/file and then continue
to process the original based on the remaining procmail recipes.

I won't include my .procmailrc file for space reasons, but all
the recipes follow this format:

:0:
* ^TOlinux-newbie
mail/linux-newbie

Any pointers, help, or examples that anyone can provide would
be much appreciated.


Reply via email to