nnmh.el (nnmh-request-expire-articles): Work for the case nnmail-expiry-target is...
authorBen Bacarisse <ben.lists@bsb.me.uk>
Mon, 23 Mar 2015 22:21:54 +0000 (22:21 +0000)
committerKatsumi Yamaoka <yamaoka@jpl.org>
Mon, 23 Mar 2015 22:21:54 +0000 (22:21 +0000)
lisp/ChangeLog
lisp/nnmh.el

index 02e65c1..b975dc7 100644 (file)
@@ -1,3 +1,8 @@
+2015-03-23  Ben Bacarisse  <ben.lists@bsb.me.uk>  (tiny change)
+
+       * nnmh.el (nnmh-request-expire-articles):
+       Work for the case nnmail-expiry-target is an nnmh group (bug#20170).
+
 2015-03-21  Eric Abrahamsen  <eric@ericabrahamsen.net>
 
        * registry.el (registry-lookup-secondary, registry-full)
index 9be0c14..04270a5 100644 (file)
@@ -259,12 +259,12 @@ as unread by Gnus.")
                                               &optional server force)
   (nnmh-possibly-change-directory newsgroup server)
   (let ((is-old t)
+       (dir nnmh-current-directory)
        article rest mod-time)
     (nnheader-init-server-buffer)
 
     (while (and articles is-old)
-      (setq article (concat nnmh-current-directory
-                           (int-to-string (car articles))))
+      (setq article (concat dir (int-to-string (car articles))))
       (when (setq mod-time (nth 5 (file-attributes article)))
        (if (and (nnmh-deletable-article-p newsgroup (car articles))
                 (setq is-old