Gnus development mailing list
 help / color / mirror / Atom feed
* Assert in imap-parse-body, dovecot and rfc822 multipart messages
@ 2006-09-10 21:15 Tollef Fog Heen
  2006-09-11 16:41 ` Manuel Werlberger
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Tollef Fog Heen @ 2006-09-10 21:15 UTC (permalink / raw)



(please Cc me on replies, I'm not subscribed)

Hi,

I'm running No Gnus v0.6 accessing my mails over IMAP to a dovecot
server.  I keep hitting the (assert (eq (char-after) ?\)) nil "In
imap-parse-body 2").  After enabling the IMAP log I found a line which
imap-parse-body seems to fail on:

317 FETCH (UID 894 RFC822.SIZE 32728 BODY (("text" "plain" ("charset" "us-ascii") NIL NIL "7bit" 399 13)("message" "rfc822" NIL NIL NIL "7bit" 29753 ("Sun, 10 Sep 2006 13:34:28 -0500" "Rd. mixture" (("Rob Plummer" NIL "ohw" "garrisevans.com")) (("Rob Plummer" NIL "ohw" "garrisevans.com")) (("Rob Plummer" NIL "ohw" "garrisevans.com")) ((NIL NIL "pkg-config" "lists.freedesktop.org")) NIL NIL NIL "<002201c6d507$e74fed13$871aa4bd@dzvm>") (("text" "plain" ("charset" "windows-1252") NIL NIL "quoted-printable" 1681 29)("text" "html" ("charset" "windows-1252") NIL NIL "quoted-printable" 2818 65) "alternative")("image" "gif" ("name" "ROM.gif") "<001d01c6d507$e74feca0$871aa4bd@dzvm>" NIL "base64" 23392) "related" 450)("message" "rfc822" NIL NIL NIL "7bit" 627 (NIL "confirm a56b2bbbe1f4995adb16bd174f6687fedf79b6d4" ((NIL NIL "pkg-config-request" "lists.freedesktop.org")) ((NIL NIL "pkg-config-request" "lists.freedesktop.org")) ((NIL NIL "pkg-config-request" "lists.freedesktop.org")) NIL NIL NIL NIL NIL) "text" "plain" ("charset" "us-ascii") NIL NIL "7bit" 370 5 12) "mixed") BODY[HEADER.FIELDS (SUBJECT FROM DATE MESSAGE-ID REFERENCES IN-REPLY-TO XREF TO NEWSGROUPS)] {275}

(sorry for the enormous line)

It complains right at the ("image" [...] bit, but I'm not familiar
enough with IMAP syntax to see whether this is dovecot's fault or
not.  If the former, could you please explain what's wrong so I could
look into fixing the bug there?  Thanks for any help, suggestions
etc; if there is any more information needed, do not hesitate to tell
me as this has been troubling me for a while now.

-- 
Tollef Fog Heen                                                        ,''`.
UNIX is user friendly, it's just picky about who its friends are      : :' :
                                                                      `. `' 
                                                                        `-  



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Assert in imap-parse-body, dovecot and rfc822 multipart messages
  2006-09-10 21:15 Assert in imap-parse-body, dovecot and rfc822 multipart messages Tollef Fog Heen
@ 2006-09-11 16:41 ` Manuel Werlberger
  2006-09-11 18:58 ` Assert in imap-parse-body, dovecot and rfc822 multipart Jouni K Seppanen
  2006-09-12 13:32 ` Assert in imap-parse-body, dovecot and rfc822 multipart messages Simon Josefsson
  2 siblings, 0 replies; 5+ messages in thread
From: Manuel Werlberger @ 2006-09-11 16:41 UTC (permalink / raw)


Tollef Fog Heen <tfheen@err.no> writes:
> I'm running No Gnus v0.6 accessing my mails over IMAP to a dovecot
> server.  I keep hitting the (assert (eq (char-after) ?\)) nil "In
> imap-parse-body 2").  After enabling the IMAP log I found a line which
> imap-parse-body seems to fail on:

I also tried to access my imap repository with gnus but no success. I'm
also running dovecot. If there's really a problem with dovecot a fix
would be perfekt. I really want to "kill" all those external tools...

