From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/85600 Path: news.gmane.org!not-for-mail From: Eric Abrahamsen Newsgroups: gmane.emacs.gnus.general Subject: Re: Performance problem of imap move Date: Wed, 28 Jan 2015 10:29:20 +0800 Message-ID: <87a913tz7j.fsf@ericabrahamsen.net> References: <87oapn5ufg.fsf@building.gnus.org> <87vbjul0ch.fsf@building.gnus.org> <87siex213n.fsf@gnu.org> <87oapkrim4.fsf@ericabrahamsen.net> <874mrcbzi7.fsf@building.gnus.org> <87ppa0q0hx.fsf@ericabrahamsen.net> <87lhkoajxx.fsf@building.gnus.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1422411791 27678 80.91.229.3 (28 Jan 2015 02:23:11 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 28 Jan 2015 02:23:11 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M33841@lists.math.uh.edu Wed Jan 28 03:23:11 2015 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 1YGIHc-0008F6-Mq for ding-account@gmane.org; Wed, 28 Jan 2015 03:23:09 +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 1YGIHa-0007Ph-LK; Tue, 27 Jan 2015 20:23:06 -0600 Original-Received: from mx2.math.uh.edu ([129.7.128.33]) by util0.math.uh.edu with esmtps (TLSv1:AES128-SHA:128) (Exim 4.63) (envelope-from ) id 1YGIHZ-0007PU-Dn for ding@lists.math.uh.edu; Tue, 27 Jan 2015 20:23:05 -0600 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx2.math.uh.edu with esmtps (TLSv1.2:DHE-RSA-AES128-SHA:128) (Exim 4.84) (envelope-from ) id 1YGIHV-0003dr-9O for ding@lists.math.uh.edu; Tue, 27 Jan 2015 20:23:05 -0600 Original-Received: from plane.gmane.org ([80.91.229.3]) by quimby.gnus.org with esmtp (Exim 4.80) (envelope-from ) id 1YGIHT-0007hW-6C for ding@gnus.org; Wed, 28 Jan 2015 03:22:59 +0100 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1YGIHR-00081y-RW for ding@gnus.org; Wed, 28 Jan 2015 03:22:58 +0100 Original-Received: from 123.123.18.151 ([123.123.18.151]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 28 Jan 2015 03:22:57 +0100 Original-Received: from eric by 123.123.18.151 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 28 Jan 2015 03:22:57 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 55 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 123.123.18.151 User-Agent: Gnus/5.130012 (Ma Gnus v0.12) Emacs/25.0.50 (gnu/linux) Cancel-Lock: sha1:qs5A43/FHXDmOz/hUOCQA+5k/Ps= X-Spam-Score: 0.3 (/) X-Spam-Report: SpamAssassin (3.4.0 2014-02-07) analysis follows Bayesian score: 0.0000 Ham tokens: 0.000-40--2502h-0s--0d--Subject, 0.000-10--570h-0s--0d--server, 0.000-9--552h-0s--0d--uid, 0.000-6--350h-0s--0d--References, 0.000-6--332h-0s--0d--bugs Spam tokens: 0.993-1723--67h-856s--0d--HTo:D*gnus.org, 0.992-1798--84h-900s--0d--H*RU:quimby.gnus.org, 0.992-1798--84h-900s--0d--Hx-spam-relays-external:quimby.gnus.org, 0.991-1791--91h-900s--0d--Hx-spam-relays-internal:80.91.231.51, 0.991-1791--91h-900s--0d--H*RT:80.91.231.51 Autolearn status: no autolearn_force=no -1.0 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [80.91.229.3 listed in list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record 1.2 RCVD_NUMERIC_HELO Received: contains an IP address used for HELO -0.0 T_RP_MATCHES_RCVD Envelope sender domain matches handover relay domain -0.0 SPF_HELO_PASS SPF: HELO matches SPF record 0.0 HEADER_FROM_DIFFERENT_DOMAINS From and EnvelopeFrom 2nd level mail domains are different -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] 2.0 FSL_HELO_BARE_IP_2 No description available. List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:85600 Archived-At: Lars Ingebrigtsen writes: > Eric Abrahamsen writes: > >> A local dovecot server, synced with gmail via isync. > > Ah. For some reason, it seems that people running local IMAP servers > triggers a lot of bugs in Gnus... > >> I've always meant to go and follow the code, but it's never been >> annoying enough for me to actually do it. But if you're messing nnimap >> at the moment anyway, maybe now's a good time. > > Please do. :-) Doing this bit by bit, first of all here are the imap commands resulting from moving article 39339 from INBOX to [Gmail].Trash, where it became article 175. Upon leaving the INBOX group, [Gmail].Trash was marked as containing 36 unread articles, when in fact it had none -- refreshing Gnus reset the unread count to the proper value. Stepping through `gnus-summary-move-article' and `nnimap-request-move-article' didn't show anything immediately out of the ordinary, but I don't really understand imap all that well. In a bit, I'll try it again and step through `nnimap-request-set-mark'. That's what's being used to update marks on [Gmail].Trash, and seems like the next most likely place to find bugs. Like I said, though, I don't know imap all that well, so someone tell me if I should be looking elsewhere. 10:03:59 [localhost] 128 NOOP 10:03:59 [localhost] 129 NOOP 10:03:59 [localhost] 130 NOOP 10:03:59 [localhost] 131 NOOP 10:03:59 [localhost] 132 NOOP 10:07:19 [localhost] 133 SELECT "INBOX" 10:07:19 [localhost] 134 UID STORE 39339 FLAGS.SILENT (\Seen) 10:07:19 [localhost] 135 UID STORE 39339 -FLAGS.SILENT (\Flagged \Answered gnus-expire gnus-dormant gnus-score gnus-save gnus-download gnus-forward) 10:11:30 [localhost] 136 SELECT "INBOX" 10:11:30 [localhost] 137 UID FETCH 39339 (UID RFC822.SIZE BODYSTRUCTURE BODY.PEEK[HEADER.FIELDS (Subject From Date Message-Id References In-Reply-To Xref To Newsgroups Cc)]) 10:12:02 [localhost] 138 UID COPY 39339 "[Gmail].Trash" 10:12:24 [localhost] 139 UID STORE 39339 +FLAGS.SILENT (\Deleted) 10:12:24 [localhost] 140 UID EXPUNGE 39339 10:18:59 [localhost] 141 NOOP 10:18:59 [localhost] 142 NOOP 10:18:59 [localhost] 143 NOOP 10:18:59 [localhost] 144 NOOP 10:18:59 [localhost] 145 NOOP 10:19:18 [localhost] 146 SELECT "[Gmail].Trash" 10:19:18 [localhost] 147 UID STORE 175 +FLAGS.SILENT (\Seen) 10:20:30 [localhost] 148 EXAMINE "[Gmail].Trash" (QRESYNC (1410345743 155)) 10:20:43 [localhost] 149 SELECT "INBOX" 10:20:43 [localhost] 150 UID SEARCH SENTBEFORE 21-JAN-2015 10:20:46 [localhost] 151 SELECT "INBOX" 10:20:46 [localhost] 152 UID STORE 39339 +FLAGS.SILENT (\Seen)