Thanx for ur answers and sorry for spams that i have caused.
I am writing a script which when get a mail, it extracts its sender's mail
id and save the mail in lets say /tmp/mail .Now i am sending this mail id
and this saved file to an script which process it.
Now if two mails come simultaneously. It is overwriting the /tmp/mail ,
and thus my script gets confused and didn't work. To solve this I tried to
store mail as /tmp/$TIME which i am getting from DATE , in this hope that
even if two mails come consecutive second, it will store them in separate
files.
But when my script goes in production, there are cases when mails are
coming within a second. So i was thinking of getting a millisecond
precision.
here is my script. Sorry for the spam i have created.
VERBOSE = ...........
UMASK= .........
EX_SCRIPT = ...........
:0
{
:0
* ^From:.*\/[^ @<]+(_at_)[^ >]+
{ WHOFROM = $MATCH }
:0
* ^Date:.*\/[^ ]+:[^ ]+
{TIME = $MATCH}
:0 c:
/tmp/$TIME
:0 c
| EX_SCRIPT -w ........$WHOFROM ............../tmp/$TIME .........
}
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail