From: Morten K. Poulsen <morten@afdelingp.dk>
To: mlmmj@mlmmj.org
Subject: Re: [Fwd: Re: Mails in incoming cause of "invalid from"]
Date: Mon, 18 Sep 2006 19:18:03 +0000 [thread overview]
Message-ID: <5cc1638fad7ae4e67ef00a22914cd607@mail.n0rd.dk> (raw)
In-Reply-To: <450B2711.4030008@darkman.de>
Hi Sven,
On Sun, 17 Sep 2006 20:35:14 +0200, Sven 'Darkman' Michels <sven@darkman.de> wrote:
> Mads Martin Joergensen wrote:
>> Can you try it without this patch?
>
> doesn't work. It looks like the problem existed before
> because i run 1.2.11 since beginning of the year and
> haven't changed anything.
Yes, it is an old (but unknown) issue. We have just never seen any problems with it.
The problem is this; If a header is followed by a line beginning with whitespace, that next line is to be "folded" back into the first one (RFC 2822 section 2.2.3). We did that. However, we did not follow RFC 2822 section 3.2.3, which states:
However, where CFWS occurs in this standard, it MUST NOT be inserted
in such a way that any line of a folded header field is made up
entirely of WSP characters and nothing else.
So "Header: value1\n value2\n" was unfolded, but so was "\n body." So if a mail's body begin with a whitespace character, that first body line is folded onto the end-of-headers marker, and header parsing continues down through the mail body.
I have fixed the issue, and you can get the patch from
http://mlmmj.mmj.dk/~mortenp/patch-mlmmj-1.2.12_RC2-gethdrline.diff
Morten
--
Morten K. Poulsen <morten@afdelingp.dk>
http://www.afdelingp.dk/
prev parent reply other threads:[~2006-09-18 19:18 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-09-15 22:20 [Fwd: Re: Mails in incoming cause of "invalid from"] Sven 'Darkman' Michels
2006-09-16 17:18 ` Mads Martin Joergensen
2006-09-16 19:11 ` Mads Martin Joergensen
2006-09-16 20:22 ` Sven 'Darkman' Michels
2006-09-17 15:07 ` Mads Martin Joergensen
2006-09-17 18:35 ` Sven 'Darkman' Michels
2006-09-17 20:08 ` Mads Martin Joergensen
2006-09-18 19:18 ` Morten K. Poulsen [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=5cc1638fad7ae4e67ef00a22914cd607@mail.n0rd.dk \
--to=morten@afdelingp.dk \
--cc=mlmmj@mlmmj.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.