Closed
Bug 15291
Opened 26 years ago
Closed 26 years ago
Pop3 local mail folder line ending not following the platform standard
Categories
(MailNews Core :: Backend, defect, P3)
Tracking
(Not tracked)
VERIFIED
FIXED
People
(Reporter: jefft, Assigned: jefft)
Details
On Windows it's okay, always end with \r\n. On Mac we are intermixed with \r\n
and \r, which is wrong. (On Linux, don't know yet.) This causes message headers
not parsing correctly on Mac. The problem can be observed by copying news
messages to a pop3 folder on a Mac. We need to make sure that messages in a
local mail folder, every line ends with appropriate platform specific line
endings (Windows - CRLF, MAC - CR, UNIX - LF).
Updated•26 years ago
|
Assignee: phil → mscott
Comment 1•26 years ago
|
||
Reassign to mscott, cc bienvenu
Comment 2•26 years ago
|
||
Phil, this isn't the parsing code I was talking about, but rather, the code that
writes to the folder. It's not the POP3 code either, but the msg copy
streaming code.
Comment 3•26 years ago
|
||
Jeff, I think this is your bug....shouldn't it be up to the message copy stream
listener stuff to figure out what kind of line endings it wants when doing a
copy? Oh wait, that's pretty much what david b just said as well...I'm just
streaming the data straight from the berkley mail folder to the copy stream
listener.
Maybe the bug is in the code that writes to the berkley mail folder which would
be code intiated by the pop3 protocol...
Updated•26 years ago
|
Assignee: mscott → jefft
Comment 4•26 years ago
|
||
Jefft said he knew how to fix this. Re-assiging to him =)
Status: NEW → RESOLVED
Closed: 26 years ago
Resolution: --- → FIXED
Replacing CRLF with MSG_LINEBREAK. nsPop3Protocol.cpp nsPop3Sink.cpp changed.
from nsCRT.h:
#ifdef XP_MAC
# define NS_LINEBREAK "\015"
# define NS_LINEBREAK_LEN 1
#else
# ifdef XP_PC
# define NS_LINEBREAK "\015\012"
# define NS_LINEBREAK_LEN 2
# else
# if defined(XP_UNIX) || defined(XP_BEOS)
# define NS_LINEBREAK "\012"
# define NS_LINEBREAK_LEN 1
# endif /* XP_UNIX */
# endif /* XP_PC */
#endif /* XP_MAC */
from msgcore.h:
#define MSG_LINEBREAK NS_LINEBREAK
#define MSG_LINEBREAK_LEN NS_LINEBREAK_LEN
VERIFIED
Updated•21 years ago
|
Product: MailNews → Core
Updated•18 years ago
|
Product: Core → MailNews Core
| Comment hidden (collapsed) |
You need to log in
before you can comment on or make changes to this bug.
Description
•