procmail
[Top] [All Lists]

Re: To get system time in procmailrc

2002-06-11 08:21:15
Imran asked,

| whenever i recieve a mail i want to know the system time at which it
| recieved, system time is in millisecond accuracy. for example as systime()
| returns in gawk.

As Erik has already said, you can extract date, hours, minutes, and seconds
from the From_ line.  But millisecond accuracy is another story.  There's a
Heisenberg problem here: by the time your MTA hands the message over to
procmail, procmail invokes a program that will report the time to the
millisecond, and that program tells the time back to procmail, it's probably
no longer the same millisecond as it was when the message arrived.

If you can settle for accuracy to the whole second, extract the timestamp from
the From_ line.



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