At 15:36 2002-05-13 -0500, Justin Heimburger wrote:
One of our procmail users is experiencing an odd problem with formail
(with procmail v3.15.2). Here's the recipe:
:0 w
| formail -i 'From: <internal address>' \
| $SENDMAIL <vendor address> \
<other internal address>
FTR, you know that -i will retain the original From: header as Old-From:,
right?
When we receive email from this vendor,
From what vendor? This recipe has no conditions - it's for EVERYTHING
that reaches the recipe.
the subject has a leading comma in it, which appears to be the source of
the problem. Formail then sends the email to the intended recipients,
formail doesn't send email to anyone it processes what you pass into it,
and passes that processed data to it's output.
changing the 'From:' line to the desired value.
That's what formail does. Instead of piping to sendmail, redirect it to a
file and examine it. Methinks it'll be a kosher message differing only in
the From: and Old-From headers. When you realize that's the case, you
might start looking at the MTA for problems...
When our second internal address receives the email (see 'other internal
address' above), there is no subject.
Q: what is your MTA? What if you redirect this message to a file, then
manually, at a shell prompt, redirect it into your MTA with the same
invocation syntax?
Instead, the header and body of the original message appear in the body of
the message sent by formail.
Again, formail doesn't send messages. Do the outer message headers
indicate that they were the ones processed by Formail (the modified From:),
or are those on the internal headers (my guess is that this is where
they're showing up)? If neither, ask yourself why.
Is this a known issue with formail? What options do we have to work
around the leading comma?
I'm guessing if it's an issue with anything, it it an issue with your MTA.
---
Sean B. Straw / Professional Software Engineering
Procmail disclaimer: <http://www.professional.org/procmail/disclaimer.html>
Please DO NOT carbon me on list replies. I'll get my copy from the list.
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail