diff options
| author | Chong Yidong | 2006-06-15 18:34:26 +0000 |
|---|---|---|
| committer | Chong Yidong | 2006-06-15 18:34:26 +0000 |
| commit | c43d75391af8665435c3db30eb61ca4630bd6a06 (patch) | |
| tree | 08a5dd8b53ad50f69ce8f6bc6f839a3ab708dd07 | |
| parent | 3e0b9c08a04ca1df81854f0f40fe43b79aab8720 (diff) | |
| download | emacs-c43d75391af8665435c3db30eb61ca4630bd6a06.tar.gz emacs-c43d75391af8665435c3db30eb61ca4630bd6a06.zip | |
* mail/sendmail.el (mail-send): Search explicitly for
mail-header-separator when checking for corrupted header lines.
| -rw-r--r-- | lisp/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/mail/sendmail.el | 13 |
2 files changed, 13 insertions, 5 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index f58d5a00f1e..0f297921fb7 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2006-06-15 Chong Yidong <cyd@stupidchicken.com> | ||
| 2 | |||
| 3 | * mail/sendmail.el (mail-send): Search explicitly for | ||
| 4 | mail-header-separator when checking for corrupted header lines. | ||
| 5 | |||
| 1 | 2006-06-15 Nick Roberts <nickrob@snap.net.nz> | 6 | 2006-06-15 Nick Roberts <nickrob@snap.net.nz> |
| 2 | 7 | ||
| 3 | * progmodes/gdb-ui.el (gdb-same-frame): New option. | 8 | * progmodes/gdb-ui.el (gdb-same-frame): New option. |
diff --git a/lisp/mail/sendmail.el b/lisp/mail/sendmail.el index ee512b3af31..28463208c45 100644 --- a/lisp/mail/sendmail.el +++ b/lisp/mail/sendmail.el | |||
| @@ -863,11 +863,14 @@ the user from the mailer." | |||
| 863 | (error "Message contains non-ASCII characters")))) | 863 | (error "Message contains non-ASCII characters")))) |
| 864 | ;; Complain about any invalid line. | 864 | ;; Complain about any invalid line. |
| 865 | (goto-char (point-min)) | 865 | (goto-char (point-min)) |
| 866 | (while (< (point) (mail-header-end)) | 866 | (re-search-forward (regexp-quote mail-header-separator) (point-max) t) |
| 867 | (unless (looking-at "[ \t]\\|.*:\\|$") | 867 | (let ((header-end (or (match-beginning 0) (point-max)))) |
| 868 | (push-mark opoint) | 868 | (goto-char (point-min)) |
| 869 | (error "Invalid header line (maybe a continuation line lacks initial whitespace)")) | 869 | (while (< (point) header-end) |
| 870 | (forward-line 1)) | 870 | (unless (looking-at "[ \t]\\|.*:\\|$") |
| 871 | (push-mark opoint) | ||
| 872 | (error "Invalid header line (maybe a continuation line lacks initial whitespace)")) | ||
| 873 | (forward-line 1))) | ||
| 871 | (goto-char opoint) | 874 | (goto-char opoint) |
| 872 | (run-hooks 'mail-send-hook) | 875 | (run-hooks 'mail-send-hook) |
| 873 | (message "Sending...") | 876 | (message "Sending...") |