From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/63737 Path: news.gmane.org!not-for-mail From: Simon Josefsson Newsgroups: gmane.emacs.gnus.general Subject: Re: Assert in imap-parse-body, dovecot and rfc822 multipart messages Date: Tue, 12 Sep 2006 15:32:54 +0200 Message-ID: <87slixcird.fsf@latte.josefsson.org> References: <87irjvqv80.fsf@thosu.err.no> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1158068313 569 80.91.229.2 (12 Sep 2006 13:38:33 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 12 Sep 2006 13:38:33 +0000 (UTC) Original-X-From: ding-owner+m12264@lists.math.uh.edu Tue Sep 12 15:38:30 2006 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from malifon.math.uh.edu ([129.7.128.13]) by ciao.gmane.org with esmtp (Exim 4.43) id 1GN8T0-00070O-Fs for ding-account@gmane.org; Tue, 12 Sep 2006 15:38:22 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu ident=lists) by malifon.math.uh.edu with smtp (Exim 3.20 #1) id 1GN8Se-0007r4-00; Tue, 12 Sep 2006 08:38:00 -0500 Original-Received: from mx1.math.uh.edu ([129.7.128.32]) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 1GN8O1-0007qz-00 for ding@lists.math.uh.edu; Tue, 12 Sep 2006 08:33:13 -0500 Original-Received: from quimby.gnus.org ([80.91.227.211]) by mx1.math.uh.edu with esmtp (Exim 4.52) id 1GN8Nv-0007Oa-CU for ding@lists.math.uh.edu; Tue, 12 Sep 2006 08:33:13 -0500 Original-Received: from 178.230.13.217.in-addr.dgcsystems.net ([217.13.230.178] helo=yxa.extundo.com) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1GN8Np-0007Yl-00 for ; Tue, 12 Sep 2006 15:33:01 +0200 Original-Received: from localhost.localdomain (yxa.extundo.com [217.13.230.178]) (authenticated bits=0) by yxa.extundo.com (8.13.4/8.13.4/Debian-3sarge3) with ESMTP id k8CDWs3M010496 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Tue, 12 Sep 2006 15:32:55 +0200 Original-To: ding@gnus.org OpenPGP: id=B565716F; url=http://josefsson.org/key.txt Mail-Copies-To: nobody X-Hashcash: 1:22:060912:ding@gnus.org::lDvnzJW0F08hXCGu:0Km/ In-Reply-To: <87irjvqv80.fsf@thosu.err.no> (Tollef Fog Heen's message of "Sun\, 10 Sep 2006 23\:15\:27 +0200") User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.50 (gnu/linux) X-Spam-Status: No, score=-2.4 required=5.0 tests=AWL,BAYES_00, FORGED_RCVD_HELO autolearn=ham version=3.1.1 X-Spam-Checker-Version: SpamAssassin 3.1.1 (2006-03-10) on yxa-iv X-Virus-Scanned: ClamAV version 0.88.2, clamav-milter version 0.88.2 on yxa.extundo.com X-Virus-Status: Clean X-Spam-Score: -2.5 (--) Precedence: bulk Original-Sender: ding-owner@lists.math.uh.edu Xref: news.gmane.org gmane.emacs.gnus.general:63737 Archived-At: Tollef Fog Heen 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 P= lummer" NIL "ohw" "garrisevans.com")) ((NIL NIL "pkg-config" "lists.freedes= ktop.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) "al= ternative")("image" "gif" ("name" "ROM.gif") "<001d01c6d507$e74feca0$871aa4= bd@dzvm>" NIL "base64" 23392) "related" 450)("message" "rfc822" NIL NIL NIL= "7bit" 627 (NIL "confirm a56b2bbbe1f4995adb16bd174f6687fedf79b6d4" ((NIL N= IL "pkg-config-request" "lists.freedesktop.org")) ((NIL NIL "pkg-config-req= uest" "lists.freedesktop.org")) ((NIL NIL "pkg-config-request" "lists.freed= esktop.org")) NIL NIL NIL NIL NIL) "text" "plain" ("charset" "us-ascii") NI= L NIL "7bit" 370 5 12) "mixed") BODY[HEADER.FIELDS (SUBJECT FROM DATE MESSA= GE-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