Gnus development mailing list
 help / color / mirror / Atom feed
From: Herbert Valerio Riedel <hvr@gnu.org>
To: ding@gnus.org
Subject: gnus-summary-move-article between different nnimap backends removes arbitrary articles
Date: Sun, 19 Feb 2012 12:48:03 +0100	[thread overview]
Message-ID: <87pqdb6o3w.fsf@gnu.org> (raw)

Hi,

As a follow-up to the report I posted to gnu.emacs.gnus[1], I could now
confirm that when using gnus-summary-move-article for moving articles
between different imap servers the expunge command was being sent to the
article-move-destination server, which is rather unfortunate...

I modified `nnimap-log-command` to print the `nnimap-address`, and the
following shows the operation of moving an article (UID=22639) from
origin.server.org's INBOX to destination.server.org's INBOX.test (edited
names), in the following log one can clearly see that the `EXPUNGE`
command is sent to the wrong server:

| 12:05:34 [origin.server.org] 869 SELECT "INBOX"
| 12:05:34 [origin.server.org] 870 UID FETCH 22549:22558,22560:22577,22579,22581:22600,22602:22606,22608:22617,22619:22623,22625:22654 (UID RFC822.SIZE BODYSTRUCTURE BODY.PEEK[HEADER.FIELDS (Subject From Date Message-Id References In-Reply-To Xref To Newsgroups Cc)])
| 12:07:13 [origin.server.org] 871 UID STORE 22639 FLAGS.SILENT (\Seen)
| 12:07:14 [origin.server.org] 872 UID FETCH 22639 BODY.PEEK[]
| 12:07:14 [destination.server.org] 873 APPEND "INBOX.test" {3424}
| 12:07:14 [destination.server.org] 874 UID STORE 22639 +FLAGS.SILENT (\Deleted)
| 12:07:14 [destination.server.org] 875 UID EXPUNGE 22639
| 12:07:14 [destination.server.org] 876 SELECT "INBOX.test"
| 12:07:14 [destination.server.org] 877 UID STORE 473 +FLAGS.SILENT (\Seen)
| 12:07:14 [destination.server.org] 878 SELECT "INBOX.test"
| 12:07:14 [destination.server.org] 879 UID FETCH 1:* FLAGS

Alas, I'm not proficient enough with the Gnus code-base to fix this bug
myself... so I was hoping for someone to either fix this bug or give me
directions on how to go about fixing the bug...


 [1]: news://quimby.gnus.org/gnu.emacs.gnus/55684 aka
      news://quimby.gnus.org/8762f7lryx.fsf@gnu.org aka
      http://groups.google.com/group/gnu.emacs.gnus/browse_thread/thread/d6f056c3a591560b

hvr
-- 



             reply	other threads:[~2012-02-19 11:48 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-02-19 11:48 Herbert Valerio Riedel [this message]
2012-02-20  7:28 ` Lars Ingebrigtsen

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=87pqdb6o3w.fsf@gnu.org \
    --to=hvr@gnu.org \
    --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).