procmail
[Top] [All Lists]

Re: generating Resent-Date:

1996-08-24 05:18:45
David W. Tamkin writes on 23 August 1996 at 23:14:48
[...]
Alan Stebbens suggested,

|     :0fh
|     | formail -I"Resent-Date: `date`"

[...]
once it goes out and (2) I can always massage the format options of date to
get output in the standard syntax of Date: headers.  But is there a way to do

I don't have answers to any of your other questions, but I can provide
the following

# get the date in RFC822 format for insertion into some messages;
# the "Resent-Date:" field is copied from the "Date:" field on some systems.
# RFC1123 says "All mail software SHOULD use 4-digit years in dates..."
# sun4 doesn't recognize all "date" flags
#year=`date '+%y'`
#DATE=`cent=19; if [ $year -lt 70 ]; then cent=20; fi; date "+%a, %d %h $cent%y 
%T EST"`
DATE=`date '+%a, %d %h %Y %H:%M:%S %Z'`

   Dan
------------------- message is author's opinion only ------------------
J. Daniel Smith <DanS(_at_)bristol(_dot_)com>        http://www.bristol.com/~dan
Bristol Technology B.V.                   +31 33 450 50 50, ...51 (FAX)
Amersfoort, the Netherlands               {info,jobs}(_at_)bristol(_dot_)com

<Prev in Thread] Current Thread [Next in Thread>