Gnus development mailing list
 help / color / mirror / Atom feed
* nnimap fails to fetch some articles
@ 2005-03-05  0:47 Bjorn Solberg
  2005-03-05 11:00 ` Simon Josefsson
  0 siblings, 1 reply; 16+ messages in thread
From: Bjorn Solberg @ 2005-03-05  0:47 UTC (permalink / raw)


My setup:

GNU Emacs 21.3.1 (i386-mingw-nt5.1.2600) of 2004-03-10 on NYAUMO
No Gnus v0.3 (from gnus-CURRENT-20050304.tar.gz)

I'm talking to the IMAP server (which is a Lotus Notes server) as
a secondary method:
(setq gnus-secondary-select-methods
      '((nnimap "notes1")))

I can read the messages with no problem using the Lotus Notes client.

When I do 5 RET to fetch the last 5 messages, I consistently only get 3,
missing some in-between: It's getting N-3, N-1 and N, skipping N-4 and
N-2.

If I fetch the last 6 messages, it skips N-5 in addition.

If I fetch the last 7 messages, it skips the same as for 6 but fetches
message# N-6.

The full *imap-log* is 800 lines long for the 5 RET, see below for the
last 400+ lines.  It looks like it's issuing the correct command, "UID
FETCH 780:784 [...]" but for some reason it doesn't display the first and
third of those last 5 messages.

I see similar things for all the other nnimap groups also.  One group
skips N-4 -> N-2 and only gets N-1 and N.  Even doing C-u RET RET to
fetch all the messages fails to show all messages.

I don't have gnus-agent activated, and my ~/News/agent directory is empty
save for a lib directory containing a file named "server" that contains
"nil".  I have tried some suggestions I have seen through searches
(gnus-agent-expire-group, remove .overview (I have none)), with no luck.

Any pointers to how I can solve this is greatly appreciated.

Bjorn.




[...]
======================================================================
1 -> imap-current-mailbox-p: mailbox="INBOX" examine=nil buffer=nil
| 2 -> imap-current-mailbox-p-1: mailbox="INBOX" examine=nil
| 2 <- imap-current-mailbox-p-1: t
1 <- imap-current-mailbox-p: t
======================================================================
1 -> imap-capability: identifier=IMAP4rev1 buffer=nil
1 <- imap-capability: (IMAP4REV1 AUTH=PLAIN LITERAL+ NAMESPACE QUOTA UIDPLUS)
======================================================================
1 -> imap-fetch: uids="780:784" props="(UID RFC822.SIZE BODY BODY.PEEK[HEADER.FIELDS (Subject From Date Message-Id References In-Reply-To Xref To Newsgroups)])" receive=nil nouidfetch=nil buffer=nil
| 2 -> imap-send-command-wait: command="UID FETCH 780:784 (UID RFC822.SIZE BODY BODY.PEEK[HEADER.FIELDS (Subject From Date Message-Id References In-Reply-To Xref To Newsgroups)])" buffer=nil
| | 3 -> imap-send-command: command="UID FETCH 780:784 (UID RFC822.SIZE BODY BODY.PEEK[HEADER.FIELDS (Subject From Date Message-Id References In-Reply-To Xref To Newsgroups)])" buffer=nil
| | | 4 -> imap-send-command-1: cmdstr="108 UID FETCH 780:784 (UID RFC822.SIZE BODY BODY.PEEK[HEADER.FIELDS (Subject From Date Message-Id References In-Reply-To Xref To Newsgroups)])"
| | | 4 <- imap-send-command-1: nil
| | 3 <- imap-send-command: 108
| | 3 -> imap-wait-for-tag: tag=108 buffer=nil
| | | 4 -> imap-arrival-filter: proc=#<process imap> string="* 759 FETCH (UID 781 RFC822.SIZE 908 BODY (\"text\" \"plain\"  (\"charset\" \"us-ascii\") NIL NIL \"7BIT\" 184 4) BODY[HEADER.FIELDS (Subject From Date Message-Id References In-Reply-To Xref To Newsgroups)] {433}

From: Bjorn Solberg <xxx@yyy.zzz>

To: aaa@bbb.ccc

Subject: Re: <the subject>

Date: Fri, 04 Mar 2005 13:31:38 -0800

In-Reply-To: <OF0175C613.CE9011F7-ON88256FBA.0075F2F7-00256FBA.0075FB40@yyy.zzz>

	(John Smith's message of \"Fri, 4 Mar 2005 21:28:38 +0000\")

Message-ID: <ur7ivcd39.fsf@yyy.zzz>

References: <OF0175C613.CE9011F7-ON88256FBA.0075F2F7-00256FBA.0075FB40@yyy.zzz>





)

* 761 FETCH (UID 783 RFC822.SIZE 1055 BODY (\"text\" \"plain\"  (\"charset\" \"us-ascii\") NIL NIL \"7BIT\" 331 6) BODY[HEADER.FIELDS (Subject From Date Message-Id References In-Reply-To Xref To Newsgroups)] {433}

From: Bjorn Solberg <xxx@yyy.zzz>

To: aaa@bbb.ccc

Subject: Re: <the subject>

Date: Fri, 04 Mar 2005 13:42:42 -0800

In-Reply-To: <OFA66DD0EF."
| | | | 5 -> imap-find-next-line: 
| | | | | 6 -> imap-find-next-line: 
| | | | | 6 <- imap-find-next-line: 641
| | | | 5 <- imap-find-next-line: 641
| | | | 5 -> imap-parse-response: 
| | | | | 6 -> imap-parse-fetch: response=759
| | | | | | 7 -> imap-parse-body: 
| | | | | | 7 <- imap-parse-body: ("text" "plain" ("charset" "us-ascii") nil nil "7BIT" 184 4)
| | | | | | 7 -> imap-message-put: uid=781 propname=UID value=781 buffer=nil
| | | | | | 7 <- imap-message-put: t
| | | | | | 7 -> imap-message-put: uid=781 propname=RFC822\.SIZE value=908 buffer=nil
| | | | | | 7 <- imap-message-put: t
| | | | | | 7 -> imap-message-put: uid=781 propname=BODY value=("text" "plain" ("charset" "us-ascii") nil nil "7BIT" 184 4) buffer=nil
| | | | | | 7 <- imap-message-put: t
| | | | | | 7 -> imap-message-put: uid=781 propname=BODYDETAIL value=(("HEADER.FIELDS SUBJECT FROM DATE MESSAGE-ID REFERENCES IN-REPLY-TO XREF TO NEWSGROUPS" nil "From: Bjorn Solberg <xxx@yyy.zzz>

To: aaa@bbb.ccc

Subject: Re: <the subject>

Date: Fri, 04 Mar 2005 13:31:38 -0800

In-Reply-To: <OF0175C613.CE9011F7-ON88256FBA.0075F2F7-00256FBA.0075FB40@yyy.zzz>

	(John Smith's message of \"Fri, 4 Mar 2005 21:28:38 +0000\")

Message-ID: <ur7ivcd39.fsf@yyy.zzz>

References: <OF0175C613.CE9011F7-ON88256FBA.0075F2F7-00256FBA.0075FB40@yyy.zzz>





")) buffer=nil
| | | | | | 7 <- imap-message-put: t
| | | | | | 7 -> imap-capability: identifier=IMAP4rev1 buffer=nil
| | | | | | 7 <- imap-capability: (IMAP4REV1 AUTH=PLAIN LITERAL+ NAMESPACE QUOTA UIDPLUS)
| | | | | | 7 -> imap-message-get: uid=781 propname=BODYDETAIL buffer=nil
| | | | | | 7 <- imap-message-get: (("HEADER.FIELDS SUBJECT FROM DATE MESSAGE-ID REFERENCES IN-REPLY-TO XREF TO NEWSGROUPS" nil "From: Bjorn Solberg <xxx@yyy.zzz>

To: aaa@bbb.ccc

Subject: Re: <the subject>

Date: Fri, 04 Mar 2005 13:31:38 -0800

In-Reply-To: <OF0175C613.CE9011F7-ON88256FBA.0075F2F7-00256FBA.0075FB40@yyy.zzz>

	(John Smith's message of \"Fri, 4 Mar 2005 21:28:38 +0000\")

Message-ID: <ur7ivcd39.fsf@yyy.zzz>

References: <OF0175C613.CE9011F7-ON88256FBA.0075F2F7-00256FBA.0075FB40@yyy.zzz>





"))
| | | | | | 7 -> imap-message-get: uid=781 propname=BODY buffer=nil
| | | | | | 7 <- imap-message-get: ("text" "plain" ("charset" "us-ascii") nil nil "7BIT" 184 4)
| | | | | | 7 -> imap-body-lines: body=("text" "plain" ("charset" "us-ascii") nil nil "7BIT" 184 4)
| | | | | | 7 <- imap-body-lines: 4
| | | | | | 7 -> imap-message-get: uid=781 propname=RFC822\.SIZE buffer=nil
| | | | | | 7 <- imap-message-get: 908
| | | | | 6 <- imap-parse-fetch: nil
| | | | 5 <- imap-parse-response: nil
| | | | 5 -> imap-find-next-line: 
| | | | 5 <- imap-find-next-line: nil
| | | 4 <- imap-arrival-filter: nil
| | | 4 -> imap-arrival-filter: proc=#<process imap> string="4AED4819-ON88256FBA.0076CA92-00256FBA.0076CD4B@yyy.zzz>

	(John Smith's message of \"Fri, 4 Mar 2005 21:37:36 +0000\")

Message-ID: <ull93cckt.fsf@yyy.zzz>

References: <OFA66DD0EF.4AED4819-ON88256FBA.0076CA92-00256FBA.0076CD4B@yyy.zzz>





)

* 760 FETCH (UID 782 RFC822.SIZE 5565 BODY ((\"TEXT\" \"PLAIN\"  (\"charset\" \"ISO-8859-1\") NIL NIL \"QUOTED-PRINTABLE\" 1654 67)(\"IMAGE\" \"JPEG\"  (\"name\" \"pic09750.jpg\") NIL NIL \"BASE64\" 2878) \"MIXED\") BODY[HEADER.FIELDS (Subject From Date Message-Id References In-Reply-To Xref To Newsgroups)] {284}

In-Reply-To: <ur7ivcd39.fsf@yyy.zzz>

Subject: Re: <the subject>

To: Bjorn Solberg <xxx@yyy.zzz>

Message-ID: <OFA66DD0EF.4AED4819-ON88256FBA.0076CA92-00256FBA.0076CD4B@yyy.zzz>

From: aaa@bbb.ccc

Date: Fri, 4 Mar 2005 21:37:36 +0000





)

* 758 FETCH (UID 780 RFC822.SIZE 6021 BODY ((\"TEXT\" \"PLAIN\"  (\"charset\" \"ISO-8859-1\") NIL NIL \"QUOTED-PRINTABLE\" 2052 81)(\"IMAGE\" \"JPEG\"  (\"name\" \"pic24812.jpg\") NIL NIL \"BASE64\" 2878) \""
| | | | 5 -> imap-find-next-line: 
| | | | | 6 -> imap-find-next-line: 
| | | | | 6 <- imap-find-next-line: 642
| | | | 5 <- imap-find-next-line: 642
| | | | 5 -> imap-parse-response: 
| | | | | 6 -> imap-parse-fetch: response=761
| | | | | | 7 -> imap-parse-body: 
| | | | | | 7 <- imap-parse-body: ("text" "plain" ("charset" "us-ascii") nil nil "7BIT" 331 6)
| | | | | | 7 -> imap-message-put: uid=783 propname=UID value=783 buffer=nil
| | | | | | 7 <- imap-message-put: t
| | | | | | 7 -> imap-message-put: uid=783 propname=RFC822\.SIZE value=1055 buffer=nil
| | | | | | 7 <- imap-message-put: t
| | | | | | 7 -> imap-message-put: uid=783 propname=BODY value=("text" "plain" ("charset" "us-ascii") nil nil "7BIT" 331 6) buffer=nil
| | | | | | 7 <- imap-message-put: t
| | | | | | 7 -> imap-message-put: uid=783 propname=BODYDETAIL value=(("HEADER.FIELDS SUBJECT FROM DATE MESSAGE-ID REFERENCES IN-REPLY-TO XREF TO NEWSGROUPS" nil "From: Bjorn Solberg <xxx@yyy.zzz>

To: aaa@bbb.ccc

Subject: Re: <the subject>

Date: Fri, 04 Mar 2005 13:42:42 -0800

In-Reply-To: <OFA66DD0EF.4AED4819-ON88256FBA.0076CA92-00256FBA.0076CD4B@yyy.zzz>

	(John Smith's message of \"Fri, 4 Mar 2005 21:37:36 +0000\")

Message-ID: <ull93cckt.fsf@yyy.zzz>

References: <OFA66DD0EF.4AED4819-ON88256FBA.0076CA92-00256FBA.0076CD4B@yyy.zzz>





")) buffer=nil
| | | | | | 7 <- imap-message-put: t
| | | | | | 7 -> imap-capability: identifier=IMAP4rev1 buffer=nil
| | | | | | 7 <- imap-capability: (IMAP4REV1 AUTH=PLAIN LITERAL+ NAMESPACE QUOTA UIDPLUS)
| | | | | | 7 -> imap-message-get: uid=783 propname=BODYDETAIL buffer=nil
| | | | | | 7 <- imap-message-get: (("HEADER.FIELDS SUBJECT FROM DATE MESSAGE-ID REFERENCES IN-REPLY-TO XREF TO NEWSGROUPS" nil "From: Bjorn Solberg <xxx@yyy.zzz>

To: aaa@bbb.ccc

Subject: Re: <the subject>

Date: Fri, 04 Mar 2005 13:42:42 -0800

In-Reply-To: <OFA66DD0EF.4AED4819-ON88256FBA.0076CA92-00256FBA.0076CD4B@yyy.zzz>

	(John Smith's message of \"Fri, 4 Mar 2005 21:37:36 +0000\")

Message-ID: <ull93cckt.fsf@yyy.zzz>

References: <OFA66DD0EF.4AED4819-ON88256FBA.0076CA92-00256FBA.0076CD4B@yyy.zzz>





"))
| | | | | | 7 -> imap-message-get: uid=783 propname=BODY buffer=nil
| | | | | | 7 <- imap-message-get: ("text" "plain" ("charset" "us-ascii") nil nil "7BIT" 331 6)
| | | | | | 7 -> imap-body-lines: body=("text" "plain" ("charset" "us-ascii") nil nil "7BIT" 331 6)
| | | | | | 7 <- imap-body-lines: 6
| | | | | | 7 -> imap-message-get: uid=783 propname=RFC822\.SIZE buffer=nil
| | | | | | 7 <- imap-message-get: 1055
| | | | | 6 <- imap-parse-fetch: nil
| | | | 5 <- imap-parse-response: nil
| | | | 5 -> imap-find-next-line: 
| | | | | 6 -> imap-find-next-line: 
| | | | | 6 <- imap-find-next-line: 582
| | | | 5 <- imap-find-next-line: 582
| | | | 5 -> imap-parse-response: 
| | | | | 6 -> imap-parse-fetch: response=760
| | | | | | 7 -> imap-parse-body: 
| | | | | | | 8 -> imap-parse-body: 
| | | | | | | 8 <- imap-parse-body: ("TEXT" "PLAIN" ("charset" "ISO-8859-1") nil nil "QUOTED-PRINTABLE" 1654 67)
| | | | | | | 8 -> imap-parse-body: 
| | | | | | | 8 <- imap-parse-body: ("IMAGE" "JPEG" ("name" "pic09750.jpg") nil nil "BASE64" 2878)
| | | | | | 7 <- imap-parse-body: (("TEXT" "PLAIN" ("charset" "ISO-8859-1") nil nil "QUOTED-PRINTABLE" 1654 67) ("IMAGE" "JPEG" ("name" "pic09750.jpg") nil nil "BASE64" 2878) "MIXED")
| | | | | | 7 -> imap-message-put: uid=782 propname=UID value=782 buffer=nil
| | | | | | 7 <- imap-message-put: t
| | | | | | 7 -> imap-message-put: uid=782 propname=RFC822\.SIZE value=5565 buffer=nil
| | | | | | 7 <- imap-message-put: t
| | | | | | 7 -> imap-message-put: uid=782 propname=BODY value=(("TEXT" "PLAIN" ("charset" "ISO-8859-1") nil nil "QUOTED-PRINTABLE" 1654 67) ("IMAGE" "JPEG" ("name" "pic09750.jpg") nil nil "BASE64" 2878) "MIXED") buffer=nil
| | | | | | 7 <- imap-message-put: t
| | | | | | 7 -> imap-message-put: uid=782 propname=BODYDETAIL value=(("HEADER.FIELDS SUBJECT FROM DATE MESSAGE-ID REFERENCES IN-REPLY-TO XREF TO NEWSGROUPS" nil "In-Reply-To: <ur7ivcd39.fsf@yyy.zzz>

Subject: Re: <the subject>

To: Bjorn Solberg <xxx@yyy.zzz>

Message-ID: <OFA66DD0EF.4AED4819-ON88256FBA.0076CA92-00256FBA.0076CD4B@yyy.zzz>

From: aaa@bbb.ccc

Date: Fri, 4 Mar 2005 21:37:36 +0000





")) buffer=nil
| | | | | | 7 <- imap-message-put: t
| | | | | | 7 -> imap-capability: identifier=IMAP4rev1 buffer=nil
| | | | | | 7 <- imap-capability: (IMAP4REV1 AUTH=PLAIN LITERAL+ NAMESPACE QUOTA UIDPLUS)
| | | | | | 7 -> imap-message-get: uid=782 propname=BODYDETAIL buffer=nil
| | | | | | 7 <- imap-message-get: (("HEADER.FIELDS SUBJECT FROM DATE MESSAGE-ID REFERENCES IN-REPLY-TO XREF TO NEWSGROUPS" nil "In-Reply-To: <ur7ivcd39.fsf@yyy.zzz>

Subject: Re: <the subject>

To: Bjorn Solberg <xxx@yyy.zzz>

Message-ID: <OFA66DD0EF.4AED4819-ON88256FBA.0076CA92-00256FBA.0076CD4B@yyy.zzz>

From: aaa@bbb.ccc

Date: Fri, 4 Mar 2005 21:37:36 +0000





"))
| | | | | | 7 -> imap-message-get: uid=782 propname=BODY buffer=nil
| | | | | | 7 <- imap-message-get: (("TEXT" "PLAIN" ("charset" "ISO-8859-1") nil nil "QUOTED-PRINTABLE" 1654 67) ("IMAGE" "JPEG" ("name" "pic09750.jpg") nil nil "BASE64" 2878) "MIXED")
| | | | | | 7 -> imap-body-lines: body=(("TEXT" "PLAIN" ("charset" "ISO-8859-1") nil nil "QUOTED-PRINTABLE" 1654 67) ("IMAGE" "JPEG" ("name" "pic09750.jpg") nil nil "BASE64" 2878) "MIXED")
| | | | | | | 8 -> imap-body-lines: body=("TEXT" "PLAIN" ("charset" "ISO-8859-1") nil nil "QUOTED-PRINTABLE" 1654 67)
| | | | | | | 8 <- imap-body-lines: 67
| | | | | | | 8 -> imap-body-lines: body=("IMAGE" "JPEG" ("name" "pic09750.jpg") nil nil "BASE64" 2878)
| | | | | | | 8 <- imap-body-lines: 0
| | | | | | | 8 -> imap-body-lines: body="MIXED"
| | | | | | | 8 <- imap-body-lines: 0
| | | | | | 7 <- imap-body-lines: 67
| | | | | | 7 -> imap-message-get: uid=782 propname=RFC822\.SIZE buffer=nil
| | | | | | 7 <- imap-message-get: 5565
| | | | | 6 <- imap-parse-fetch: nil
| | | | 5 <- imap-parse-response: nil
| | | | 5 -> imap-find-next-line: 
| | | | 5 <- imap-find-next-line: nil
| | | 4 <- imap-arrival-filter: nil
| | | 4 -> imap-arrival-filter: proc=#<process imap> string="MIXED\") BODY[HEADER.FIELDS (Subject From Date Message-Id References In-Reply-To Xref To Newsgroups)] {284}

In-Reply-To: <uzmxjcdap.fsf@yyy.zzz>

Subject: Re: <the subject>

To: Bjorn Solberg <xxx@yyy.zzz>

Message-ID: <OF0175C613.CE9011F7-ON88256FBA.0075F2F7-00256FBA.0075FB40@yyy.zzz>

From: aaa@bbb.ccc

Date: Fri, 4 Mar 2005 21:28:38 +0000





)

* 762 FETCH (UID 784 RFC822.SIZE 6209 BODY ((\"TEXT\" \"PLAIN\"  (\"charset\" \"ISO-8859-1\") NIL NIL \"QUOTED-PRINTABLE\" 2236 86)(\"IMAGE\" \"JPEG\"  (\"name\" \"pic09576.jpg\") NIL NIL \"BASE64\" 2878) \"MIXED\") BODY[HEADER.FIELDS (Subject From Date Message-Id References In-Reply-To Xref To Newsgroups)] {284}

In-Reply-To: <ull93cckt.fsf@yyy.zzz>

Subject: Re: <the subject>

To: Bjorn Solberg <xxx@yyy.zzz>

Message-ID: <OF55FB21C6.CD401F90-ON88256FBA.0077644A-00256FBA.0077C691@yyy.zzz>

From: aaa@bbb.ccc

Date: Fri, 4 Mar 2005 21:48:14 +0000





)

108 OK FETCH completed

"
| | | | 5 -> imap-find-next-line: 
| | | | | 6 -> imap-find-next-line: 
| | | | | 6 <- imap-find-next-line: 582
| | | | 5 <- imap-find-next-line: 582
| | | | 5 -> imap-parse-response: 
| | | | | 6 -> imap-parse-fetch: response=758
| | | | | | 7 -> imap-parse-body: 
| | | | | | | 8 -> imap-parse-body: 
| | | | | | | 8 <- imap-parse-body: ("TEXT" "PLAIN" ("charset" "ISO-8859-1") nil nil "QUOTED-PRINTABLE" 2052 81)
| | | | | | | 8 -> imap-parse-body: 
| | | | | | | 8 <- imap-parse-body: ("IMAGE" "JPEG" ("name" "pic24812.jpg") nil nil "BASE64" 2878)
| | | | | | 7 <- imap-parse-body: (("TEXT" "PLAIN" ("charset" "ISO-8859-1") nil nil "QUOTED-PRINTABLE" 2052 81) ("IMAGE" "JPEG" ("name" "pic24812.jpg") nil nil "BASE64" 2878) "MIXED")
| | | | | | 7 -> imap-message-put: uid=780 propname=UID value=780 buffer=nil
| | | | | | 7 <- imap-message-put: t
| | | | | | 7 -> imap-message-put: uid=780 propname=RFC822\.SIZE value=6021 buffer=nil
| | | | | | 7 <- imap-message-put: t
| | | | | | 7 -> imap-message-put: uid=780 propname=BODY value=(("TEXT" "PLAIN" ("charset" "ISO-8859-1") nil nil "QUOTED-PRINTABLE" 2052 81) ("IMAGE" "JPEG" ("name" "pic24812.jpg") nil nil "BASE64" 2878) "MIXED") buffer=nil
| | | | | | 7 <- imap-message-put: t
| | | | | | 7 -> imap-message-put: uid=780 propname=BODYDETAIL value=(("HEADER.FIELDS SUBJECT FROM DATE MESSAGE-ID REFERENCES IN-REPLY-TO XREF TO NEWSGROUPS" nil "In-Reply-To: <uzmxjcdap.fsf@yyy.zzz>

Subject: Re: <the subject>

To: Bjorn Solberg <xxx@yyy.zzz>

Message-ID: <OF0175C613.CE9011F7-ON88256FBA.0075F2F7-00256FBA.0075FB40@yyy.zzz>

From: aaa@bbb.ccc

Date: Fri, 4 Mar 2005 21:28:38 +0000





")) buffer=nil
| | | | | | 7 <- imap-message-put: t
| | | | | | 7 -> imap-capability: identifier=IMAP4rev1 buffer=nil
| | | | | | 7 <- imap-capability: (IMAP4REV1 AUTH=PLAIN LITERAL+ NAMESPACE QUOTA UIDPLUS)
| | | | | | 7 -> imap-message-get: uid=780 propname=BODYDETAIL buffer=nil
| | | | | | 7 <- imap-message-get: (("HEADER.FIELDS SUBJECT FROM DATE MESSAGE-ID REFERENCES IN-REPLY-TO XREF TO NEWSGROUPS" nil "In-Reply-To: <uzmxjcdap.fsf@yyy.zzz>

Subject: Re: <the subject>

To: Bjorn Solberg <xxx@yyy.zzz>

Message-ID: <OF0175C613.CE9011F7-ON88256FBA.0075F2F7-00256FBA.0075FB40@yyy.zzz>

From: aaa@bbb.ccc

Date: Fri, 4 Mar 2005 21:28:38 +0000





"))
| | | | | | 7 -> imap-message-get: uid=780 propname=BODY buffer=nil
| | | | | | 7 <- imap-message-get: (("TEXT" "PLAIN" ("charset" "ISO-8859-1") nil nil "QUOTED-PRINTABLE" 2052 81) ("IMAGE" "JPEG" ("name" "pic24812.jpg") nil nil "BASE64" 2878) "MIXED")
| | | | | | 7 -> imap-body-lines: body=(("TEXT" "PLAIN" ("charset" "ISO-8859-1") nil nil "QUOTED-PRINTABLE" 2052 81) ("IMAGE" "JPEG" ("name" "pic24812.jpg") nil nil "BASE64" 2878) "MIXED")
| | | | | | | 8 -> imap-body-lines: body=("TEXT" "PLAIN" ("charset" "ISO-8859-1") nil nil "QUOTED-PRINTABLE" 2052 81)
| | | | | | | 8 <- imap-body-lines: 81
| | | | | | | 8 -> imap-body-lines: body=("IMAGE" "JPEG" ("name" "pic24812.jpg") nil nil "BASE64" 2878)
| | | | | | | 8 <- imap-body-lines: 0
| | | | | | | 8 -> imap-body-lines: body="MIXED"
| | | | | | | 8 <- imap-body-lines: 0
| | | | | | 7 <- imap-body-lines: 81
| | | | | | 7 -> imap-message-get: uid=780 propname=RFC822\.SIZE buffer=nil
| | | | | | 7 <- imap-message-get: 6021
| | | | | 6 <- imap-parse-fetch: nil
| | | | 5 <- imap-parse-response: nil
| | | | 5 -> imap-find-next-line: 
| | | | | 6 -> imap-find-next-line: 
| | | | | 6 <- imap-find-next-line: 582
| | | | 5 <- imap-find-next-line: 582
| | | | 5 -> imap-parse-response: 
| | | | | 6 -> imap-parse-fetch: response=762
| | | | | | 7 -> imap-parse-body: 
| | | | | | | 8 -> imap-parse-body: 
| | | | | | | 8 <- imap-parse-body: ("TEXT" "PLAIN" ("charset" "ISO-8859-1") nil nil "QUOTED-PRINTABLE" 2236 86)
| | | | | | | 8 -> imap-parse-body: 
| | | | | | | 8 <- imap-parse-body: ("IMAGE" "JPEG" ("name" "pic09576.jpg") nil nil "BASE64" 2878)
| | | | | | 7 <- imap-parse-body: (("TEXT" "PLAIN" ("charset" "ISO-8859-1") nil nil "QUOTED-PRINTABLE" 2236 86) ("IMAGE" "JPEG" ("name" "pic09576.jpg") nil nil "BASE64" 2878) "MIXED")
| | | | | | 7 -> imap-message-put: uid=784 propname=UID value=784 buffer=nil
| | | | | | 7 <- imap-message-put: t
| | | | | | 7 -> imap-message-put: uid=784 propname=RFC822\.SIZE value=6209 buffer=nil
| | | | | | 7 <- imap-message-put: t
| | | | | | 7 -> imap-message-put: uid=784 propname=BODY value=(("TEXT" "PLAIN" ("charset" "ISO-8859-1") nil nil "QUOTED-PRINTABLE" 2236 86) ("IMAGE" "JPEG" ("name" "pic09576.jpg") nil nil "BASE64" 2878) "MIXED") buffer=nil
| | | | | | 7 <- imap-message-put: t
| | | | | | 7 -> imap-message-put: uid=784 propname=BODYDETAIL value=(("HEADER.FIELDS SUBJECT FROM DATE MESSAGE-ID REFERENCES IN-REPLY-TO XREF TO NEWSGROUPS" nil "In-Reply-To: <ull93cckt.fsf@yyy.zzz>

Subject: Re: <the subject>

To: Bjorn Solberg <xxx@yyy.zzz>

Message-ID: <OF55FB21C6.CD401F90-ON88256FBA.0077644A-00256FBA.0077C691@yyy.zzz>

From: aaa@bbb.ccc

Date: Fri, 4 Mar 2005 21:48:14 +0000





")) buffer=nil
| | | | | | 7 <- imap-message-put: t
| | | | | | 7 -> imap-capability: identifier=IMAP4rev1 buffer=nil
| | | | | | 7 <- imap-capability: (IMAP4REV1 AUTH=PLAIN LITERAL+ NAMESPACE QUOTA UIDPLUS)
| | | | | | 7 -> imap-message-get: uid=784 propname=BODYDETAIL buffer=nil
| | | | | | 7 <- imap-message-get: (("HEADER.FIELDS SUBJECT FROM DATE MESSAGE-ID REFERENCES IN-REPLY-TO XREF TO NEWSGROUPS" nil "In-Reply-To: <ull93cckt.fsf@yyy.zzz>

Subject: Re: <the subject>

To: Bjorn Solberg <xxx@yyy.zzz>

Message-ID: <OF55FB21C6.CD401F90-ON88256FBA.0077644A-00256FBA.0077C691@yyy.zzz>

From: aaa@bbb.ccc

Date: Fri, 4 Mar 2005 21:48:14 +0000





"))
| | | | | | 7 -> imap-message-get: uid=784 propname=BODY buffer=nil
| | | | | | 7 <- imap-message-get: (("TEXT" "PLAIN" ("charset" "ISO-8859-1") nil nil "QUOTED-PRINTABLE" 2236 86) ("IMAGE" "JPEG" ("name" "pic09576.jpg") nil nil "BASE64" 2878) "MIXED")
| | | | | | 7 -> imap-body-lines: body=(("TEXT" "PLAIN" ("charset" "ISO-8859-1") nil nil "QUOTED-PRINTABLE" 2236 86) ("IMAGE" "JPEG" ("name" "pic09576.jpg") nil nil "BASE64" 2878) "MIXED")
| | | | | | | 8 -> imap-body-lines: body=("TEXT" "PLAIN" ("charset" "ISO-8859-1") nil nil "QUOTED-PRINTABLE" 2236 86)
| | | | | | | 8 <- imap-body-lines: 86
| | | | | | | 8 -> imap-body-lines: body=("IMAGE" "JPEG" ("name" "pic09576.jpg") nil nil "BASE64" 2878)
| | | | | | | 8 <- imap-body-lines: 0
| | | | | | | 8 -> imap-body-lines: body="MIXED"
| | | | | | | 8 <- imap-body-lines: 0
| | | | | | 7 <- imap-body-lines: 86
| | | | | | 7 -> imap-message-get: uid=784 propname=RFC822\.SIZE buffer=nil
| | | | | | 7 <- imap-message-get: 6209
| | | | | 6 <- imap-parse-fetch: nil
| | | | 5 <- imap-parse-response: nil
| | | | 5 -> imap-find-next-line: 
| | | | 5 <- imap-find-next-line: 25
| | | | 5 -> imap-parse-response: 
| | | | | 6 -> imap-parse-resp-text: 
| | | | | | 7 -> imap-parse-resp-text-code: 
| | | | | | 7 <- imap-parse-resp-text-code: nil
| | | | | 6 <- imap-parse-resp-text: nil
| | | | 5 <- imap-parse-response: nil
| | | | 5 -> imap-find-next-line: 
| | | | 5 <- imap-find-next-line: nil
| | | 4 <- imap-arrival-filter: nil
| | 3 <- imap-wait-for-tag: OK
| 2 <- imap-send-command-wait: OK
1 <- imap-fetch: t





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

* Re: nnimap fails to fetch some articles
  2005-03-05  0:47 nnimap fails to fetch some articles Bjorn Solberg
@ 2005-03-05 11:00 ` Simon Josefsson
  2005-03-07 18:35   ` Bjorn Solberg
  0 siblings, 1 reply; 16+ messages in thread
From: Simon Josefsson @ 2005-03-05 11:00 UTC (permalink / raw)
  Cc: ding

Bjorn Solberg <bjorn_ding@hekneby.org> writes:

> When I do 5 RET to fetch the last 5 messages, I consistently only get 3,
> missing some in-between: It's getting N-3, N-1 and N, skipping N-4 and
> N-2.
>
> If I fetch the last 6 messages, it skips N-5 in addition.
>
> If I fetch the last 7 messages, it skips the same as for 6 but fetches
> message# N-6.
>
> The full *imap-log* is 800 lines long for the 5 RET, see below for the
> last 400+ lines.  It looks like it's issuing the correct command, "UID
> FETCH 780:784 [...]" but for some reason it doesn't display the first and
> third of those last 5 messages.

I didn't spot any problem in the IMAP log.

After you have entered the group with 5 RET, what is in the " *nntpd*"
buffer?  Note leading SPC.

One idea is that the IMAP parser doesn't understand the responses and
skip the article, in that case the *nntpd* buffer would only contain
the information from three of the articles.



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

* Re: nnimap fails to fetch some articles
  2005-03-05 11:00 ` Simon Josefsson
