procmail
[Top] [All Lists]

Overwrites Valid Date in From line with Current Date

1997-01-22 13:48:26
Procmail Gurus,

The problem is the date being created by procmail on the first line, as in
the following. 

From procmail-request(_at_)Informatik(_dot_)RWTH-Aachen(_dot_)DE Wed Jan 22 
14:52:05 1997
...
.
Date: Wed, 22 Jan 1997 20:24:42 +0100 (MET)
...
.

I am a newbie to procmail and formail, but am downloading mail from ISP
to a file, then create valid headers with dates inside procmailrc, but it seems
that procmail regenerates the "From" line after the .procmailrc changes.
The general procedure is 

cat $TMPFILE | formail -s procmail .procmailrc

where .procmailrc contains the rules

:0 fhw                          # remove from line
| formail -I "From "
 
:0 fhw                          # recreate from line
| formail -a "From " -a "Date:"

What am I missing, any suggestions.  I have searched the archives and FAQ's,
and tried every possible imaginable combination.  Please Help, I will summarize
to the list.

Thanks,
jwf

John W. Funk, P.Eng                     voice: 905-829-5028
CAD/CAM & Unix Consultants Inc.           fax: 905-829-0517
P.O. Box 61024, Maple Grove P.O.        email: jwf(_at_)ccuc(_dot_)on(_dot_)ca
Oakville, Ontario, Canada L6J 7P5

<Prev in Thread] Current Thread [Next in Thread>
  • Overwrites Valid Date in From line with Current Date, John W. Funk <=