On Mon, Oct 10, 2005 at 11:34:38AM -0700, Professional Software Engineering
wrote:
Uhm, use the one procmail saves the message with? Shouldn't that be unique
- if the message were to have ":2,S" trailing it when read, wouldn't a
regular mail client have issues renaming the file, or do they rename it to
a different basename as well?
:0c
$MAILDIR/.INBOX.Procmail/
# if from self, mark it read by renaming it
# (seems this would be faster than piping, but I haven't checked)
:0
* ^From:(_dot_)*lists(_at_)tntluoma\(_dot_)com
* ? mv $LASTFOLDER $LASTFOLDER:2,S
/dev/null
# discard any unwarranted copy.
:0
/dev/null
I just caught Bart's post before sending this, and his approach of using
TRAP seems much better.
Yup. The logic is fine, too: procmail already saved as that filename,
so it's unique, and sticking "2,S" on the end by whatever method -- whether
the mail client or procmail did it -- is going to be find.
Come to think of it, isn't that syntax Bart posted sort of familiar?
Let's see:
http://www.xray.mpe.mpg.de/cgi-bin/w3glimpse2html/procmail/2005-08/msg00193.html?49#mfs
That was me on the 24th of August, but I didn't yet think of using TRAP.
David Tamkin had thought of it already on the 23rd of August, though:
http://www.xray.mpe.mpg.de/mailing-lists/procmail/2005-08/msg00194.html
Timothy, did you not see those posts?
Dallman
____________________________________________________________
procmail mailing list Procmail homepage: http://www.procmail.org/
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail