Re: Exim vs Procmail (was: Sendmail vs Exim vs Others)
On 2004-01-31 23:51:55 +0000, Pigeon wrote:
> I don't think I'm trying to say "don't use procmail". Just that
> there's more than one way to skin a cat. Which is one of the things I
> like about Linux. I had the choice between "figure out procmail" and
> "use bash / ed / exim which I already know"; I took the easy way out.
Well, looking at your scripts:
cat | /usr/sbin/exim -bm pigeon
cat $SCRIPTFILE | ed $TMPFILE > /dev/null 2>/dev/null
cat $TMPFILE | /usr/sbin/exim -bm pigeon
you have won several Useless Use of Cat Awards
Or perhaps pigeons just like cats. :)
The following part
?^--* Yahoo! Groups Sponsor --*~?
is also quite obfuscated. Several commands to do one thing...
Moreover your solution isn't fault tolerant. For instance, if the disk
is full, you may lose mail.
Vincent Lefèvre <email@example.com> - Web: <http://www.vinc17.org/> - 100%
validated (X)HTML - Acorn Risc PC, Yellow Pig 17, Championnat International
des Jeux Mathématiques et Logiques, TETRHEX, etc.
Work: CR INRIA - computer arithmetic / SPACES project at LORIA