[lug] Procmail question

proterin at attbi.com proterin at attbi.com
Tue Oct 29 10:30:27 MST 2002

On Tue, Oct 29, 2002 at 05:09:15PM +0100, rm at fabula.de wrote:

>  how can a add a mail header during procmail processing?

Add a filter recipe using formail:

# Add header to bob's messages containing the current (local) date
:0 f
* ^TO_bob*
| (now=`/bin/date`;formail -a"Foo: $now")

More information about the LUG mailing list