procmail
[Top] [All Lists]

Re: To get system time in procmailrc

2002-06-11 19:14:35
On 11 Jun, David W. Tamkin wrote:
| 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.
| 

I've got a hunch the need is for more precision than whole seconds, and
the goal is some sort of per message benchmarking. If so, and if Imran
is still around and can follow up to say he's interested, I can share an
idea.

-- 
Reply to list please, or append "6" to "procmail" in address if you must.
Spammers' unrelenting address harvesting forces me to this...reluctantly.


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