]> git.eshelyaron.com Git - emacs.git/commitdiff
* nnfolder.el (nnfolder-request-expire-articles): expiry-target.
authorShengHuo ZHU <zsh@cs.rochester.edu>
Fri, 23 Aug 2002 03:32:58 +0000 (03:32 +0000)
committerShengHuo ZHU <zsh@cs.rochester.edu>
Fri, 23 Aug 2002 03:32:58 +0000 (03:32 +0000)
* nnbabyl.el (nnbabyl-request-expire-articles): Ditto.

* nnmbox.el (nnmbox-request-expire-articles): Ditto.

* nnmh.el (nnmh-request-expire-articles): Implemented
expiry-target for nnmh backend.

lisp/gnus/ChangeLog
lisp/gnus/nnbabyl.el
lisp/gnus/nnfolder.el
lisp/gnus/nnmbox.el
lisp/gnus/nnmh.el

index f24be89a85085a05743efe4fd396725e64ae5352..e6aab31e4cdbd501ff8921a6250a460c81d6a8ab 100644 (file)
@@ -1,3 +1,14 @@
+2002-08-23  ShengHuo ZHU  <zsh@cs.rochester.edu>
+
+       * nnfolder.el (nnfolder-request-expire-articles): expiry-target.
+
+       * nnbabyl.el (nnbabyl-request-expire-articles): Ditto.
+
+       * nnmbox.el (nnmbox-request-expire-articles): Ditto.
+
+       * nnmh.el (nnmh-request-expire-articles): Implemented
+       expiry-target for nnmh backend.
+
 2002-08-20  ShengHuo ZHU  <zsh@cs.rochester.edu>
 
        * gnus-art.el (gnus-button-url-regexp): Use POSIX regexp if possible.
index fa5e25aafa8d05b55c0d804d0fde57f2e9cc73cb..8389e17fb047c8a0776ea51f40add68c1f819b2c 100644 (file)
                     (buffer-substring
                      (point) (progn (end-of-line) (point))) force))
              (progn
+               (unless (eq nnmail-expiry-target 'delete)
+                 (with-temp-buffer
+                   (nnbabyl-request-article (car articles) 
+                                            newsgroup server 
+                                            (current-buffer))
+                   (let ((nnml-current-directory nil))
+                     (nnmail-expiry-target-group
+                      nnmail-expiry-target newsgroup))))
                (nnheader-message 5 "Deleting article %d in %s..."
                                  (car articles) newsgroup)
                (nnbabyl-delete-mail))
index 6a4a7f794c58ddbb8ead2d06bda13612458c94d7..369e4ccf279346ba047aa5158b8416b5279feef5 100644 (file)
@@ -34,6 +34,7 @@
 (require 'nnoo)
 (eval-when-compile (require 'cl))
 (require 'gnus-util)
+(require 'gnus-range)
 
 (nnoo-declare nnfolder)
 
@@ -349,7 +350,14 @@ If nil, `nnfolder-file-coding-system' is used.")
                       (buffer-substring
                        (point) (progn (end-of-line) (point)))
                       force nnfolder-inhibit-expiry))
-           (nnheader-message 5 "Deleting article %d..."
+           (unless (eq nnmail-expiry-target 'delete)
+             (with-temp-buffer
+               (nnfolder-request-article (car maybe-expirable) 
+                                         newsgroup server (current-buffer))
+               (let ((nnml-current-directory nil))
+                 (nnmail-expiry-target-group
+                  nnmail-expiry-target newsgroup))))
+           (nnheader-message 5 "Deleting article %d in %s..."
                              (car maybe-expirable) newsgroup)
            (nnfolder-delete-mail)
            ;; Must remember which articles were actually deleted
index 4c340b2547f5bc809621b13604f4d749d493921e..555d0a793ced0cf3f567360806940c4d51d7da8d 100644 (file)
                     (buffer-substring
                      (point) (progn (end-of-line) (point))) force))
              (progn
+               (unless (eq nnmail-expiry-target 'delete)
+                 (with-temp-buffer
+                   (nnmbox-request-article (car articles) 
+                                            newsgroup server 
+                                            (current-buffer))
+                   (let ((nnml-current-directory nil))
+                     (nnmail-expiry-target-group
+                      nnmail-expiry-target newsgroup))))
                (nnheader-message 5 "Deleting article %d in %s..."
                                  (car articles) newsgroup)
                (nnmbox-delete-mail))
index aa4a3cd04f00997dac2ca5203c17e2fd5e65c62d..27ff9f11f529de88ef20d3066f83bb50ee8d4dec 100644 (file)
@@ -265,6 +265,13 @@ as unread by Gnus.")
                 (setq is-old
                       (nnmail-expired-article-p newsgroup mod-time force)))
            (progn
+             ;; Allow a special target group. -- jcn
+             (unless (eq nnmail-expiry-target 'delete)
+               (with-temp-buffer
+                 (nnmh-request-article (car articles)
+                                       newsgroup server (current-buffer))
+                 (nnmail-expiry-target-group
+                  nnmail-expiry-target newsgroup)))
              (nnheader-message 5 "Deleting article %s in %s..."
                                article newsgroup)
              (condition-case ()