LuKreme wrote Friday, August 03, 2007 10:06 AM:
so, what is the final TRAP that works, since the message
needs to me renamed to indicate it's been seen AND moved from
new to cur?
Afterall, $LASTFOLDER will contain something like
.<MAILBOX>/new/<RANDOM_STUFF>.<HOSTNAME>
This will be platform-dependent, but -- though I did
not test it -- the last message posted by Mr. Mann
seemed to be good.
He wrote (this requires a Bourne-y shell):
:0
* some-regexp
{
TRAP='mv ${LASTFOLDER} ${LASTFOLDER%%new/*}cur/${LASTFOLDER##*/}:2,S'
:0
some-folder/
}
--
dman
____________________________________________________________
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