[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: procmail/fetchmail question



On 2005-10-22 15:41:17 -0400, stan wrote:
> Can anyone show me how to write a procmail recipe that adds
> something (like **SPAM** to the To: header in a message?

You can do this with formail. Something like that:

TO=`formail -xTo:`

:0 fhw
* conditions
| formail -I "To: new@address, $TO"

-- 
Vincent Lefèvre <vincent@vinc17.org> - Web: <http://www.vinc17.org/>
100% accessible validated (X)HTML - Blog: <http://www.vinc17.org/blog/>
Work: CR INRIA - computer arithmetic / SPACES project at LORIA



Reply to: