procmail
[Top] [All Lists]

Q: How to change -0000 to +0000 in Date: field?

2000-10-31 09:47:08
I have noticed that since Sunday, when the UK reverted to GMT (Time zone
+0000), that a number of messages are arriving with a timezone setting
of "-0000" (rather than "+0000" which I suspect is the "correct" form.)

Apart from encouraging my correspondents to "get a real
MTA/MUA/whatever", I am trying to write a small Procmail recipe to make
the above change from -0000 to +0000 in the Date field of incoming
messages.

I have the following idea:

:0 fhw
* Date:.*\-0000.*
! /bin/sed -e 's/\-0000/\+0000/g'

This would seem to work, but I am aware that it could change -0000 to
+0000 elsewhere in the headers, since the sed filter is non-specific,
and I'd prefer this not to happen.

I would appreciate advice on how to make the above rule more specific.

Thanks,

Dave.
-- 
Dave Ewart
ewart(_at_)icrf(_dot_)icnet(_dot_)uk
Computing Manager
ICRF Cancer Epidemiology Unit, Oxford UK

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