InterMail vM. Getting "PARSER:Internal Syntax Error" when mail contains NULL char (\x0)



17 years ago
10 years ago


(Reporter: bugzilla, Assigned: Bienvenu)



Windows 2000

Firefox Tracking Flags

(Not tracked)




17 years ago
I keep getting "PARSER:Internal Syntax Error" in my IMAP log.

I've now done some debuging and found out it's due to mails that are having a 
NULL char (\x0) in them. Mozilla IMAP'ning simply dies.
I can reproduce this on my InterMail IMAP server but not on Exchange.

This bug causes Mozilla to stop IMAP for the current account, meaning clicking 
on a mail does not fetch the mail but just display the mail as empty = 
potential dataloss.

I can sent a test mail if you tell me which mailaddress to sent to.

1360[2d9c448]: Syntax Error: %s:  FLAGS 
(\Recent \Seen))

Build 20011126

Comment 1

17 years ago
I can also provide you with IMAP access to my IMAP server so that you can see 
the problem yourself. 100% Reproduceable...
Keywords: interop

Comment 2

17 years ago
imap messages aren't allowed to have nulls in them, right? If the server is
actually returning a null byte, that sounds like a server problem.

Comment 3

17 years ago
IMAP messages are indeed not allowed to have NUL octets in them.  See RFC 2060
sections 4.3.1 and the definition of msg_att in section 9 (it goes down to
CHAR8, which prohibits NUL).

Comment 4

17 years ago
I can reproduce this problem by using Henrik InterMail vM. server.
But, Scott, can you confirm this bug is server problem based on David & John's 

Comment 5

17 years ago
If it's a server problem, let's mark invalid or wontfix, unless you think
there's something we could do to ignore the null and still display what we can
of the message.

Comment 6

17 years ago
I'd say mark it invalid.

Comment 7

17 years ago
related to bug 115179?
that bug has a patch


17 years ago
QA Contact: huang → meehansqa
Summary: Getting "PARSER:Internal Syntax Error" when mail contains NULL char (\x0) → InterMail vM. Getting "PARSER:Internal Syntax Error" when mail contains NULL char (\x0)
Product: MailNews → Core

Comment 8

12 years ago
(In reply to comment #6)
> I'd say mark it invalid.

Is this still a problem (comment 7)?
If so, should failure of server necessarily cause failure in client?

Also "Internal Syntax Error":
* Bug 109321
* Bug 133689
Assignee: mscott → bienvenu
QA Contact: meehansqa → grylchan

Comment 9

11 years ago
David, other reported bugs are closed except Henrik's - hasn't responded so perhaps he doesn't see this anymore. Is there a test message? Any thoughts?

Comment 10

11 years ago
It's illegal for the server to return embedded nulls - I vaguely remember some fixes going in to handle them anyway, I think from timeless, but I can't remember if it was for IMAP or POP3...

Comment 11

11 years ago
i can't remember them, but my memory is shot and i'm sure this would have been years ago.

did someone file a bug against intermail? we definitely should have a reference to their bug database.

Comment 12

10 years ago
marking invalid - it's a server error in any case. I haven't heard other reports about this, so maybe it's dealt with in our code, or fixed w/ InterMail.
Last Resolved: 10 years ago
Resolution: --- → INVALID
Product: Core → MailNews Core
You need to log in before you can comment on or make changes to this bug.