Open
Bug 301010
Opened 19 years ago
Updated 2 years ago
Error during IMAP copy: message contains bare newlines (MS Exchange returns stand-alone LF in mail data, and Cyrus rejects it)
Categories
(MailNews Core :: Networking: IMAP, defect)
Tracking
(Not tracked)
NEW
People
(Reporter: jzeller, Unassigned)
References
Details
(Keywords: testcase)
Attachments
(2 files)
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; de-DE; rv:1.7.8) Gecko/20050511 Firefox/1.0.4
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; de-DE; rv:1.7.8) Gecko/20050511 Firefox/1.0.4
For some type of messages, the problem in Bug #83396 still exists: i try to copy
a very simple text message from a Exchange server to a Cyrus IMAP server, and
every time the error message (from Cyrus) is: "Message contains bare newlines".
I will attache a complete tcpdump of the session.
Reproducible: Always
Steps to Reproduce:
Copy the message in the attachment below from one (Exchange?) IMAP Server to a
Cyrus IMAP server.
Actual Results:
The error message "Message contains bare newlines" is displayed.
Expected Results:
The mail should have been moved from the Exchange Folder to the Cyrus Folder.
Reporter | ||
Comment 1•19 years ago
|
||
Comment 2•18 years ago
|
||
Cyrus is strict about RFC compliance for message structure. This probably isn't really a mozilla bug; Mozilla could probably rewrite non-compliant messages to fix the issue, but the issue isn't caused by Mozilla. Rather, Exchange is accepting and delivering invalid messages into its mail store (gee, who would've thought!).
I *think* the error message refers to the following text from RFC2822:
"
Messages are divided into lines of characters. A line is a series of
characters that is delimited with the two characters carriage-return
and line-feed; that is, the carriage return (CR) character (ASCII
value 13) followed immediately by the line feed (LF) character (ASCII
value 10). (The carriage-return/line-feed pair is usually written in
this document as "CRLF".)
"
IMO this is NOTABUG.
Comment 3•18 years ago
|
||
I'm seeing this same behavior in a somewhat different environment.
In this case, Seamonkey 1.0.5 on Linux connecting to an iPlanet IMAP server. The SeaMonkey changelogs claim they included bug fix #83396 in 1.0.1. If that's the case, then it seems that bug fix didn't actually solve the problem.
While Thunderbird may not be causing the badly formatted message, it is trying to submit it back into an IMAP server, and that's not good behavior, particularly since this problem occurs on at least two IMAP implementations (Cyrus, as noted, and iPlanet).
Updated•18 years ago
|
QA Contact: general
Comment 4•17 years ago
|
||
I see this sending messages via SMTP and IMAP. After sending it cannot copy sended massage to "Sent" folder. Is this the same problem?
Status: UNCONFIRMED → NEW
Ever confirmed: true
Comment 5•17 years ago
|
||
yes, sounds like the same problem. How do you write these messages that it can't send?
Comment 6•17 years ago
|
||
Dunno... Just writing as a normal message. Sometimes appears this message. It started about 3-8 weeks ago I believe.
Comment 7•17 years ago
|
||
The first 2 words are cyrillic, but txt does not allows UTF. A file was attached to the mail.
Comment 8•17 years ago
|
||
are you using the plain text compose window? Does this ever happen with the html compose window?
Comment 9•17 years ago
|
||
Yep, plain text. I believe it hapends wheb I attach a file... But I'm not 100% sure, since in 20070629 build it hapened just once and there was an attachment.
Comment 10•17 years ago
|
||
Are you running on linux, mac, or windows? My theory is that it's not due to attachments, but that's only if you're running on linux or mac...
Comment 11•17 years ago
|
||
Eugene, could you attach the above message to this bug? I would be nice to have a testcase. We need the whole message with all headers. Thanks.
Comment 12•17 years ago
|
||
I'm on Windows.
I'll try to repro it and post a full message here.
Comment 13•17 years ago
|
||
http://menelon.ee/private/mozilla/message.zip
Here is the complete message caused this error message. In attace were 2 pics.
Comment 14•17 years ago
|
||
(In reply to comment #1)
> tcpdump trace of the IMAP exchange
Newline in mail data in this trace is [CRLF] except two [LF] only lines in next part.
> savegroup: Offsite_SA completed (oberbirnbach Succeeded)[CRLF]
> [LF]
> --- Successful Save Sets ---[CRLF]
> [LF]
Original mail data stream from Exchange Server seems to contain mixed [CRLF] and [LF].
Is mixed newline char(s) permitted?
If mixed, Tb should convert single [LF] to [CRLF] or newline of system when saving in local mail box file or temporary file?
(If line mode I/O, [CRLF]/[LF]/[CR] is usually removed by OS when file read.)
(So I guess that Tb uses binary mode file I/O. )
I think Thunderbird is better to consider [LF] only or [CR] only line as null line when transfer, even if mixture of [CRLF] / [LF] / [CR] is not permitted.
Comment 15•17 years ago
|
||
(In reply to comment #4)
> I see this sending messages via SMTP and IMAP. After sending it cannot copy
> sended massage to "Sent" folder.
Isn't newline of your signature file [LF] only or [CR] only?
Comment 16•17 years ago
|
||
Wada, I have no idea You are talking about... I attached a complete message that caused this message. I cannot help You else, but testing...
Comment 17•17 years ago
|
||
IMAP servers are not supposed to return mixed lines - they're supposed to return full CRLF terminated lines.
Eugene, is the problem reproduceable with the message you attached?
WADA is talking about the tcpdump attachment, not your attached message.
I'm not convinced the original problem and yours are the same, actually.
Comment 18•17 years ago
|
||
I sent an e-mail with .jpg attached. Got the same error. Pressed "return to compose window" and changed the e-mail to one of mine. After that the message was copied without any errors... :-/ Maybe I could do some logs? How could that be done?
Comment 19•17 years ago
|
||
To David Bienvenu:
Will your patch for Bug 320102 work when [LF] from Exchange Server case(orginal problem of this bug)?
Comment 20•17 years ago
|
||
Got a message that I can reproduce this bug with.
Also got a IMAP log.
David: Can I help in an way?
Comment 23•17 years ago
|
||
The last I see is this:
348[31911b0]: AAAAABAAUAAAAAAAAAAAEBQAAAAQAAAAFAABAQAFBQWAbB//2Q==
348[31911b0]: 3191a88:m00.opasia.dk:A:SendData:
348[31911b0]: ReadNextLine [stream=3054ea0 nb=37 needmore=0]
348[31911b0]: 3191a88:m00.opasia.dk:A:CreateNewLineFromSocket: 9 NO Message contains bare newlines
is the problem the
348[31911b0]: 3191a88:m00.opasia.dk:A:SendData:
?
David: Does it mean that it sends an empty line?
Comment 24•17 years ago
|
||
Using version 3.0a1pre (2008010204) and also any previous version,
First,
save sent messages is enabled for all accounts I used on Sent folder imap account.
When I send message through imap everything goes as it should.
When I try send message through my account which is not imap and if message contains attachment, than I got, message sent, but error copying to sent folder bare newlines. Than, return to compose window, save message to drafts on local folder, close that window, copy message to sent folder on imap account works.
Really strange, but annoying. Maybe it will be helpful in debugging.
Comment 25•17 years ago
|
||
Adding some words in bug summary, for ease of search.
Summary: Error during IMAP copy: message contains bare newlines → Error during IMAP copy: message contains bare newlines (MS Exchange returns stand-alone LF in mail data, and Cyrus rejects it)
Updated•16 years ago
|
Assignee: mscott → nobody
Comment 26•16 years ago
|
||
Can anyone reproduce this with a 3.0b1 build?
Comment 27•16 years ago
|
||
Henrik, can you still reproduce this? I might need access to the server(s) that can reproduce it...
Comment 28•16 years ago
|
||
(In reply to comment #27)
> Henrik, can you still reproduce this? I might need access to the server(s) that
> can reproduce it...
Sorry but I dont have access to that server anymore.
Comment 29•11 years ago
|
||
I can reproduce this on our corporate mail server.
Comment 30•5 years ago
|
||
Gene, do you know someone who could attempt to reproduce?
Severity: major → normal
Component: General → Networking: IMAP
Flags: needinfo?(gds)
Keywords: testcase
Product: Thunderbird → MailNews Core
Updated•4 years ago
|
Flags: needinfo?(gds)
Updated•2 years ago
|
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•