At 12:08 PM 8/3/2002 -0500, David W. Tamkin wrote:
Scott asked,
| I noticed when procmail saves messages to a directory, it gives them odd
| filenames like "msg.O5y".
| Is there any way to know what that filename is
| going to be? I need to pass that name to a perl script that's running.
OK, that confuses me. You want the perl script to know what the filename is
going to be *before* procmail creates it, when it doesn't exist yet? Because
if you are running the perl script after procmail saves the message and you
want perl to know what filename procmail already chose, it's in the LASTFOLDER
variable, and you could do something like this:
:0c # no local lockfile needed on save to directory
* conditions
directory
:0ai
| perlscript.pl $LASTFOLDER
Yes David, that's exactly what I meant, sorry for the confusion. I want the
perl script to know the filename *after* procmail creates it. The
$LASTFOLDER variable was exactly what I was looking for.
Just out of curiosity, I didn't see this documented in either the man pages
or the FAQ. How does one learn something like this?
Thanks!
Scott
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail