Gnus development mailing list
 help / color / mirror / Atom feed
From: Dan Christensen <jdc@uwo.ca>
To: ding@gnus.org
Subject: Re: updating backend marks immediately
Date: Wed, 24 Nov 2010 16:39:18 -0500	[thread overview]
Message-ID: <87fwuq4d15.fsf@uwo.ca> (raw)
In-Reply-To: <m3wro686y4.fsf@quimbies.gnus.org>

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

>>> Yes.  I've now made it clear the marks before moving.
>
> It occurs to me that I should probably have do it the other way around.
> That is, set the marks on the article before moving it, and then not
> bother to copy over the marks afterwards.  The result should be much the
> same, but slightly more secure if something fails in the middle.

I think what you propose might be better.  What I see now is that
when I move a message from my INBOX to another folder (a common
operation), my mail-notification daemon pops up a notification saying
that there's a new message in my INBOX.  That's because Gnus briefly
removes the marks.  Instead, Gnus should just upload any pending changes
to the marks (and only if there are any changes to save), and then move
the article.

This should also be faster, since now there are several round-trips, 
even if the marks don't need to be updated:  1) clear the marks,
2) do the move, 3) fix the marks in the target group (and some other
actions that I'm omitting, like looking up the article number).
In many cases, 1 and 3 can be skipped, and when the marks do need
to be adjusted, it should still be doable in two steps, not three.

Dan




  reply	other threads:[~2010-11-24 21:39 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-11-04 20:32 Dan Christensen
2010-11-04 20:37 ` Lars Magne Ingebrigtsen
2010-11-09 22:01 ` Ted Zlatanov
2010-11-10  1:13   ` Dan Christensen
2010-11-10 13:16     ` Ted Zlatanov
2010-11-10 21:00       ` Lars Magne Ingebrigtsen
2010-11-12 23:54       ` Dan Christensen
2010-11-14 15:58         ` Lars Magne Ingebrigtsen
2010-11-14 21:47           ` Dan Christensen
2010-11-21  5:31             ` Lars Magne Ingebrigtsen
2010-11-21  5:38               ` Lars Magne Ingebrigtsen
2010-11-22  1:45                 ` Dan Christensen
2010-11-22  1:48                   ` Lars Magne Ingebrigtsen
2010-11-24 21:39                     ` Dan Christensen [this message]
2010-11-24 21:46                       ` Lars Magne Ingebrigtsen
2010-11-24 22:04                         ` Lars Magne Ingebrigtsen
2010-11-25 12:00                           ` Steinar Bang
2010-11-25 14:28                             ` Lars Magne Ingebrigtsen
2010-11-25 14:40                               ` Steinar Bang
2010-11-25 15:28                           ` Dan Christensen
2010-12-05 14:39                             ` Lars Magne Ingebrigtsen
2010-12-05 15:22                               ` Dan Christensen

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=87fwuq4d15.fsf@uwo.ca \
    --to=jdc@uwo.ca \
    --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).