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

Re: Content-Length header (Was: Some myths regarding apt pinning)



Isaac To wrote:
> When the above mail arrives my mailbox, the "From " becomes ">From ".  This
> is de-facto standard (for V7 Mailboxes), I know, and is added by procmail.

And added by any delivery agent delivering mail to an old style mail
file.  It is not just procmail.  It is required.

> Anyone know whether there is a convenient "filter" that can be put
> in procmail to add a correct Content-Length header into the mail
> even if that has not been there before?  ("filter" put in quote
> because I know they can't be "real" filter, but must instead store
> the whole message somewhere in order to count the number of bytes
> there before going back and rewrite the Content-Length header.)

IIRC in the www.mutt.org docs there are references to that.  Also more
references as to why you should not do that.  Here is one classic
treatise on the subject.  Read this before trying what you suggest.

  http://www.jwz.org/doc/content-length.html

Your better option would be to convert to Maildir format mailbox.
Those do not need to escape From markers.  Here is a useful reference
for this.

  http://www.nb.net/~lbudney/linux/software/safecat.html

Bob

Attachment: pgpk8YNVYaL6X.pgp
Description: PGP signature


Reply to: