* lisp/nnimap.el (nnimap-split-incoming-mail): If a message is already
in the group it should be split to, don't re-copy it into the group.
(gnus-registry-remove-extra-data): Use slot names rather than initarg
names in `oref' and `oset'.
+2015-02-27 Eric Abrahamsen <eric@ericabrahamsen.net>
+ * lisp/nnimap.el (nnimap-split-incoming-mail): If a message is already
+ in the group it should be split to, don't re-copy it into the group.
+
2015-02-25 Adam Sjøgren <asjo@koldfront.dk>
* message.el (message-insert-formatted-citation-line): Change %F to
(ranges (cdr spec)))
(if (eq group 'junk)
(setq junk-articles ranges)
- (push (list (nnimap-send-command
- "UID COPY %s %S"
- (nnimap-article-ranges ranges)
- (utf7-encode group t))
- ranges)
- sequences))))
+ ;; Don't copy if the message is already in its
+ ;; target group.
+ (unless (string= group nnimap-inbox)
+ (push (list (nnimap-send-command
+ "UID COPY %s %S"
+ (nnimap-article-ranges ranges)
+ (utf7-encode group t))
+ ranges)
+ sequences)))))
;; Wait for the last COPY response...
(when sequences
(nnimap-wait-for-response (caar sequences))