Mercurial > hg > xemacs-beta
diff lisp/gnus/nnmbox.el @ 114:8619ce7e4c50 r20-1b9
Import from CVS: tag r20-1b9
author | cvs |
---|---|
date | Mon, 13 Aug 2007 09:21:54 +0200 |
parents | 360340f9fd5f |
children | 9f59509498e1 |
line wrap: on
line diff
--- a/lisp/gnus/nnmbox.el Mon Aug 13 09:20:50 2007 +0200 +++ b/lisp/gnus/nnmbox.el Mon Aug 13 09:21:54 2007 +0200 @@ -304,7 +304,8 @@ (forward-line -1) (while (re-search-backward "^X-Gnus-Newsgroup: " nil t) (delete-region (point) (progn (forward-line 1) (point)))) - (nnmail-cache-insert (nnmail-fetch-field "message-id")) + (when nnmail-cache-accepted-message-ids + (nnmail-cache-insert (nnmail-fetch-field "message-id"))) (setq result (nnmbox-save-mail (if (stringp group) (list (cons group (nnmbox-active-number group))) @@ -314,7 +315,8 @@ (goto-char (point-max)) (insert-buffer-substring buf) (when last - (nnmail-cache-close) + (when nnmail-cache-accepted-message-ids + (nnmail-cache-close)) (nnmail-save-active nnmbox-group-alist nnmbox-active-file) (save-buffer)))) (car result)))