procmail
[Top] [All Lists]

Re: How To Capture Date Command Output To A Variable.

2004-04-15 16:25:08
Toen wij multimedia-fan(_at_)myrealbox(_dot_)com kietelden, kwam er dit uit:

I tried
  DATE='/usr/bin/date -R'
But I still get  the header inserted as
X-Email-Status:  Processed at  /usr/bin/date -R

See the date-related examples in man procmailex. 

You don't have to store it in a variable first.

  :0 fhw
  | $FORMAIL -A "X-Email-Status: Processed at `/usr/bin/date`"


You can also get the date and time from the From_ header:
http://www.xs4all.nl/~rvtol/procmail/basic/pm/H_From_parse.inc 

-- 
Grtz, Ruud

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