From: Andrew Cohen Date: Wed, 3 Nov 2010 01:06:33 +0000 (+0000) Subject: nnir.el (nnir-request-move-article): call the underlying backend to move articles... X-Git-Tag: emacs-pretest-24.0.90~104^2~275^2~438^2~45^2~406 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=6ec9acb3b41c7e6358c3b733828339930d0be9f0;p=emacs.git nnir.el (nnir-request-move-article): call the underlying backend to move articles from nnir. --- diff --git a/lisp/gnus/ChangeLog b/lisp/gnus/ChangeLog index 59c956abd45..0f64afdc323 100644 --- a/lisp/gnus/ChangeLog +++ b/lisp/gnus/ChangeLog @@ -1,3 +1,8 @@ +2010-11-03 Andrew Cohen + + * nnir.el (nnir-request-move-article): call the underlying backend to + move articles from nnir. + 2010-11-02 Lars Magne Ingebrigtsen * gnus-cite.el (gnus-article-natural-long-line-p): Removed. diff --git a/lisp/gnus/nnir.el b/lisp/gnus/nnir.el index d076af9cf49..0788ccbe7ca 100644 --- a/lisp/gnus/nnir.el +++ b/lisp/gnus/nnir.el @@ -636,6 +636,26 @@ and show thread that contains this article." (gnus-request-article artno artfullgroup nntp-server-buffer) (cons artfullgroup artno))))) +(deffoo nnir-request-move-article (article group server accept-form + &optional last internal-move-group) + (let* ((artitem (nnir-artlist-article nnir-artlist + article)) + (artfullgroup (nnir-artitem-group artitem)) + (artno (nnir-artitem-number artitem)) + (to-newsgroup (nth 1 accept-form)) + (to-method (gnus-find-method-for-group to-newsgroup)) + (from-method (gnus-find-method-for-group artfullgroup)) + (move-is-internal (gnus-server-equal from-method to-method))) + (gnus-request-move-article + artno + artfullgroup + (nth 1 from-method) + accept-form + last + (and move-is-internal + to-newsgroup ; Not respooling + (gnus-group-real-name to-newsgroup))) ; Is this move internal + )) (nnoo-define-skeleton nnir)