diff options
| -rw-r--r-- | lisp/mail/rmailsum.el | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/lisp/mail/rmailsum.el b/lisp/mail/rmailsum.el index 34ee023c9c7..a3f9b4e2e81 100644 --- a/lisp/mail/rmailsum.el +++ b/lisp/mail/rmailsum.el | |||
| @@ -308,10 +308,17 @@ nil for FUNCTION means all messages." | |||
| 308 | (let* ((from (mail-strip-quoted-names | 308 | (let* ((from (mail-strip-quoted-names |
| 309 | (buffer-substring | 309 | (buffer-substring |
| 310 | (1- (point)) | 310 | (1- (point)) |
| 311 | (progn (end-of-line) | 311 | ;; Get all the lines of the From field |
| 312 | (skip-chars-backward " \t") | 312 | ;; so that we get a whole comment if there is one, |
| 313 | (point))))) | 313 | ;; so that mail-strip-quoted-names can discard it. |
| 314 | len mch lo) | 314 | (let ((opoint (point))) |
| 315 | (while (progn (forward-line 1) | ||
| 316 | (looking-at "[ \t]"))) | ||
| 317 | ;; Back up over newline, then trailing spaces or tabs | ||
| 318 | (forward-char -1) | ||
| 319 | (skip-chars-backward " \t") | ||
| 320 | (point))))) | ||
| 321 | len mch lo) | ||
| 315 | (if (string-match (concat "^" | 322 | (if (string-match (concat "^" |
| 316 | (regexp-quote (user-login-name)) | 323 | (regexp-quote (user-login-name)) |
| 317 | "\\($\\|@\\)") | 324 | "\\($\\|@\\)") |