procmail
[Top] [All Lists]

Extracting to username of the To header

2001-02-02 21:13:38

Hello,

I am new to this list and was hoping that someone might be able to help me.
I have a Linux shell account and all mail for my subdomain goes to my user 
account.. so it 
doesn't matter what username is used, I will receive it. I already use this 
with procmail for 
having automatic-response addresses, etc but what I want to do is this:

extract the username from To: header into the variable $TOUSER, copy the mail 
to the folder 
/home/fiona/Mail/$TOUSER, and then pipe the mail into my shell script 
whattodo.sh.

I reckon I need to be using formmail to do the extraction bit, but am not too 
familar with it. 
Can anyone help out?

Thanks in advance,
  __    
  |_
  |   I O N A

_____________________________________

Get your free E-mail at http://www.ireland.com
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

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