2000-04-26 Kenichi Handa <handa@etl.go.jp>
- * mail/rmail.el (rmail-expunge): When there's no deleted messages,
- do nothing.
+ * mail/rmail.el (rmail-expunge): When there are no deleted
+ messages, do nothing.
2000-04-26 Dave Love <fx@gnu.org>
(defun rmail-expunge ()
"Erase deleted messages from Rmail file and summary buffer."
(interactive)
- (when (or (null rmail-confirm-expunge)
- (funcall rmail-confirm-expunge
- "Erase deleted messages from Rmail file? "))
+ (when (and (stringp rmail-deleted-vector)
+ (string-match "D" rmail-deleted-vector)
+ (or (null rmail-confirm-expunge)
+ (funcall rmail-confirm-expunge
+ "Erase deleted messages from Rmail file? ")))
(rmail-only-expunge)
(if (rmail-summary-exists)
(rmail-select-summary