From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/58985 Path: main.gmane.org!not-for-mail From: "Ted Zlatanov" Newsgroups: gmane.emacs.gnus.general Subject: Re: possible imap.el bug Date: 26 Oct 2004 11:06:07 -0400 Organization: =?utf-8?B?0KLQtdC+0LTQvtGAINCX0LvQsNGC0LDQvdC+0LI=?= @ Cienfuegos Sender: ding-owner@lists.math.uh.edu Message-ID: <4n3c01sen4.fsf@lifelogs.com> References: <4nwtxtf84q.fsf@lifelogs.com> <4nfz4gc99o.fsf@lifelogs.com> <4nzn2napoz.fsf@lifelogs.com> <4n7jpranuj.fsf@lifelogs.com> <4nsm8f956n.fsf@lifelogs.com> <4nsm8fcr00.fsf@bwh.harvard.edu> <4nvfd7ubzv.fsf@lifelogs.com> <4nr7nmipee.fsf@bwh.harvard.edu> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1098803226 1502 80.91.229.6 (26 Oct 2004 15:07:06 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 26 Oct 2004 15:07:06 +0000 (UTC) Cc: "Ding Mailing List" Original-X-From: ding-owner+M7527@lists.math.uh.edu Tue Oct 26 17:06:50 2004 Return-path: Original-Received: from malifon.math.uh.edu ([129.7.128.13] ident=mail) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1CMSuQ-0005Co-00 for ; Tue, 26 Oct 2004 17:06:50 +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 1CMSu3-0000cj-00; Tue, 26 Oct 2004 10:06:27 -0500 Original-Received: from util2.math.uh.edu ([129.7.128.23]) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 1CMStv-0000cd-00 for ding@lists.math.uh.edu; Tue, 26 Oct 2004 10:06:19 -0500 Original-Received: from justine.libertine.org ([66.139.78.221] ident=postfix) by util2.math.uh.edu with esmtp (Exim 4.30) id 1CMStq-0002pb-SJ for ding@lists.math.uh.edu; Tue, 26 Oct 2004 10:06:14 -0500 Original-Received: from mail.bwh.harvard.edu (sysblade0.bwh.harvard.edu [134.174.9.44]) by justine.libertine.org (Postfix) with ESMTP id 828743A003F for ; Tue, 26 Oct 2004 10:06:12 -0500 (CDT) Original-Received: (qmail 11956 invoked from network); 26 Oct 2004 14:56:05 -0000 Envelope-Sender: tzz@lifelogs.com Envelope-Recipients: jas@extundo.com, ding@gnus.org, Original-Received: from asimov.bwh.harvard.edu (HELO asimov) (internal?.9?user:?tzz@[134.174.9.63]) (envelope-sender ) by mail.bwh.harvard.edu (qmail-ldap-1.03) with SMTP for ; 26 Oct 2004 14:56:04 -0000 Mail-Followup-To: "Simon Josefsson" , "Ding Mailing List " Original-To: "Simon Josefsson" X-Face: bd.DQ~'29fIs`T_%O%C\g%6jW)yi[zuz6;d4V0`@y-~$#3P_Ng{@m+e4o<4P'#(_GJQ%TT= D}[Ep*b!\e,fBZ'j_+#"Ps?s2!4H2-Y"sx" X-Hashcash: 1:10:041026:jas@extundo.com::767e073e67443e50:3ac X-Hashcash: 1:10:041026:ding@gnus.org::792993b086f4e06d:10a In-Reply-To: (Simon Josefsson's message of "Mon, 25 Oct 2004 21:29:17 +0200") User-Agent: Gnus/5.110003 (No Gnus v0.3) Emacs/21.3.50 (gnu/linux) Precedence: bulk Xref: main.gmane.org gmane.emacs.gnus.general:58985 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:58985 On Mon, 25 Oct 2004, jas@extundo.com wrote: > It looks fine. I wonder why it hasn't been discovered before. > Perhaps it actually will solve other hard-to-debug bug reports. I still get the wrong buffer associated with a server, it just doesn't happen many times now. I suspect this line: (if (not (imap-open nnimap-address nnimap-server-port nnimap-stream nnimap-authenticator nnimap-server-buffer)) in nnimap-open-connection. Does imap-open have to take a buffer argument? I would make it always create the buffer, to be safe, and because reusing the old buffer has no obvious (to me) benefit. At some point, it's called with nnimap-server-buffer set to the wrong buffer but I don't know where. I do know it happens when many articles are moved sequentially between IMAP servers. I'll keep investigating, but if we can eliminate the buffer argument to imap-open I think that would make life much easier. Thanks Ted