Gnus development mailing list
 help / color / mirror / Atom feed
From: James Cloos <cloos@jhcloos.com>
To: ding@gnus.org
Subject: rfc 822 imap bug
Date: Thu, 22 May 2008 17:57:19 -0400	[thread overview]
Message-ID: <m3fxsauhm1.fsf@lugabout.jhcloos.org> (raw)

I finally was able to give gnus a test with the patch.

(I had to do it as a different user with a just a couple of IMAP
folders; my own setup creates an *imap-debug* buffer of more than one
and a half gigs during startup; a bit of a burden on a laptop whose
motherboard maxes out at one half of a gig....)

Here is an example of the output to the *Messages* buffer from that
patch:

error in process filter: position 314 in * 1433 FETCH (RFC822.SIZE 11856
UID 1433 BODY (("text" "plain" ("charset" "utf-8") NIL NIL
"quoted-printable" 871 23)("message" "rfc822" NIL NIL NIL "7bit" 2851
("Wed, 19 Mar 2008 05:03:34 +0100" "git-buildpackage: Import multiple
dsc/orig.tar.gz in one go" (("Michael Biebl" NIL "biebl"
"debian.org"))(("Michael Biebl" NIL "biebl" "debian.org"))(("Michael
Biebl" NIL "biebl" "debian.org"))(("Debian Bug Tracking System" NIL
"submit" "bugs.debian.org")) NIL NIL NIL
"<20080319040334.8264.90035.reportbug@pluto.milchstrasse.xx>")("text"
"plain" ("charset" "us-ascii") NIL NIL "7bit" 1139 42) 77)("message"
"rfc822" NIL NIL NIL "7bit" 4262 ("Sat, 17 May 2008 21:02:02 +0000"
"Bug#471580: fixed in git-buildpackage 0.4.29" (("Guido Guenther" NIL
"agx" "sigxcpu.org"))(("Archive Administrator" NIL "dak"
"ftp-master.debian.org"))(("Guido Guenther" NIL "agx"
"sigxcpu.org"))((NIL NIL "471580-close" "bugs.debian.org")) NIL NIL NIL
"<E1JxTXW-0006w9-SX@ries.debian.org>")("text" "plain" ("charset"
"utf-8") NIL NIL "8bit" 2943 78) 108) "mixed") BODY[HEADER.FIELDS
(Subject From Date Message-Id References In-Reply-To Xref To
Newsgroups)] {424}
to: Guido Guenther <agx@sigxcpu.org>
subject: Bug#471580: marked as done (git-buildpackage: Import multiple  dsc/orig.tar.gz in one go)
references: <E1JxTXW-0006w9-SX@ries.debian.org> <20080319040334.8264.90035.reportbug@pluto.milchstrasse.xx>
message-id: <handler.471580.D471580.121105812612439.ackdone@bugs.debian.org>
from: Debian Bug Tracking System <owner@bugs.debian.org>
date: Sat, 17 May 2008 21:03:04 +0000

)

I removed each \r and wrapped it for email.

Position 314 in the string before wrapping is the start of Biebl in the
second of the three instances of the string "Michael Biebl".

So the parsing dies inside a double-quoted string, after a space.

All of the errors occur in similar points.

The relevant lines from *imap-debug* for that message are:

1 -> imap-arrival-filter: proc=#<process imap> string="* 1433 FETCH
(RFC822.SIZE 11856 UID 1433 BODY ((\"text\" \"plain\" (\"charset\"
\"utf-8\") NIL NIL \"quoted-printable\" 871 23)(\"message\" \"rfc822\"
NIL NIL NIL \"7bit\" 2851 (\"Wed, 19 Mar 2008 05:03:34 +0100\"
\"git-buildpackage: Import multiple dsc/orig.tar.gz in one go\"
((\"Michael Biebl\" NIL \"biebl\" \"debian.org\"))((\"Michael Biebl\"
NIL \"biebl\" \"debian.org\"))((\"Michael Biebl\" NIL \"biebl\"
\"debian.org\"))((\"Debian Bug Tracking System\" NIL \"submit\"
\"bugs.debian.org\")) NIL NIL NIL
\"<20080319040334.8264.90035.reportbug@pluto.milchstrasse.xx>\")(\"text\"
\"plain\" (\"charset\" \"us-ascii\") NIL NIL \"7bit\" 1139 42)
77)(\"message\" \"rfc822\" NIL NIL NIL \"7bit\" 4262 (\"Sat, 17 May 2008
21:02:02 +0000\" \"Bug#471580: fixed in git-buildpackage 0.4.29\"
((\"Guido Guenther\" NIL \"agx\" \"sigxcpu.org\"))((\"Archive
Administrator\" NIL \"dak\" \"ftp-master.debian.org\"))((\"Guido
Guenther\" NIL \"agx\" \"sigxcpu.org\"))((NIL NIL \"471580-close\"
\"bugs.debian.org\")) NIL NIL NIL
\"<E1JxTXW-0006w9-SX@ries.debian.org>\")(\"text\" \"plain\" (\"charset\"
\"utf-8\") NIL NIL \"8bit\" 2943 78) 108) \"mixed\") BODY[HEADER.FIELDS
(Subject From Date Message-Id References In-Reply-To Xref To
Newsgroups)] {424}
to: Guido Guenther <agx@sigxcpu.org>
subject: Bug#471580: marked as done (git-buildpackage: Import multiple  dsc/orig.tar.gz in one go)
references: <E1JxTXW-0006w9-SX@ries.debian.org> <20080319040334.8264.90035.reportbug@pluto.milchstrasse.xx>
message-id: <handler.471580.D471580.121105812612439.ackdone@bugs.debian.org>
from: Debian Bug Tracking System <owner@bugs.debian.org>
date: Sat, 17 May 2008 21:03:04 +0000

)
| 2 -> imap-parse-response: 
| | 3 -> imap-parse-fetch: response=1433
| | | 4 -> imap-parse-body: 
| | | | 5 -> imap-parse-body: 
| | | | 5 <- imap-parse-body: ("text" "plain" ("charset" "utf-8") nil nil "quoted-printable" 871 23)
| | | | 5 -> imap-parse-body: 
| | | | | 6 -> imap-parse-envelope: 
| | | | | 6 <- imap-parse-envelope: ["Wed, 19 Mar 2008 05:03:34 +0100"
          "git-buildpackage: Import multiple dsc/orig.tar.gz in one go"
          (["Michael Biebl" nil "biebl" "debian.org"]) nil nil nil nil
          nil nil nil]
| | | | | 6 -> imap-parse-body: 
| | | | | 6 <- imap-parse-body: nil
======================================================================

-JimC
-- 
James Cloos <cloos@jhcloos.com>         OpenPGP: 1024D/ED7DAEA6



                 reply	other threads:[~2008-05-22 21:57 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m3fxsauhm1.fsf@lugabout.jhcloos.org \
    --to=cloos@jhcloos.com \
    --cc=ding@gnus.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).