At 04:45 PM 1/26/98 +0100, Michael Kater wrote:
Hi,
now I have put verbose on (thanks to era and roland), I see that
procmail skips the necessary lines. I put the script and the lines
from the log below. Any idea?
[snip]
:0
* ^X-Envelope-To:.<cti(_at_)hotel-germany(_dot_)com>
* < 50000
* !^X-Loop: cti(_at_)hotel-germany(_dot_)com
{
FROM=`formail -xFrom:`
TO=`formail -xTo:`
| ( formail -t -I"From: fax(_at_)hotel-germany(_dot_)com" \
-I"To: michael(_dot_)kater(_at_)t-online(_dot_)de" -I"Bcc:
kater(_at_)www-marketing(_dot_)com" \
-I"X-Loop: cti(_at_)hotel-germany(_dot_)com" ; \
echo "### original message from:$FROM to:$TO ###" ) \
| $SENDMAIL -f fax(_at_)hotel-germany(_dot_)com -oi
michael(_dot_)kater(_at_)t-online(_dot_)de
}
Is that line that starts with -I"To: combined with the next
line in your .procmailrc or did your mail client split it
when mailing to the list?
As I received it, it's split as above, and I can't predict
what that would do. Newlines in quotes do work sometimes anyway,
as in:
NL="
"
but I wouldn't be surprised if procmail is fooled by such things
inside of parentheses. Besides, you won't want a newline
right after Bcc: anyway in the formail call.
I don't know if joining those two lines will fix your problem,
but it may be a start. Personally, I dislike editors AND
mail clients that "help" by wrapping lines automatically.
Hope that helps,
Stan