procmail
[Top] [All Lists]

writing in mbox file after formail command.

2005-02-08 10:45:13
Hi,

I try to write emails to mbox file after extracting the recipient
in the header with formail.

my procmailrc lokks like that :

-------------------
:0
{
  OTRE=`formail -xX-Original-To | /bin/sed -e 's/@.*//' -e 's/ //'`

  :0
  /var/spool/mail/$OTRE
}
-------------------

It's quite simple, but after a lot of modifications, it still don't work.
the email address is in "X-Original-To" header field.

I try to extract the email, and from the email extract the username and then
write the email in the mbox user's file.

what's wrong with his procmailrc ?

thank's for your help. 

---------------------------
http://webmail.netbadri.com

____________________________________________________________
procmail mailing list   Procmail homepage: http://www.procmail.org/
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

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