Summary | escaped "from" not being unescaped |
Queue | IMP |
Queue Version | HEAD |
Type | Bug |
State | Not A Bug |
Priority | 1. Low |
Owners | slusarz (at) horde (dot) org |
Requester | jan (at) horde (dot) org |
Created | 01/03/2007 (6729 days ago) |
Due | |
Updated | 01/21/2007 (6711 days ago) |
Assigned | 01/03/2007 (6729 days ago) |
Resolved | 01/21/2007 (6711 days ago) |
Github Issue Link | |
Github Pull Request | |
Milestone | |
Patch | No |
State ⇒ Not A Bug
should be escaped *not* related to flowed messages, i.e. in RFC 2822?
I searched for some but couldn't come up with anything. I'd like to
have something at hand to point the GMX folks at.
http://www.rfc-archive.org/getrfc.php?rfc=4155
(Although not an official standards RFC).
http://lists.horde.org/archives/cvs/Week-of-Mon-20061225/064107.html
quoted lines.
Is there any rule how and when lines beginning with "from" or "From"
should be escaped *not* related to flowed messages, i.e. in RFC 2822?
I searched for some but couldn't come up with anything. I'd like to
have something at hand to point the GMX folks at.
is a quoted line. Thus they need to appear on separate lines.
Let me use a different example to try to explain the problem better.
You want to send the following message.
Long line blah from me.
In flowed format, assuming the line exceeds the limit for line length,
it will be
sent as follows:
Long line blahSP
from me.
On receipt, converting from fixed to flowed, the algorithim first
checks for quoted lines (there are none) then checks for space stuffed
lines and combines all consecutive space stuffed lines at the same
level. So we correctly get the desired result.
With an MTA escaping the 'from', we have the following:
Long line blahSP
lines - and "this test for quoted lines is done before any other tests
(that is, before checking for space-stuffed and flowed)". Therefore
we discover that the line ">from me" is quoted at level 1 and we can't
combine this with the previous line since that line is at level 0.
And therein lies the problem. We can't regexp all "^>from" to 'from'
either since ">from" may very well be the beginning of a quoted line.
line 1
Is being displayed as:
line 1
which isn't correct either. this should at least be displayed as
line 1 >from line 2 line 3
then, unless I'm missing something.
plain messages, but not for flowed message.
Take these examples (sent in flowed format):
from line 2
line 3
From line 2
line 3
events in flowed formatting (i.e. you can't auto convert ">from" to
">From" or vice versa because it will break formatting).
plain messages, but not for flowed message.
Summary ⇒ escaped "from" not being unescaped
the qmail installation of Germany's largest freemail provider GMX
where most of my mail are routed through. I was able to track this
change down to the smallest possible route:
Received: (qmail 15291 invoked by uid 0); 11 Jan 2007 14:13:07 -0000
Received: from xxx.xxx.xxx.xxx by www067.gmx.net with HTTP;
Thu, 11 Jan 2007 15:13:07 +0100 (CET)
Whether this behaviour is correct or not, is there a way to reliably
work around this?
stored message in your spool - if the '>' is there, it is postfix, if
not it is cyrus.
delivering directly into Cyrus' spool but through LMTP.
http://lists.horde.org/archives/cvs/Week-of-Mon-20061225/064107.html
we need to work around that somehow. I'm probably going to update to a
newer version these days, maybe it's a bug that has been fixed.
stored message in your spool - if the '>' is there, it is postfix, if
not it is cyrus.
Also, unsure if we need this change (for the same reasons):
http://lists.horde.org/archives/cvs/Week-of-Mon-20061225/064107.html
State ⇒ Feedback
message. Because it displays fine on my setup. But looking at the
mail source, it appears that the message I received from the list is
different than the version you attached here. My message has the
following line:
from one machine to another in the course of a session (due to a
Your message has it as follows:
there. The RFC is very clear that flowed formatting only escapes
"From", not the case-insensitive word "from". See
http://www.faqs.org/rfcs/rfc3676.html [section 4.4].
Priority ⇒ 1. Low
State ⇒ Assigned
Assigned to Michael Slusarz
Queue ⇒ IMP
Summary ⇒ Flowed message rendered incorrectly
Type ⇒ Bug
">from" line is not correctly unescaped, and a line break is inserted
before the "If I tell" sentence.