Gnus development mailing list
 help / color / mirror / Atom feed
* gnus-summary-move-article between different nnimap backends removes arbitrary articles
@ 2012-02-19 11:48 Herbert Valerio Riedel
  2012-02-20  7:28 ` Lars Ingebrigtsen
  0 siblings, 1 reply; 2+ messages in thread
From: Herbert Valerio Riedel @ 2012-02-19 11:48 UTC (permalink / raw)
  To: ding

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
-- 



^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: gnus-summary-move-article between different nnimap backends removes arbitrary articles
  2012-02-19 11:48 gnus-summary-move-article between different nnimap backends removes arbitrary articles Herbert Valerio Riedel
@ 2012-02-20  7:28 ` Lars Ingebrigtsen
  0 siblings, 0 replies; 2+ messages in thread
From: Lars Ingebrigtsen @ 2012-02-20  7:28 UTC (permalink / raw)
  To: Herbert Valerio Riedel; +Cc: ding

Herbert Valerio Riedel <hvr@gnu.org> writes:

> I modified `nnimap-log-command` to print the `nnimap-address`,

That's a good idea.  I've now added it to No Gnus.

> 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:

Oops.

I've now fixed this, I think.  The log I get when moving from hermes to
gmail now is:

08:25:05 [hermes.netfonds.no] 382 UID FETCH 9671 BODY.PEEK[].
08:25:11 [hermes.netfonds.no] 383 UID STORE 9671 FLAGS.SILENT (\Seen).
08:25:11 [hermes.netfonds.no] 384 UID FETCH 9671 BODY.PEEK[].
08:25:11 [imap.gmail.com] 385 APPEND "Travel" {12314}.
08:25:12 [hermes.netfonds.no] 386 UID STORE 9671 +FLAGS.SILENT (\Deleted).
08:25:12 [hermes.netfonds.no] 387 UID EXPUNGE 9671.
08:25:12 [imap.gmail.com] 388 UID STORE 10 +FLAGS.SILENT (\Seen).
08:25:13 [imap.gmail.com] 389 SELECT "Travel".
08:25:13 [imap.gmail.com] 390 UID FETCH 1:* FLAGS.

-- 
(domestic pets only, the antidote for overdose, milk.)
  http://lars.ingebrigtsen.no  *  Sent from my Rome



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-02-20  7:28 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-02-19 11:48 gnus-summary-move-article between different nnimap backends removes arbitrary articles Herbert Valerio Riedel
2012-02-20  7:28 ` Lars Ingebrigtsen

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).