procmail
[Top] [All Lists]

Re: Adding custom mail headers via a filter?

2002-10-16 17:11:42
Robert,

I've been watching this thread, and so far I haven't seen enough
information clearly presented for me to clearly understand exactly what
you're doing.

Robert Nicholson wrote:

I will conduct one more test for the skepics...

It doesn't take many errors for a skeptic to conclude that everything
should be deemed of questionable veracity.

In fact, it may only take one, from a previous post:
RFC says that Headers ie. Mail Headers are separated
from the Body by a newline.

No. What *the* RFC says (that would be 2822) is that the header MUST BE
separated from the body by CRLFCRLF.

In practice, interpretation of carriage control semantics means this is
converted to the appropriate newline semantics on the host platform... most
of the time. For instance on a .*n.*x box \n == LF, whereas on the Mac \n
== CR. This is discussed in various perl and C programming references and
is an important concern when for instance doing raw socket programming.

Why is one character being stripped from certain lines, both of the
messages and the log records? Why, indeed.

I'll activate the strip_rule and remove the second filter and see if
the message
comes through correctly into the copy folder directly without using a
filter.

If it does then my contention that procmail is having problems filtering
a message twice holds true.

You might be right (then again, you might not).

"Doctor, it hurts when I do this... <boink>" "Don't do that."

I just did this and I can say that whenever only one filter sees the
message
the From_ line remains in tact. If I enable two filters and they
process the message the
message after it leaves the first filter is missing the From_ header.

I can say that I'm sure nobody else is having this problem.


I see you're using perl. Here's a link to the perl script which I use
(which doesn't use CPAN::MIME). It handles MIME parts and recognizes the
difference between the header and the body; but it doesn't decode
attachments.

  http://www.inwa.net/~m3047/perljacket/

--

Fred Morris
m3047(_at_)inwa(_dot_)net


_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail