Gnus development mailing list
 help / color / mirror / Atom feed
From: Michael Welsh Duggan <md5i@md5i.com>
To: ding@gnus.org
Subject: Re: slow nnimap moves due do many SELECTs
Date: Wed, 22 Sep 2010 13:09:39 -0400	[thread overview]
Message-ID: <87sk11n1rg.fsf@maru.md5i.com> (raw)
In-Reply-To: <m3k4mden3y.fsf@quimbies.gnus.org> (Lars Magne Ingebrigtsen's message of "Wed, 22 Sep 2010 18:53:21 +0200")

Lars Magne Ingebrigtsen <larsi@gnus.org> writes:

> Ted Zlatanov <tzz@lifelogs.com> writes:
>
>> Moving N articles results in:
>>
>> 09:00:37 190 SELECT "INBOX"
>> 09:00:37 191 UID FETCH 274385 BODY.PEEK[]
>> 09:00:37 192 UID COPY 274385 "INBOX.ding"
>> 09:00:37 193 UID STORE 274385 +FLAGS.SILENT (\Deleted)
>> 09:00:37 194 UID EXPUNGE 274385
>> 09:00:37 195 SELECT "INBOX.ding"
>> 09:00:37 196 UID SEARCH HEADER Message-Id "<87tylhhpie.fsf@lifelogs.com>"
>
> [...]
>
>> etc. for each article.  Can than be optimized to switch mailboxes only
>> once?
>
> Hm.  Well, the thing is that we need to select the group we moved to to
> find out what the article number we got was.  Because Gnus needs that to
> copy over the marks and other stuff.  So copying an article from group A
> to group B involves at least to SELECTs.

You may not need to copy over the marks.  The spec says: "The flags and
internal date of the message(s) SHOULD be preserved, and the Recent flag
SHOULD be set, in the copy."  If the SHOULD is bothersome, it would be
nice to have a per-server variable we can set if we know that that
server handles this correctly. 

-- 
Michael Welsh Duggan
(md5i@md5i.com)



  reply	other threads:[~2010-09-22 17:09 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-09-22 14:19 Ted Zlatanov
2010-09-22 16:53 ` Lars Magne Ingebrigtsen
2010-09-22 17:09   ` Michael Welsh Duggan [this message]
2010-09-22 17:17     ` Lars Magne Ingebrigtsen
2010-09-22 17:52       ` Michael Welsh Duggan
2010-09-22 17:57         ` Lars Magne Ingebrigtsen
2010-09-28 13:30           ` Ted Zlatanov
2010-09-29 21:46             ` Lars Magne Ingebrigtsen
2010-09-30 15:50               ` Ted Zlatanov
2010-09-30 16:35                 ` Lars Magne Ingebrigtsen
2010-09-30 16:43                   ` Lars Magne Ingebrigtsen
2010-09-30 18:11                     ` Ted Zlatanov
2010-09-30 18:16                       ` Lars Magne Ingebrigtsen
2010-09-30 16:54                   ` Ted Zlatanov
2010-09-30 17:02                     ` Lars Magne Ingebrigtsen
2010-09-30 15:22             ` Austin F. Frank
2010-09-22 17:25     ` Ted Zlatanov

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=87sk11n1rg.fsf@maru.md5i.com \
    --to=md5i@md5i.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).