Cristian, et al --

Welcome to the list!

...and then Cristian said...
% 
...
% To tell the truth, my line actually reads,
% "|IFS=' ' && p=/usr/bin/procmail && test -f $p && exec $p -Yf- || exit 75 #cris"
% where chris is my login. I don't think this complicated stuff is
% really necessary.

If you're the only user on the box, that's moderately safe to say, but
it's really there for a reason.  You wouldn't want your MTA to try to
deliver to a nonexistent program, so it's safest to test to make sure
the file is there before you exec it, and you might as well set a nice,
short variable name to the full path (because it might not be in the MTA's
shell path, either) and save yourself some typing.  If you're not using
mbox format, you don't need the Yf options, but your can get messed up
otherwise.  Finally, if the file doesn't exist or the exec fails you want
to exit with a meaningful exit status.  Finally, since lots of people
logically use the same procmail invocation, it's best to put a comment
and your login name after the exit to ensure that the invocation line is
unique so that a smart MTA doesn't skip delivering to you right after
having delivered to someone else with an identical invocation (when
neither of you has the comment at the end).

But it's your mail; you do what you want ;-)

Jun, I highly recommend procmail, but I haven't tried any other filtering
and delivering methods.  As Cristian said, it's really not a good idea to
expect a mail user agent (MUA) to do the delivering and sorting; that's
for your mail delivery agent (MDA) to handle after the mail transport
agent (MTA) gets it onto the system.


:-D
-- 
David T-G                      * It's easier to fight for one's principles
(play) [EMAIL PROTECTED] * than to live up to them. -- fortune cookie
(work) [EMAIL PROTECTED]
http://www.justpickone.org/davidtg/    Shpx gur Pbzzhavpngvbaf Qrprapl Npg!

Attachment: msg20806/pgp00000.pgp
Description: PGP signature

Reply via email to