procmail
[Top] [All Lists]

Re: forwarding to a user that is in the body of the message

2006-01-05 02:40:50
Juan A Seuc wrote:

I have an email account that receives emails from a particular program.

Those emails have the following string in the body of the message.

…

Submitted by: jgomez E-mail : <none>

…

I want to forward to the string that appears after “Submitted by:”

Can any one provide some examples of the .procmailrc file to 
accomplish this job.

:0
* ^Subject: or another header by which you can identify this type of mails
* B ?? Submitted by: *\/[a-zA-Z0-9_]+
! $MATCH(_at_)example(_dot_)com

Note: You will need to change the regular expression to allow all 
characters that may appear in a valid username.

-- 
Klaus Johannes Rusch
KlausRusch(_at_)atmedia(_dot_)net
http://www.atmedia.net/KlausRusch/


____________________________________________________________
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