@ 2005-03-07 18:35   ` Bjorn Solberg
  2005-03-07 21:45     ` Simon Josefsson
  0 siblings, 1 reply; 16+ messages in thread
From: Bjorn Solberg @ 2005-03-07 18:35 UTC (permalink / raw)


Simon Josefsson writes:

> Bjorn Solberg <bjorn_ding@hekneby.org> writes:
>> When I do 5 RET to fetch the last 5 messages, I consistently only get 3,
>> missing some in-between: It's getting N-3, N-1 and N, skipping N-4 and
>> N-2.
>> 
>> If I fetch the last 6 messages, it skips N-5 in addition.
>> 
>> If I fetch the last 7 messages, it skips the same as for 6 but fetches
>> message# N-6.
>> 
>> The full *imap-log* is 800 lines long for the 5 RET, see below for the
>> last 400+ lines.  It looks like it's issuing the correct command, "UID
>> FETCH 780:784 [...]" but for some reason it doesn't display the first and
>> third of those last 5 messages.

> I didn't spot any problem in the IMAP log.

> After you have entered the group with 5 RET, what is in the " *nntpd*"
> buffer?  Note leading SPC.

> One idea is that the IMAP parser doesn't understand the responses and
> skip the article, in that case the *nntpd* buffer would only contain
> the information from three of the articles.

" *nntpd*" shows an entry for all 5 messages.  I have received new
messages since last, so now it show only 2 messages when I do 5 RET.
Which means this is somehow content-related.

However, I see a pattern in " *nntpd*" now: " *nntpd*" shows that the
messages aren't sorted by id.  For example, doing 5 RET I see entries 793
795 794 792 791 in " *nntpd*", and only 793 and 795 is shown in the
Summary buffer.  

Doing 10 RET, I see 789 790 787 786 788 793 795 791 792 794, but only 789
790 793 795 is displayed in the Summary buffer.  Which means Gnus is
looping over the entries and drops or forgets anything that looks older
than a previous encountered entry.  This would be OK if it sorted all the
entries first or something.

Despite not being too familiar with the Gnus source and being somewhat of
a Lisp beginner, I could try to track this down if I'm the only one
seeing this problem, although I suspect there are plenty of others on
this list that could point me to the right place immediately. :-) I'd
have to find out what the intention is behind the current behavior and
find a way to correct the behavior without working against the intention.

Bjorn.



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

* Re: nnimap fails to fetch some articles
  2005-03-07 18:35   ` Bjorn Solberg
@ 2005-03-07 21:45     ` Simon Josefsson
  2005-03-07 22:00       ` Bjorn Solberg
  2005-03-07 22:40       ` Bjorn Solberg
  0 siblings, 2 replies; 16+ messages in thread
