summaryrefslogtreecommitdiff
path: root/lisp/mail
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>2007-08-02 17:56:38 +0000
committerRichard M. Stallman <rms@gnu.org>2007-08-02 17:56:38 +0000
commit7d7d10b874929e0e46a96c870017db26c59b44c8 (patch)
tree3fa0b885414bef85ce0a9d1038c348d7a1cc3867 /lisp/mail
parentbd18cd1928fc6405408ef9b5ab714b1a7583abb1 (diff)
downloademacs-7d7d10b874929e0e46a96c870017db26c59b44c8.tar.gz
(rmail-make-summary-line): Find end of msg number to update deleted flag.
Diffstat (limited to 'lisp/mail')
-rw-r--r--lisp/mail/rmailsum.el10
1 files changed, 6 insertions, 4 deletions
diff --git a/lisp/mail/rmailsum.el b/lisp/mail/rmailsum.el
index 85527e59f67..fd5931fdef9 100644
--- a/lisp/mail/rmailsum.el
+++ b/lisp/mail/rmailsum.el
@@ -288,12 +288,14 @@ nil for FUNCTION means all messages."
(if (zerop (% rmail-new-summary-line-count 10))
(message "Computing summary lines...%d"
rmail-new-summary-line-count))
- (rmail-make-summary-line-1 msg)))))
+ (rmail-make-summary-line-1 msg))))
+ delpos)
;; Fix up the part of the summary that says "deleted" or "unseen".
- (aset line 5
- (if (rmail-message-deleted-p msg) ?\D
+ (string-match "[0-9]+" line)
+ (aset line (match-end 0)
+ (if (rmail-message-deleted-p msg) ?D
(if (= ?0 (char-after (+ 3 (rmail-msgbeg msg))))
- ?\- ?\ )))
+ ?- ?\s)))
line))
;;;###autoload