From: Dallman Ross [mailto:dman(_at_)netcom(_dot_)com]
From: era eriksson [mailto:era(_at_)iki(_dot_)fi]
until you notice that your new recipe doesn't work like you
intended, and spend three days without food or drink before
you realize that this "mysterious bug" was just a case of
freaking missing parens. :-)
Been there. Done that.
Like tonight. Four or five hours to find out that the sed
on this machine doesn't like whitespace between statement
ends and a semicolon, like this:
( formailstuff ;\
sed "s/before1/after1/ ;\
s/before2/after2/ ;\
s/before3/after3/" somefile ) | $SENDMAIL $SENDMAILFLAGS -t
I've been doing it that way for years. I kept getting an
empty somefile in my test mail with a weird "can't parse"
error in the logs. Finally, in exasperation, I took the
whitespace out before the sed statement-separator semicolons
and it worked. Weirdest thing I've seen in a while.
Now that I got it - that was the last bit on my virtual-domain-
handling rcfile - I will post the whole rcfile on a web page.
Would appreciate folks' taking a look and commenting on what
I could do better. Bait: you even get to see the real names
of my virtual domains. :-) David Tamkin will also find a
lot of his old ideas in there, with some changes over the
years. As I said, suggestions for tweaking solicited.
http://www.bluebottlefly.com/procmailrc.htm
I have to wrap this up, grab 2 hours' sleep, and pack for
a plane trip and a week away. Ugh. When I land stateside
and hit the hotel I'll look eagerly for comments re. the rcfile.
--
Dallman Ross
U.S. Voicemail/FAX: +1 (415) 680-2388
Residence Telephone: +49 (0) 6122 / 98 04 46
Cellular Telephone: +49 (0) 177 / 515 34 69
<dman(_at_)netcom(_dot_)com> ? <dman(_at_)nomotek(_dot_)com> ?
<dman(_at_)oxon(_dot_)de>