From: Simon Josefsson @ 2005-03-07 21:45 UTC (permalink / raw)
  Cc: ding

Bjorn Solberg <bjorn_ding@hekneby.org> writes:

> Simon Josefsson writes:
>
>> Bjorn Solberg <bjorn_ding@hekneby.org> writes:
>>> When I do 5 RET to fetch the last 5 messages, I consistently only get 3,
>>> missing some in-between: It's getting N-3, N-1 and N, skipping N-4 and
>>> N-2.
>>> 
>>> If I fetch the last 6 messages, it skips N-5 in addition.
>>> 
>>> If I fetch the last 7 messages, it skips the same as for 6 but fetches
>>> message# N-6.
>>> 
>>> The full *imap-log* is 800 lines long for the 5 RET, see below for the
>>> last 400+ lines.  It looks like it's issuing the correct command, "UID
>>> FETCH 780:784 [...]" but for some reason it doesn't display the first and
>>> third of those last 5 messages.
>
>> I didn't spot any problem in the IMAP log.
>
>> After you have entered the group with 5 RET, what is in the " *nntpd*"
>> buffer?  Note leading SPC.
>
>> One idea is that the IMAP parser doesn't understand the responses and
>> skip the article, in that case the *nntpd* buffer would only contain
>> the information from three of the articles.
>
> " *nntpd*" shows an entry for all 5 messages.  I have received new
> messages since last, so now it show only 2 messages when I do 5 RET.
> Which means this is somehow content-related.
>
> However, I see a pattern in " *nntpd*" now: " *nntpd*" shows that the
> messages aren't sorted by id.  For example, doing 5 RET I see entries 793
> 795 794 792 791 in " *nntpd*", and only 793 and 795 is shown in the
> Summary buffer.

