diff options
| author | Eli Zaretskii | 2007-11-16 16:05:53 +0000 |
|---|---|---|
| committer | Eli Zaretskii | 2007-11-16 16:05:53 +0000 |
| commit | cca246708aab7e48c28ceb31d54f3da0317b91dc (patch) | |
| tree | 0e76d541ff56d775ec9704f5f059fc530e423a0c | |
| parent | a4f4cc7ef35dd0249ace8a87557570317cad933c (diff) | |
| download | emacs-cca246708aab7e48c28ceb31d54f3da0317b91dc.tar.gz emacs-cca246708aab7e48c28ceb31d54f3da0317b91dc.zip | |
(rmail-current-subject-regexp): Allow more than one space after "Subject:".
| -rw-r--r-- | lisp/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/mail/rmail.el | 4 |
2 files changed, 8 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 1793d7963e9..fca25ad829b 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2007-11-16 Eli Zaretskii <eliz@gnu.org> | ||
| 2 | |||
| 3 | * mail/rmail.el (rmail-current-subject-regexp): Allow more than | ||
| 4 | one space after "Subject:". | ||
| 5 | |||
| 1 | 2007-11-16 Juanma Barranquero <lekktu@gmail.com> | 6 | 2007-11-16 Juanma Barranquero <lekktu@gmail.com> |
| 2 | 7 | ||
| 3 | * subr.el (make-variable-frame-local): | 8 | * subr.el (make-variable-frame-local): |
diff --git a/lisp/mail/rmail.el b/lisp/mail/rmail.el index 30731c2bea9..0dd65f5191a 100644 --- a/lisp/mail/rmail.el +++ b/lisp/mail/rmail.el | |||
| @@ -3281,7 +3281,9 @@ and more whitespace. The returned regular expressions contains | |||
| 3281 | (setq subject (regexp-quote subject)) | 3281 | (setq subject (regexp-quote subject)) |
| 3282 | (setq subject | 3282 | (setq subject |
| 3283 | (replace-regexp-in-string "[ \t\n]+" "[ \t\n]+" subject t t)) | 3283 | (replace-regexp-in-string "[ \t\n]+" "[ \t\n]+" subject t t)) |
| 3284 | (concat "^Subject: " | 3284 | ;; Some mailers insert extra spaces after "Subject:", so allow any |
| 3285 | ;; amount of them. | ||
| 3286 | (concat "^Subject:[ \t]+" | ||
| 3285 | (if (string= "\\`" (substring rmail-reply-regexp 0 2)) | 3287 | (if (string= "\\`" (substring rmail-reply-regexp 0 2)) |
| 3286 | (substring rmail-reply-regexp 2) | 3288 | (substring rmail-reply-regexp 2) |
| 3287 | rmail-reply-regexp) | 3289 | rmail-reply-regexp) |