2. Is it possible to convert the maildrop filter rules (~/.mailfilter)
to procmail filter rules? The rules in maildrop are very simple, like:
if ((/^Sender: *thelist-list-bounces\(_at_)list\(_dot_)com/))
{
to "./Maildir/.thelist/."
}
Yes to:
:0
* ^Sender:(_dot_)*thelist-list-bounces(_at_)list(_dot_)com
Maildir/.thelist/
I tried this and created a .procmailrc like this:
SHELL=/bin/sh
PATH=$HOME/bin:/bin:/usr/bin:/usr/local/bin
MAILDIR=$HOME/Maildir
DEFAULT=$MAILDIR/
:0
* ^Sender: (_dot_)*thelist-list-bounces(_at_)list(_dot_)com
$MAILDIR/.thelist/
Then I tried to filter one email like this:
cat
~/Maildir/cur/101405463.M298580P16461V0000000000000701I006AE554_0.mymailhost,S\=2452\:2,S
| formail -ds procmail
I get this error message (is it possible to avoid?):
procmail: Couldn't create "/var/spool/mail/myuser"
And the email seem to be filtered to Maildir/.thelist/new/ which is
nice. But
1. the new filename is "1102514170.7652_2.mymailhost" and I would prefer
to keep the same old filename if possible
("101405463.M298580P16461V0000000000000701I006AE554_0.mymailhost,S=2452:2,S")
and
2. the timestamp on "1102514170.7652_2.mymailhost" is the current
date+time insted of the date+time from the original mail
("101405463.M298580P16461V0000000000000701I006AE554_0.mymailhost,S=2452:2,S").
Is it possible to solve 1 and 2? If I just knew the output filename
("1102514170.7652_2.mymailhost") and the location
(Maildir/.thelist/new/) I could in a script rename the result and then
change the timestamp back with "touch".
Thanks for your help!
Best regards,
Jan
____________________________________________________________
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