Ah, thanks, that is it.  The IMAP server returned the articles out of
order.  Which I think is perfectly legal.  Maybe the following patch
help?  Untested.

--- nnimap.el	04 Mar 2005 17:59:01 +0100	7.17
+++ nnimap.el	07 Mar 2005 22:45:30 +0100	
@@ -710,6 +710,8 @@
 			    (if (imap-capability 'IMAP4rev1)
 				(format "BODY.PEEK[HEADER.FIELDS %s])" headers)
 			      (format "RFC822.HEADER.LINES %s)" headers)))))
+      (with-current-buffer nntp-server-buffer
+	(sort-lines))
       (and (numberp nnmail-large-newsgroup)
 	   (> nnimap-length nnmail-large-newsgroup)
 	   (nnheader-message 6 "nnimap: Retrieving headers...done")))))



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

* Re: nnimap fails to fetch some articles
  2005-03-07 21:45     ` Simon Josefsson
@ 2005-03-07 22:00       ` Bjorn Solberg
  2005-03-07 22:40       ` Bjorn Solberg
  1 sibling, 0 replies; 16+ messages in thread
From: Bjorn Solberg @ 2005-03-07 22:00 UTC (permalink / raw)


Simon Josefsson writes:

> Bjorn Solberg <bjorn_ding@hekneby.org> writes:
[...]
>> " *nntpd*" shows an entry for all 5 messages.  I have received new
>> messages since last, so now it show only 2 messages when I do 5 RET.
>> Which means this is somehow content-related.
>> 
>> However, I see a pattern in " *nntpd*" now: " *nntpd*" shows that the
>> messages aren't sorted by id.  For example, doing 5 RET I see entries 793
>> 795 794 792 791 in " *nntpd*", and only 793 and 795 is shown in the
>> Summary buffer.

> Ah, thanks, that is it.  The IMAP server returned the articles out of
> order.  Which I think is perfectly legal.  Maybe the following patch
> help?  Untested.

> --- nnimap.el	04 Mar 2005 17:59:01 +0100	7.17
> +++ nnimap.el	07 Mar 2005 22:45:30 +0100	
> @@ -710,6 +710,8 @@
>  			    (if (imap-capability 'IMAP4rev1)
>  				(format "BODY.PEEK[HEADER.FIELDS %s])" headers)
>  			      (format "RFC822.HEADER.LINES %s)" headers)))))
> +      (with-current-buffer nntp-server-buffer
> +	(sort-lines))
>        (and (numberp nnmail-large-newsgroup)
>  	   (> nnimap-length nnmail-large-newsgroup)
>  	   (nnheader-message 6 "nnimap: Retrieving headers...done")))))

When compiling, it says:

Compiling file c:/emacs-21.3/site-lisp/gnus-CURRENT-20050304/lisp/nnimap.el at Mon Mar 07 13:51:46 2005
  ** sort-lines called with 0 arguments, but requires 3

and when running it:

nnimap-retrieve-headers-from-server: Wrong number of arguments: #[(reverse beg end) 	}ebÃ
ÄÅ#*" [beg end reverse sort-subr forward-line end-of-line] 4 ("c:/emacs-21.3/lisp/sort.elc" . 4220) "P
r"], 0

C-h f sort-lines says:

sort-lines is an interactive compiled Lisp function in `sort'.
(sort-lines REVERSE BEG END)

Sort lines in region alphabetically; argument means descending order.
Called from a program, there are three arguments:
REVERSE (non-nil means reverse order), BEG and END (region to sort).
The variable `sort-fold-case' determines whether alphabetic case affects
the sort order.

So I suppose we need to pass in the beginning and end of the buffer also,
or is that something the macro surrounding it should have taken care of?
(About time I start learning some elisp, I guess.)

Bjorn.



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

* Re: nnimap fails to fetch some articles
  2005-03-07 21:45     ` Simon Josefsson
  2005-03-07 22:00       ` Bjorn Solberg
@ 2005-03-07 22:40       ` Bjorn Solberg
  2005-03-08  0:40         ` Simon Josefsson
  1 sibling, 1 reply; 16+ messages in thread
From: Bjorn Solberg @ 2005-03-07 22:40 UTC (permalink / raw)


Simon Josefsson writes:

[...]

> Ah, thanks, that is it.  The IMAP server returned the articles out of
> order.  Which I think is perfectly legal.  Maybe the following patch
> help?  Untested.

> --- nnimap.el	04 Mar 2005 17:59:01 +0100	7.17
> +++ nnimap.el	07 Mar 2005 22:45:30 +0100	
> @@ -710,6 +710,8 @@
>  			    (if (imap-capability 'IMAP4rev1)
>  				(format "BODY.PEEK[HEADER.FIELDS %s])" headers)
>  			      (format "RFC822.HEADER.LINES %s)" headers)))))
> +      (with-current-buffer nntp-server-buffer
> +	(sort-lines))
>        (and (numberp nnmail-large-newsgroup)
>  	   (> nnimap-length nnmail-large-newsgroup)
>  	   (nnheader-message 6 "nnimap: Retrieving headers...done")))))

I did

--- nnimap.el	04 Mar 2005 17:59:01 +0100	7.17
+++ nnimap.el	07 Mar 2005 22:45:30 +0100	
@@ -710,6 +710,8 @@
 			    (if (imap-capability 'IMAP4rev1)
 				(format "BODY.PEEK[HEADER.FIELDS %s])" headers)
 			      (format "RFC822.HEADER.LINES %s)" headers)))))
+      (with-current-buffer nntp-server-buffer
+	   (sort-numeric-fields 1 1 (buffer-size)))
       (and (numberp nnmail-large-newsgroup)
 	   (> nnimap-length nnmail-large-newsgroup)
 	   (nnheader-message 6 "nnimap: Retrieving headers...done")))))

and that seems to have done the trick.  Thank you for the help!

Bjorn.



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

* Re: nnimap fails to fetch some articles
  2005-03-07 22:40       ` Bjorn Solberg
