procmail
[Top] [All Lists]

Re: Using Formail to remove headers

2005-07-31 15:42:31
On Sunday, July 31, 2005 11:05 PM
<dman(_at_)nomotek(_dot_)com> wrote:

One way: Save the headers you want into vars, remove all headers,
put the headers you want back.

 :0
 | formail -I ""         \
           -I "$H_FROM"  \
           -I "$H_SUBJ"  \
           -I "$H_CTYPE" \
           -I "$H_MIME"  \
           -I "$H_CTE"   \
           -I "$H_DISPO" \
 | $SENDMAIL $SENDMAILFLAGS -t someone(_at_)somewhere

Thanks Dallman, that looks perfect!  I didn't know you could save vars like 
that.  My next project would be to set up an alias file type of thing 
instead of using all this for each and every mailling list.  I'll let you 
(everyone) know if I need help.

Once again, thanks very much.
Steve :) 


____________________________________________________________
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>