Toen wij Jan Banan kietelden, kwam er dit uit:
DEFAULT = $MAILDIR/there-are-problems.mbx :)
Hmm... I didn't get that joke. If I don't set "DEFAULT" then all
emails that doesnt get filtered by a rule seem to disapear.
I supposed from your earlier question that you wanted to handle
all messages. So if one would end up on $DEFAULT, you would
have missed one.
But of course you can set DEFAULT to the filename to which
you want to have the message delivered. Even directly from
the commandline.
:0
* ^From: (_dot_)*thelist-list-bounces(_at_)list(_dot_)com
.thelist/
The dot before com can be any character, so
thelist-list-bounces(_at_)list-com(_dot_)ar
would also match.
But even when fixed, it would still match
thelist-list-bounces(_at_)list(_dot_)com(_dot_)ar
and even
not-thelist-list-bounces(_at_)list(_dot_)com(_dot_)ar
"procmail -v" tells me "Your system mailbox: /var/spool/mail/myuser".
But my environment $MAIL is set to "/home/myuser/Maildir". Shouldn't
that be enough?
I don't know.
1. the new filename is "1102514170.7652_2.mymailhost" and I would
prefer to keep the same old filename if possible
See man procmail, the -m option.
I've checked the man-page for -m but am still a bit confused. You mean
it is possible to keep the same filename if I use "-m" with apropriate
parameters?
No, and my suggestion of looking into -m is not really useful here,
sorry.
You can also create a shell-script that loops file-by-file, calling
procmail
to filter your file from 101405463.M... to the same name in a different
directory, and then transfer date & time & any other attributes.
Btw, I saw that it seem not neccesary to do "cat themail | formail -ds
procmail". It seem to be enough to do (as myuser) "cat themail |
procmail".
They are both useless uses of cat.
procmail ./special.rc < themail
or maybe
procmail -a 'themail' ./special.rc < themail
or even
procmail DEFAULT='../newer/themail' ./special.rc < themail
--
Grtz, Ruud
____________________________________________________________
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