diff options
| author | Chong Yidong | 2008-12-02 14:03:27 +0000 |
|---|---|---|
| committer | Chong Yidong | 2008-12-02 14:03:27 +0000 |
| commit | 85ab550bbbbda5e16809b00d533d45b2facca2a9 (patch) | |
| tree | ae1e89d073d09c72d2a9ff70b6da1dfa2a00e176 | |
| parent | 404271997ebab0ee28848b6349f52b60ba935df2 (diff) | |
| download | emacs-85ab550bbbbda5e16809b00d533d45b2facca2a9.tar.gz emacs-85ab550bbbbda5e16809b00d533d45b2facca2a9.zip | |
(pmail-get-summary-labels): If no attribute headers are found, use the
empty string.
| -rw-r--r-- | lisp/mail/pmailsum.el | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lisp/mail/pmailsum.el b/lisp/mail/pmailsum.el index 0fed20e2e5c..ce72701390e 100644 --- a/lisp/mail/pmailsum.el +++ b/lisp/mail/pmailsum.el | |||
| @@ -362,7 +362,10 @@ the message being processed." | |||
| 362 | char) | 362 | char) |
| 363 | ;; Strip off the read/unread and the deleted attribute which are | 363 | ;; Strip off the read/unread and the deleted attribute which are |
| 364 | ;; handled separately. | 364 | ;; handled separately. |
| 365 | (setq status (concat (substring status 0 1) (substring status 2 6))) | 365 | (setq status |
| 366 | (if status | ||
| 367 | (concat (substring status 0 1) (substring status 2 6)) | ||
| 368 | "")) | ||
| 366 | (while (< index (length status)) | 369 | (while (< index (length status)) |
| 367 | (unless (string= "-" (setq char (substring status index (1+ index)))) | 370 | (unless (string= "-" (setq char (substring status index (1+ index)))) |
| 368 | (setq result (concat result char))) | 371 | (setq result (concat result char))) |