On Mon, 1 Mar 2004, Bob George wrote:
However, you might just want to let procmail create the
filenames rather than resort to mktemp.
I may have missed a capability. I'd ideally like each message
("session") to get a guaranteed-unique directory to work in, so multiple
instances could run concurrently. Something clever with Msgid?
No, nothing so fancy. Just deliver the message into a directory rather
than a file, and procmail will determine a unique name for it (in much the
same way mktemp would) and store that name in the variable LASTFOLDER.
There are three possibilities:
# This stores the message in a uniquely-named file
# (see the MSGPREFIX variable)
:0c:
/tmp
# This stores the message in an MH-format uniquely-numbered file
:0c:
/tmp/.
# This stores the message in a DJB "maildir" format tree
# (expects subdirectories "new" and "current", etc.)
:0c:
/tmp/
__________
Here's a fun feature I've never used:
"When procmail is delivering to directories, you can specify multiple
directories to deliver to (procmail will do so utilising
hardlinks)."
I have _no_ idea what LASTFOLDER is set to, in that case.
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail