From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/84085 Path: news.gmane.org!not-for-mail From: Steinar Bang Newsgroups: gmane.emacs.gnus.general Subject: Re: How to debug a new IMAP server type? Date: Thu, 30 Jan 2014 22:16:46 +0100 Organization: Probably a good idea Message-ID: <87y51xrwzl.fsf@dod.no> References: <87zjnb8nqx.fsf@dod.no> <87ob392mus.fsf@dod.no> <87bnyumhyv.fsf@building.gnus.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1391116664 2584 80.91.229.3 (30 Jan 2014 21:17:44 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 30 Jan 2014 21:17:44 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M32337@lists.math.uh.edu Thu Jan 30 22:17:52 2014 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from util0.math.uh.edu ([129.7.128.18]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1W8yzf-0003JM-N9 for ding-account@gmane.org; Thu, 30 Jan 2014 22:17:52 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by util0.math.uh.edu with smtp (Exim 4.63) (envelope-from ) id 1W8yz0-00043j-2T; Thu, 30 Jan 2014 15:17:10 -0600 Original-Received: from mx1.math.uh.edu ([129.7.128.32]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1W8yyx-00043P-14 for ding@lists.math.uh.edu; Thu, 30 Jan 2014 15:17:07 -0600 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx1.math.uh.edu with esmtps (TLSv1:AES128-SHA:128) (Exim 4.76) (envelope-from ) id 1W8yys-0002e7-EZ for ding@lists.math.uh.edu; Thu, 30 Jan 2014 15:17:06 -0600 Original-Received: from plane.gmane.org ([80.91.229.3]) by quimby.gnus.org with esmtp (Exim 4.80) (envelope-from ) id 1W8yyq-0000OB-Gy for ding@gnus.org; Thu, 30 Jan 2014 22:17:00 +0100 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1W8yyp-0002pk-CZ for ding@gnus.org; Thu, 30 Jan 2014 22:16:59 +0100 Original-Received: from cm-84.208.248.210.getinternet.no ([84.208.248.210]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 30 Jan 2014 22:16:59 +0100 Original-Received: from sb by cm-84.208.248.210.getinternet.no with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 30 Jan 2014 22:16:59 +0100 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: ding@gnus.org Original-Lines: 99 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: cm-84.208.248.210.getinternet.no Mail-Copies-To: never User-Agent: Gnus/5.130008 (Ma Gnus v0.8) Emacs/24.3 (gnu/linux) Cancel-Lock: sha1:H9OBN1HSVh7FWE7gmvO+zwTN6rI= X-Spam-Score: -2.3 (--) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:84085 Archived-At: >>>>> Lars Ingebrigtsen : >> What buffers do I look in? What do I look for in those buffers? Are >> there debug options to switch on? > " *imap log*" If I understand it correctly, It seems to be fetching information for just a single article (UID 2017), this is from entering the davmail INBOX: 21:06:04 [localhost] 41 SELECT "INBOX" 21:06:06 [localhost] 42 SELECT "INBOX" 21:06:10 [localhost] 43 UID FETCH 2017 (UID RFC822.SIZE BODYSTRUCTURE BODY.PEEK[HEADER.FIELDS (Subject From Date Message-Id References In-Reply-To Xref X-Diary-Time-Zone X-Diary-Dow X-Diary-Year X-Diary-Month X-Diary-Dom X-Diary-Hour X-Diary-Minute To Newsgroups Cc)]) For comparison, here is entering an nnimap group on my dovecot server: 21:09:56 [imap.mydomain.com] 46 SELECT "INBOX" 21:09:56 [imap.mydomain.com] 47 SELECT "INBOX" 21:09:56 [imap.mydomain.com] 48 UID FETCH 1:2,52,551:557,561:562,564:567,570,572,584:585,609,652,655,658:669,686,791,798:801,805,836,1005:1006,1023:1024,1053,1058,1068,1084,1088,1090:1094,1097,1099:1100,1104,1110,1116,1127,1197,1204,1206,1209,1225:1226,1254,1262,1280,1284,1313,1331,1341,1347:1348,1350,1417,1441,1443,1447,1451,1485,1489,1493,1539,1554,1576,1592,1594 (UID RFC822.SIZE BODYSTRUCTURE BODY.PEEK[HEADER.FIELDS (Subject From Date Message-Id References In-Reply-To Xref X-Diary-Time-Zone X-Diary-Dow X-Diary-Year X-Diary-Month X-Diary-Dom X-Diary-Hour X-Diary-Minute To Newsgroups Cc)]) > and " *nnimap ... *" buffers. The " *nnimap localhost 1143 *nntpd**" buffer seems to contain the email I see when I selet the single article I see in the Summary. Then it ends with: * BYE Closing connection Process *nnimap*<1> connection broken by remote peer Is that significant? Then there is also the buffer " *nnimap localhost 1143 *nntpd**-398832" with the following content: 211 2017 Article retrieved. Chars: 28785 Lines: 6 From: John Doe To: Steinar BANG Date: Tue, 21 Jan 2014 08:13:04 +0100 Subject: SV: Hjemme med sykt barn Message-ID: <701DABD47A1A7044999B70D8862952E339DA8A8829@SVVEPOST01.somecompany.no> References: <82a64bae86d240bf9076e8263d6fd2dc@DB3PR07MB092.eurprd07.prod.outlook.com> In-Reply-To: <82a64bae86d240bf9076e8263d6fd2dc@DB3PR07MB092.eurprd07.prod.outlook.com> ) 55 OK UID FETCH completed * BYE Closing connection Process *nnimap*<1> connection broken by remote peer . (in fact there seems to be a new such buffer, with an "-somenumber" extension, created every time I enter the INBOX, or when I try to display the single article. And they are never cleaned up as far as I can tell. > Stepping trough `nnimap-transform-headers' might also help. It stepped through the while loop in the function once (which by now isn't too surprising, there seems to be only one article seen by this point in time). It does what it's supposed to do with the single article it has to work with, and what's left at the end, is this: 211 2017 Article retrieved. Chars: 28785 Lines: 6 From: John Doe To: Steinar BANG Date: Tue, 21 Jan 2014 08:13:04 +0100 Subject: SV: Hjemme med sykt barn Message-ID: <701DABD47A1A7044999B70D8862952E339DA8A8829@SVVEPOST01.somecompany.no> References: <82a64bae86d240bf9076e8263d6fd2dc@DB3PR07MB092.eurprd07.prod.outlook.com> In-Reply-To: <82a64bae86d240bf9076e8263d6fd2dc@DB3PR07MB092.eurprd07.prod.outlook.com> ) 70 OK UID FETCH completed * BYE Closing connection Process *nnimap*<1> connection broken by remote peer . And from that it should have been able to at least display meaningful information from that article, rather than what it displays, which is this: O. [ ?: nobody ] (none) Here is the summary line for the article two articles earlier in the thread: ? + [ 21: Steinar Bang ] How to debug a new IMAP server type? So there should have been a line number (which is present in the headers left in the " *nnimap..." buffer), and there should have been the real name of the sender (which is also present in From: header left in the " *nnimap..." buffer), and there should have been a subject (which is also present in the leftover headers in the " *nnimap..." buffer). As far as I can tell the headers all have the correct form. Is it the "* BYE" and the closing connection message that is confusing the stuff that is trying to display the summary?