[gnus git] branch master updated: m0-5-286-gabc2726 =1= nndraft.el (nndraft-request-expire-articles): Make expiry target always `delete'

Katsumi Yamaoka <[email protected]>
Newsgroups gmane.emacs.gnus.cvs
Message-ID <[email protected]>
       via  abc27269e73081391b76b6bb88363875f0e26ce2 (commit)
      from  9943b99771ef09cdf99d671d6ade6b358452bd00 (commit)


- Log -----------------------------------------------------------------
commit abc27269e73081391b76b6bb88363875f0e26ce2
Author: Katsumi Yamaoka <[email protected]>
Date:   Thu Mar 28 01:36:06 2013 +0000

    nndraft.el (nndraft-request-expire-articles): Make expiry target always `delete'

diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 89e5de9..55dc9aa 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,8 @@
+2013-03-28  Katsumi Yamaoka  <[email protected]>
+
+	* nndraft.el (nndraft-request-expire-articles):
+	Make expiry target always `delete'.
+
 2013-03-27  Andrew Cohen  <[email protected]>
 
 	* gnus-msg.el (gnus-setup-message): When replying from an nnir summary
diff --git a/lisp/nndraft.el b/lisp/nndraft.el
index b19b56a..c9625f4 100644
--- a/lisp/nndraft.el
+++ b/lisp/nndraft.el
@@ -255,11 +255,16 @@ are generated if and only if they are also in `message-draft-headers'.")
 (deffoo nndraft-request-expire-articles (articles group &optional server force)
   (nndraft-possibly-change-group group)
   (let* ((nnmh-allow-delete-final t)
-	 (nnmail-expiry-target
-	  (or (gnus-group-find-parameter
-	       (gnus-group-prefixed-name group (list 'nndraft server))
-	       'expiry-target t)
-	      nnmail-expiry-target))
+	 (nnmail-expiry-target 'delete)
+	 ;; FIXME: If we want to move a draft message to an expiry group,
+	 ;; there are things to have to improve:
+	 ;; - Remove a header separator.
+	 ;; - Encode it, including attachments, into a MIME message.
+	 ;;(nnmail-expiry-target
+	 ;; (or (gnus-group-find-parameter
+	 ;;      (gnus-group-prefixed-name group (list 'nndraft server))
+	 ;;      'expiry-target t)
+	 ;;     nnmail-expiry-target))
 	 (res (nnoo-parent-function 'nndraft
 				    'nnmh-request-expire-articles
 				    (list articles group server force)))

-----------------------------------------------------------------------
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we listed those
revisions in full, above.

Summary of changes:
 lisp/ChangeLog  |    5 +++++
 lisp/nndraft.el |   15 ++++++++++-----
 2 files changed, 15 insertions(+), 5 deletions(-)

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Gnus Project".

The branch, master has been updated


hooks/post-receive
-- 
Gnus Project
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.