rgds,
 manuel




^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Assert in imap-parse-body, dovecot and rfc822 multipart
  2006-09-10 21:15 Assert in imap-parse-body, dovecot and rfc822 multipart messages Tollef Fog Heen
  2006-09-11 16:41 ` Manuel Werlberger
@ 2006-09-11 18:58 ` Jouni K Seppanen
  2006-09-12 13:32 ` Assert in imap-parse-body, dovecot and rfc822 multipart messages Simon Josefsson
  2 siblings, 0 replies; 5+ messages in thread
From: Jouni K Seppanen @ 2006-09-11 18:58 UTC (permalink / raw)
  Cc: tfheen

Tollef Fog Heen <tfheen@err.no> writes:

> 317 FETCH (UID 894 RFC822.SIZE 32728 BODY (("text" "plain" ("charset" "us-ascii") NIL NIL "7bit" 399 13)("message" "rfc822" NIL NIL NIL "7bit" 29753 ("Sun, 10 Sep 2006 13:34:28 -0500" "Rd. mixture" (("Rob Plummer" NIL "ohw" "garrisevans.com")) (("Rob Plummer" NIL "ohw" "garrisevans.com")) (("Rob Plummer" NIL "ohw" "garrisevans.com")) ((NIL NIL "pkg-config" "lists.freedesktop.org")) NIL NIL NIL "<002201c6d507$e74fed13$871aa4bd@dzvm>") (("text" "plain" ("charset" "windows-1252") NIL NIL "quoted-printable" 1681 29)("text" "html" ("charset" "windows-1252") NIL NIL "quoted-printable" 2818 65) "alternative")("image" "gif" ("name" "ROM.gif") "<001d01c6d507$e74feca0$871aa4bd@dzvm>" NIL "base64" 23392) "related" 450)("message" "rfc822" NIL NIL NIL "7bit" 627 (NIL "confirm a56b2bbbe1f4995adb16bd174f6687fedf79b6d4" ((NIL NIL "pkg-config-request" "lists.freedesktop.org")) ((NIL NIL "pkg-config-request" "lists.freedesktop.org")) ((NIL NIL "pkg-config-request" "lists.freedesktop.org")) NIL NIL NIL NIL NIL) "text" "plain" ("charset" "us-ascii") NIL NIL "7bit" 370 5 12) "mixed") BODY[HEADER.FIELDS (SUBJECT FROM DATE MESSAGE-ID REFERENCES IN-REPLY-TO XREF TO NEWSGROUPS)] {275}
>
> It complains right at the ("image" [...] bit, but I'm not familiar
> enough with IMAP syntax to see whether this is dovecot's fault or
> not.  If the former, could you please explain what's wrong so I could
> look into fixing the bug there?  

I'm not really an IMAP expert either, but the parens on that line seem
to be out of balance.

-- 
Jouni




^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Assert in imap-parse-body, dovecot and rfc822 multipart messages
  2006-09-10 21:15 Assert in imap-parse-body, dovecot and rfc822 multipart messages Tollef Fog Heen
  2006-09-11 16:41 ` Manuel Werlberger
  2006-09-11 18:58 ` Assert in imap-parse-body, dovecot and rfc822 multipart Jouni K Seppanen
@ 2006-09-12 13:32 ` Simon Josefsson
  2006-09-17 17:59   ` Tollef Fog Heen
  2 siblings, 1 reply; 5+ messages in thread
From: Simon Josefsson @ 2006-09-12 13:32 UTC (permalink / raw)


Tollef Fog Heen <tfheen@err.no> writes:

> (please Cc me on replies, I'm not subscribed)
>
> Hi,
>
> I'm running No Gnus v0.6 accessing my mails over IMAP to a dovecot
> server.  I keep hitting the (assert (eq (char-after) ?\)) nil "In
> imap-parse-body 2").  After enabling the IMAP log I found a line which
> imap-parse-body seems to fail on:
>
> 317 FETCH (UID 894 RFC822.SIZE 32728 BODY (("text" "plain" ("charset" "us-ascii") NIL NIL "7bit" 399 13)("message" "rfc822" NIL NIL NIL "7bit" 29753 ("Sun, 10 Sep 2006 13:34:28 -0500" "Rd. mixture" (("Rob Plummer" NIL "ohw" "garrisevans.com")) (("Rob Plummer" NIL "ohw" "garrisevans.com")) (("Rob Plummer" NIL "ohw" "garrisevans.com")) ((NIL NIL "pkg-config" "lists.freedesktop.org")) NIL NIL NIL "<002201c6d507$e74fed13$871aa4bd@dzvm>") (("text" "plain" ("charset" "windows-1252") NIL NIL "quoted-printable" 1681 29)("text" "html" ("charset" "windows-1252") NIL NIL "quoted-printable" 2818 65) "alternative")("image" "gif" ("name" "ROM.gif") "<001d01c6d507$e74feca0$871aa4bd@dzvm>" NIL "base64" 23392) "related" 450)("message" "rfc822" NIL NIL NIL "7bit" 627 (NIL "confirm a56b2bbbe1f4995adb16bd174f6687fedf79b6d4" ((NIL NIL "pkg-config-request" "lists.freedesktop.org")) ((NIL NIL "pkg-config-request" "lists.freedesktop.org")) ((NIL NIL "pkg-config-request" "lists.freedesktop.org")) NIL NIL NIL NIL NIL) "text" "plain" ("charset" "us-ascii") NIL NIL "7bit" 370 5 12) "mixed") BODY[HEADER.FIELDS (SUBJECT FROM DATE MESSAGE-ID REFERENCES IN-REPLY-TO XREF TO NEWSGROUPS)] {275}
>
> (sorry for the enormous line)
>
> It complains right at the ("image" [...] bit, but I'm not familiar
> enough with IMAP syntax to see whether this is dovecot's fault or
> not.  If the former, could you please explain what's wrong so I could
> look into fixing the bug there?  Thanks for any help, suggestions
> etc; if there is any more information needed, do not hesitate to tell
> me as this has been troubling me for a while now.

Unfortunately, you didn't quote all of the line, you need to continue
to quote the literal following that line, so the parenthesis become
balanced.

I'm afraid I don't have time to debug this, but if someone else wish
to help, a hint is to M-x edebug-defun RET imap-parse-body RET, place
the cursor on first '(' at the 'BODY (("text"' portion and do M-:
(imap-parse-body) RET.  You'll have to single-step through the parser.

To be able to understand what the problem is, you'd probably want to
verify manually that the dovecot output is conforming to the IMAP spec
first.  See RFC 3501.

/Simon



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Assert in imap-parse-body, dovecot and rfc822 multipart messages
  2006-09-12 13:32 ` Assert in imap-parse-body, dovecot and rfc822 multipart messages Simon Josefsson
@ 2006-09-17 17:59   ` Tollef Fog Heen
  0 siblings, 0 replies; 5+ messages in thread
From: Tollef Fog Heen @ 2006-09-17 17:59 UTC (permalink / raw)


Simon Josefsson <jas <at> extundo.com> writes:

> I'm afraid I don't have time to debug this, but if someone else wish
> to help, a hint is to M-x edebug-defun RET imap-parse-body RET, place
> the cursor on first '(' at the 'BODY (("text"' portion and do M-:
> (imap-parse-body) RET.  You'll have to single-step through the parser.
> 
> To be able to understand what the problem is, you'd probably want to
> verify manually that the dovecot output is conforming to the IMAP spec
> first.  See RFC 3501.

I got this tracked down and it was a bug in how dovecot (1.0 beta 2) handled
nested MIME multipart mails.  It is at least fixed in RC 2, so I just upgraded
and the problem went away.

Thanks a lot for all help. :-)

- tfheen





^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2006-09-17 17:59 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-09-10 21:15 Assert in imap-parse-body, dovecot and rfc822 multipart messages Tollef Fog Heen
2006-09-11 16:41 ` Manuel Werlberger
2006-09-11 18:58 ` Assert in imap-parse-body, dovecot and rfc822 multipart Jouni K Seppanen
2006-09-12 13:32 ` Assert in imap-parse-body, dovecot and rfc822 multipart messages Simon Josefsson
2006-09-17 17:59   ` Tollef Fog Heen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).