Hi. I have recently installed and configured Procmail, and am running qmail
with Maildir. I have a user with literally thousands of messages in his
inbox, a good 80% of it spam. I've also just installed Spamassassin and
Razor, and am calling both from procmail. As he has already downloaded this
mail, I want to rerun the filters to remove the spam from his inbox. I
followed the great advice already posted
(http://www.xray.mpe.mpg.de/mailing-lists/procmail/2002-07/msg00377.html),
but the timestamp is modified to the current date and time.
Does anybody know of a way to preserve the original date of the messages?
Here is the script I am using -
#!/bin/sh
MAILDIR=$1
TEMPDIR=$HOME/temp
PROCMAILRC=~/.procmailrc
mkdir $HOME/temp
mv $MAILDIR/cur/* $TEMPDIR
mv $MAILDIR/new/* $TEMPDIR
for file in $(find $TEMPDIR); do
procmail $PROCMAILRC < $file
done
rm -fr $TEMPDIR
Thanks in advance.
Mark
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail