diff options
| author | Andrew Innes | 1999-05-02 09:50:47 +0000 |
|---|---|---|
| committer | Andrew Innes | 1999-05-02 09:50:47 +0000 |
| commit | 1188dd3759e18f85d1d072fdbf9f8ee642d7e70f (patch) | |
| tree | 09e5f514a2dcd88055f0cff3258bd1c163fc33e4 | |
| parent | 07a96c46096bd5478d6cfee5c341d20d76455a6c (diff) | |
| download | emacs-1188dd3759e18f85d1d072fdbf9f8ee642d7e70f.tar.gz emacs-1188dd3759e18f85d1d072fdbf9f8ee642d7e70f.zip | |
(smtpmail-deduce-address-list): Bind variables
after switching buffer, as case-fold-search is a buffer local
variable.
| -rw-r--r-- | lisp/mail/smtpmail.el | 21 |
1 files changed, 10 insertions, 11 deletions
diff --git a/lisp/mail/smtpmail.el b/lisp/mail/smtpmail.el index ab42363de2c..4778ded17bd 100644 --- a/lisp/mail/smtpmail.el +++ b/lisp/mail/smtpmail.el | |||
| @@ -610,17 +610,16 @@ This is relative to `smtpmail-queue-dir'.") | |||
| 610 | (defun smtpmail-deduce-address-list (smtpmail-text-buffer header-start header-end) | 610 | (defun smtpmail-deduce-address-list (smtpmail-text-buffer header-start header-end) |
| 611 | "Get address list suitable for smtp RCPT TO: <address>." | 611 | "Get address list suitable for smtp RCPT TO: <address>." |
| 612 | (require 'mail-utils) ;; pick up mail-strip-quoted-names | 612 | (require 'mail-utils) ;; pick up mail-strip-quoted-names |
| 613 | (let | ||
| 614 | ((case-fold-search t) | ||
| 615 | (simple-address-list "") | ||
| 616 | this-line | ||
| 617 | this-line-end | ||
| 618 | addr-regexp) | ||
| 619 | 613 | ||
| 620 | (unwind-protect | 614 | (unwind-protect |
| 621 | (save-excursion | 615 | (save-excursion |
| 622 | ;; | 616 | (set-buffer smtpmail-address-buffer) (erase-buffer) |
| 623 | (set-buffer smtpmail-address-buffer) (erase-buffer) | 617 | (let |
| 618 | ((case-fold-search t) | ||
| 619 | (simple-address-list "") | ||
| 620 | this-line | ||
| 621 | this-line-end | ||
| 622 | addr-regexp) | ||
| 624 | (insert-buffer-substring smtpmail-text-buffer header-start header-end) | 623 | (insert-buffer-substring smtpmail-text-buffer header-start header-end) |
| 625 | (goto-char (point-min)) | 624 | (goto-char (point-min)) |
| 626 | ;; RESENT-* fields should stop processing of regular fields. | 625 | ;; RESENT-* fields should stop processing of regular fields. |
| @@ -663,7 +662,7 @@ This is relative to `smtpmail-queue-dir'.") | |||
| 663 | (setq smtpmail-recipient-address-list recipient-address-list)) | 662 | (setq smtpmail-recipient-address-list recipient-address-list)) |
| 664 | 663 | ||
| 665 | ) | 664 | ) |
| 666 | ) | 665 | ) |
| 667 | ) | 666 | ) |
| 668 | ) | 667 | ) |
| 669 | 668 | ||