* mail/sendmail.el (mail-send): Search explicitly for
mail-header-separator when checking for corrupted header lines.
This commit is contained in:
parent
3e0b9c08a0
commit
c43d75391a
2 changed files with 13 additions and 5 deletions
|
|
@ -1,3 +1,8 @@
|
|||
2006-06-15 Chong Yidong <cyd@stupidchicken.com>
|
||||
|
||||
* mail/sendmail.el (mail-send): Search explicitly for
|
||||
mail-header-separator when checking for corrupted header lines.
|
||||
|
||||
2006-06-15 Nick Roberts <nickrob@snap.net.nz>
|
||||
|
||||
* progmodes/gdb-ui.el (gdb-same-frame): New option.
|
||||
|
|
|
|||
|
|
@ -863,11 +863,14 @@ the user from the mailer."
|
|||
(error "Message contains non-ASCII characters"))))
|
||||
;; Complain about any invalid line.
|
||||
(goto-char (point-min))
|
||||
(while (< (point) (mail-header-end))
|
||||
(unless (looking-at "[ \t]\\|.*:\\|$")
|
||||
(push-mark opoint)
|
||||
(error "Invalid header line (maybe a continuation line lacks initial whitespace)"))
|
||||
(forward-line 1))
|
||||
(re-search-forward (regexp-quote mail-header-separator) (point-max) t)
|
||||
(let ((header-end (or (match-beginning 0) (point-max))))
|
||||
(goto-char (point-min))
|
||||
(while (< (point) header-end)
|
||||
(unless (looking-at "[ \t]\\|.*:\\|$")
|
||||
(push-mark opoint)
|
||||
(error "Invalid header line (maybe a continuation line lacks initial whitespace)"))
|
||||
(forward-line 1)))
|
||||
(goto-char opoint)
|
||||
(run-hooks 'mail-send-hook)
|
||||
(message "Sending...")
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue