procmail
[Top] [All Lists]

Re: Using Message-ID as unique file name?

1997-07-13 05:08:00
At 09:22 AM 7/13/97 +0900, Mitsuru Furukawa wrote:

Is it safe(possible) to use  Message-ID as unique file name
for later reference?
Or does it incur problems due to meta characters which might be
included in ID?

I don't think meta characters would hurt; however, a "/" wouldn't
work... also, I've seen spams with "Message-ID: <>" which is
certainly not unique (nor would it be unique if you got two copies
of the same mail such as this one... note that my copy direct to
you and the one you get from the list will have the same Message-ID).


If it is not safe, 
is there any way I could refer(know) the unique file name
just created automatically by directing email to directory textmail/.
in same recipe?

Or is there any easy way to create unique file name
and refer it in same recipe?

The process-id in $$ is unique *while you're running*.  You ought to
be able to construct a unique filename from the date and time
in the "From " pseudo-header, combined with $$.  To refer to it
in the same recipe, just construct the name in a variable first.

Hope that helps,
Stan

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