@ 2005-03-08  0:40         ` Simon Josefsson
  2005-03-08 19:44           ` Reiner Steib
  2005-03-08 22:42           ` Arne Jørgensen
  0 siblings, 2 replies; 16+ messages in thread
From: Simon Josefsson @ 2005-03-08  0:40 UTC (permalink / raw)
  Cc: ding

Bjorn Solberg <bjorn_ding@hekneby.org> writes:

> +      (with-current-buffer nntp-server-buffer
> +	   (sort-numeric-fields 1 1 (buffer-size)))
>
> and that seems to have done the trick.  Thank you for the help!

Applied, thanks!



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

* Re: nnimap fails to fetch some articles
  2005-03-08  0:40         ` Simon Josefsson
@ 2005-03-08 19:44           ` Reiner Steib
  2005-03-08 21:32             ` Simon Josefsson
  2005-03-08 22:42           ` Arne Jørgensen
  1 sibling, 1 reply; 16+ messages in thread
From: Reiner Steib @ 2005-03-08 19:44 UTC (permalink / raw)


On Tue, Mar 08 2005, Simon Josefsson wrote:

> Bjorn Solberg <bjorn_ding@hekneby.org> writes:
>
>> +      (with-current-buffer nntp-server-buffer
>> +	   (sort-numeric-fields 1 1 (buffer-size)))
>>
>> and that seems to have done the trick.  Thank you for the help!
>
> Applied, thanks!

Shouldn't this go to v5-10, too?  (Sorry, I didn't follow the thread.)

Bye, Reiner.
-- 
       ,,,
      (o o)
---ooO-(_)-Ooo---  |  PGP key available  |  http://rsteib.home.pages.de/




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

* Re: nnimap fails to fetch some articles
  2005-03-08 19:44           ` Reiner Steib
@ 2005-03-08 21:32             ` Simon Josefsson
  2005-03-09 14:11               ` David S. Goldberg
  0 siblings, 1 reply; 16+ messages in thread
From: Simon Josefsson @ 2005-03-08 21:32 UTC (permalink / raw)


Reiner Steib <reinersteib+gmane@imap.cc> writes:

> On Tue, Mar 08 2005, Simon Josefsson wrote:
>
>> Bjorn Solberg <bjorn_ding@hekneby.org> writes:
>>
>>> +      (with-current-buffer nntp-server-buffer
>>> +	   (sort-numeric-fields 1 1 (buffer-size)))
>>>
>>> and that seems to have done the trick.  Thank you for the help!
>>
>> Applied, thanks!
>
> Shouldn't this go to v5-10, too?  (Sorry, I didn't follow the thread.)

Yup!  Thanks for reminding me (again, I think).



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

* Re: nnimap fails to fetch some articles
  2005-03-08  0:40         ` Simon Josefsson
  2005-03-08 19:44           ` Reiner Steib
@ 2005-03-08 22:42           ` Arne Jørgensen
  2005-03-10  9:22             ` Simon Josefsson
  1 sibling, 1 reply; 16+ messages in thread
From: Arne Jørgensen @ 2005-03-08 22:42 UTC (permalink / raw)


[-- Attachment #1: Type: text/plain, Size: 569 bytes --]

Simon Josefsson <jas@extundo.com> writes:

> Bjorn Solberg <bjorn_ding@hekneby.org> writes:
>
>> +      (with-current-buffer nntp-server-buffer
>> +	   (sort-numeric-fields 1 1 (buffer-size)))
>>
>> and that seems to have done the trick.  Thank you for the help!
>
> Applied, thanks!

Since (point-max) is (+ 1 (buffer-size)) we should change
(buffer-size) to (point-max).

I had an error on an emtpy group (I think) where it tried to sort from
1 to 0.

Maybe we should also sort from (point-min) instead of 1?

Kind regards,
-- 
Arne Jørgensen <http://arnested.dk/>


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: nnimap.patch --]
[-- Type: text/x-patch, Size: 758 bytes --]

Index: lisp/nnimap.el
===================================================================
RCS file: /usr/local/cvsroot/gnus/lisp/nnimap.el,v
retrieving revision 7.19
diff -u -p -r7.19 nnimap.el
--- lisp/nnimap.el	8 Mar 2005 20:41:10 -0000	7.19
+++ lisp/nnimap.el	8 Mar 2005 22:37:36 -0000
@@ -711,7 +711,7 @@ If EXAMINE is non-nil the group is selec
 				(format "BODY.PEEK[HEADER.FIELDS %s])" headers)
 			      (format "RFC822.HEADER.LINES %s)" headers)))))
       (with-current-buffer nntp-server-buffer
-	(sort-numeric-fields 1 1 (buffer-size)))
+	(sort-numeric-fields 1 (point-min) (point-max)))
       (and (numberp nnmail-large-newsgroup)
 	   (> nnimap-length nnmail-large-newsgroup)
 	   (nnheader-message 6 "nnimap: Retrieving headers...done")))))

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

* Re: nnimap fails to fetch some articles
  2005-03-08 21:32             ` Simon Josefsson
@ 2005-03-09 14:11               ` David S. Goldberg
  2005-03-09 17:43                 ` Ted Stern
  2005-03-09 18:14                 ` Bjorn Solberg
  0 siblings, 2 replies; 16+ messages in thread
From: David S. Goldberg @ 2005-03-09 14:11 UTC (permalink / raw)


Something's wrong with the latest updates to nnimap.  I have a few old
groups from mailing lists to which I no longer subscribe that have
only dormant articles in them.  I can no longer enter those groups.
Here is a backtrace.

Debugger entered--Lisp error: (args-out-of-range #<buffer " *nntpd*"> 1 0)
  sort-fields-1(1 1 0 #<compiled-function nil "...(49)" [sort-numeric-base case-fold-search field base sort-skip-fields t looking-at "\\(0x\\)[0-9a-f]\\|\\(0\\)[0-7]" 1 16 2 8 string-to-number forward-sexp] 4> nil)
  sort-numeric-fields(1 1 0)
  nnimap-retrieve-headers-from-server((62 . 106) "INBOX.emacs.efs.help" "linus")
  nnimap-retrieve-headers((62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106) "INBOX.emacs.efs.help" "linus" some)
  gnus-retrieve-headers((62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106) "nnimap+linus:INBOX.emacs.efs.help" some)
  gnus-agent-retrieve-headers((1 2 3 4 5 6 7 8 9 27 35 42 44 48 49 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 ...) "nnimap+linus:INBOX.emacs.efs.help" some)
  gnus-retrieve-headers((1 2 3 4 5 6 7 8 9 27 35 42 44 48 49 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 ...) "nnimap+linus:INBOX.emacs.efs.help" some)
  gnus-fetch-headers((1 2 3 4 5 6 7 8 9 27 35 42 44 48 49 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 ...))
  gnus-select-newsgroup("nnimap+linus:INBOX.emacs.efs.help" nil nil)
  gnus-summary-read-group-1("nnimap+linus:INBOX.emacs.efs.help" nil nil nil nil nil)
  gnus-summary-read-group("nnimap+linus:INBOX.emacs.efs.help" nil nil nil nil nil nil)
  gnus-group-read-group(nil nil nil)
  gnus-topic-read-group(nil)
  call-interactively(gnus-topic-read-group)

-- 
Dave Goldberg
david.goldberg6@verizon.net






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

* Re: nnimap fails to fetch some articles
  2005-03-09 14:11               ` David S. Goldberg
@ 2005-03-09 17:43                 ` Ted Stern
  2005-03-10 15:56                   ` David S. Goldberg
  2005-03-09 18:14                 ` Bjorn Solberg
  1 sibling, 1 reply; 16+ messages in thread
From: Ted Stern @ 2005-03-09 17:43 UTC (permalink / raw)


On 9 Mar 2005 at 06:11 PST, David S. Goldberg wrote:
> Something's wrong with the latest updates to nnimap.  I have a few old
> groups from mailing lists to which I no longer subscribe that have
> only dormant articles in them.  I can no longer enter those groups.

I get periodic problems due to the interaction of agent overview and nnimap.

Exit all summaries, get into the *Group* buffer (or exit gnus completely),
then run this command and see if it helps.

    find ~/News/agent -print | grep overview | xargs /bin/rm

IMO, agent overview regeneration should be automatic, or easily redone.
-- 
 Ted Stern                                 Applications Group
 Cray Inc.                               office: 206-701-2182
 411 First Avenue South, Suite 600         cell: 206-383-1049
 Seattle, WA 98104-2860                     FAX: 206-701-2500

 Frango ut patefaciam -- I break so that I may reveal
 (The Paleontological Society motto, equally apropos for debugging)




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

* Re: nnimap fails to fetch some articles
  2005-03-09 14:11               ` David S. Goldberg
  2005-03-09 17:43                 ` Ted Stern
@ 2005-03-09 18:14                 ` Bjorn Solberg
  2005-03-09 19:52                   ` David S. Goldberg
  1 sibling, 1 reply; 16+ messages in thread
From: Bjorn Solberg @ 2005-03-09 18:14 UTC (permalink / raw)


David S Goldberg writes:

> Something's wrong with the latest updates to nnimap.  I have a few old
> groups from mailing lists to which I no longer subscribe that have
> only dormant articles in them.  I can no longer enter those groups.
> Here is a backtrace.

[...]

I can't reproduce it.  Can you try Arne's patch (in Message-ID:
<87fyz5kbeu.fsf@seamus.arnested.dk>) which uses (point-min) and
(point-max) - does that help?  That patch should likely be used instead,
it works for me also.  

(Being more or less unfamiliar with elisp I was unaware of (point-min)
and (point-max), I found (buffer-size) first which worked for me for the
issue I had.)

Bjorn.



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

* Re: nnimap fails to fetch some articles
  2005-03-09 18:14                 ` Bjorn Solberg
@ 2005-03-09 19:52                   ` David S. Goldberg
  0 siblings, 0 replies; 16+ messages in thread
From: David S. Goldberg @ 2005-03-09 19:52 UTC (permalink / raw)


>>>>> On Wed, 09 Mar 2005 10:14:16 -0800, Bjorn Solberg
>>>>> <bjorn_ding@hekneby.org> said:

> I can't reproduce it.  Can you try Arne's patch (in Message-ID:
> <87fyz5kbeu.fsf@seamus.arnested.dk>) which uses (point-min) and
> (point-max) - does that help?  That patch should likely be used instead,
> it works for me also.  

It's working now with that patch applied.  Thanks.

-- 
Dave Goldberg
david.goldberg6@verizon.net






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

* Re: nnimap fails to fetch some articles
  2005-03-08 22:42           ` Arne Jørgensen
@ 2005-03-10  9:22             ` Simon Josefsson
  0 siblings, 0 replies; 16+ messages in thread
From: Simon Josefsson @ 2005-03-10  9:22 UTC (permalink / raw)
  Cc: ding

Arne Jørgensen <arne@arnested.dk> writes:

> Simon Josefsson <jas@extundo.com> writes:
>
>> Bjorn Solberg <bjorn_ding@hekneby.org> writes:
>>
>>> +      (with-current-buffer nntp-server-buffer
>>> +	   (sort-numeric-fields 1 1 (buffer-size)))
>>>
>>> and that seems to have done the trick.  Thank you for the help!
>>
>> Applied, thanks!
>
> Since (point-max) is (+ 1 (buffer-size)) we should change
> (buffer-size) to (point-max).
>
> I had an error on an emtpy group (I think) where it tried to sort from
> 1 to 0.
>
> Maybe we should also sort from (point-min) instead of 1?

Yup.  Applied, thanks.



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

* Re: nnimap fails to fetch some articles
  2005-03-09 17:43                 ` Ted Stern
@ 2005-03-10 15:56                   ` David S. Goldberg
  0 siblings, 0 replies; 16+ messages in thread
From: David S. Goldberg @ 2005-03-10 15:56 UTC (permalink / raw)


>>>>> On Wed, 09 Mar 2005 09:43:15 -0800, Ted Stern <stern+gnus@cray.com> said:

> I get periodic problems due to the interaction of agent overview and nnimap.

> Exit all summaries, get into the *Group* buffer (or exit gnus completely),
> then run this command and see if it helps.

>     find ~/News/agent -print | grep overview | xargs /bin/rm

> IMO, agent overview regeneration should be automatic, or easily redone.

Yes, I do that periodically for the same reason you mention.  But
somehow that didn't fix it this time; the code change did.  I can't
explain it since the numbers should have worked out the same.

Thanks,
-- 
Dave Goldberg
david.goldberg6@verizon.net






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

end of thread, other threads:[~2005-03-10 15:56 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-03-05  0:47 nnimap fails to fetch some articles Bjorn Solberg
2005-03-05 11:00 ` Simon Josefsson
2005-03-07 18:35   ` Bjorn Solberg
2005-03-07 21:45     ` Simon Josefsson
2005-03-07 22:00       ` Bjorn Solberg
2005-03-07 22:40       ` Bjorn Solberg
2005-03-08  0:40         ` Simon Josefsson
2005-03-08 19:44           ` Reiner Steib
2005-03-08 21:32             ` Simon Josefsson
2005-03-09 14:11               ` David S. Goldberg
2005-03-09 17:43                 ` Ted Stern
2005-03-10 15:56                   ` David S. Goldberg
2005-03-09 18:14                 ` Bjorn Solberg
2005-03-09 19:52                   ` David S. Goldberg
2005-03-08 22:42           ` Arne Jørgensen
2005-03-10  9:22             ` Simon Josefsson

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).