[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

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

  http://rhols66.adsl.netsonic.fi/era/unix/award.html

Or perhaps pigeons just like cats. :)

The following part

$
?^--* Yahoo! Groups Sponsor --*~?
.,/-----------------------/d
1
/^$/
i
X-Footer-Stripped: yes
.
w
q

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 <vincent@vinc17.org> - 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



Reply to: