diff options
| author | Richard M. Stallman | 1996-06-18 22:35:10 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1996-06-18 22:35:10 +0000 |
| commit | e2f7c2217eaecff5ecaf44b77b75b1ae5a2069a0 (patch) | |
| tree | d80c7b70245e441a994c21b9b0d8219d7315fbdd | |
| parent | 40c3d4ae9c03aadf1030255a83d58cd9b219f929 (diff) | |
| download | emacs-e2f7c2217eaecff5ecaf44b77b75b1ae5a2069a0.tar.gz emacs-e2f7c2217eaecff5ecaf44b77b75b1ae5a2069a0.zip | |
(smtpmail-smtp-service): Use port 25 as default.
(smtpmail-send-it): Require mail-utils upon entry.
Don't invoke sendmail-synch-aliases.
(smtpmail-deduce-address-list): Only use text matched in regexp group,
not the whole regexp.
| -rw-r--r-- | lisp/mail/smtpmail.el | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/lisp/mail/smtpmail.el b/lisp/mail/smtpmail.el index 660dfa1b1f7..dcea31faa09 100644 --- a/lisp/mail/smtpmail.el +++ b/lisp/mail/smtpmail.el | |||
| @@ -1,6 +1,6 @@ | |||
| 1 | ;; Simple SMTP protocol (RFC 821) for sending mail | 1 | ;; Simple SMTP protocol (RFC 821) for sending mail |
| 2 | 2 | ||
| 3 | ;; Copyright (C) 1995 Free Software Foundation, Inc. | 3 | ;; Copyright (C) 1995, 1996 Free Software Foundation, Inc. |
| 4 | 4 | ||
| 5 | ;; Author: Tomoji Kagatani <kagatani@rbc.ncl.omron.co.jp> | 5 | ;; Author: Tomoji Kagatani <kagatani@rbc.ncl.omron.co.jp> |
| 6 | ;; Keywords: mail | 6 | ;; Keywords: mail |
| @@ -45,11 +45,11 @@ | |||
| 45 | (defvar smtpmail-default-smtp-server nil | 45 | (defvar smtpmail-default-smtp-server nil |
| 46 | "*Specify default SMTP server.") | 46 | "*Specify default SMTP server.") |
| 47 | 47 | ||
| 48 | (defvar smtpmail-smtp-server (or (getenv "SMTPSERVER") | 48 | (defvar smtpmail-smtp-server |
| 49 | smtpmail-default-smtp-server) | 49 | (or (getenv "SMTPSERVER") smtpmail-default-smtp-server) |
| 50 | "*The name of the host running SMTP server.") | 50 | "*The name of the host running SMTP server.") |
| 51 | 51 | ||
| 52 | (defvar smtpmail-smtp-service "smtp" | 52 | (defvar smtpmail-smtp-service 25 |
| 53 | "*SMTP service port number. smtp or 25 .") | 53 | "*SMTP service port number. smtp or 25 .") |
| 54 | 54 | ||
| 55 | (defvar smtpmail-local-domain nil | 55 | (defvar smtpmail-local-domain nil |
| @@ -68,6 +68,7 @@ don't define this value.") | |||
| 68 | ;;; | 68 | ;;; |
| 69 | 69 | ||
| 70 | (defun smtpmail-send-it () | 70 | (defun smtpmail-send-it () |
| 71 | (require 'mail-utils) | ||
| 71 | (let ((errbuf (if mail-interactive | 72 | (let ((errbuf (if mail-interactive |
| 72 | (generate-new-buffer " smtpmail errors") | 73 | (generate-new-buffer " smtpmail errors") |
| 73 | 0)) | 74 | 0)) |
| @@ -92,6 +93,7 @@ don't define this value.") | |||
| 92 | (replace-match "\n") | 93 | (replace-match "\n") |
| 93 | (backward-char 1) | 94 | (backward-char 1) |
| 94 | (setq delimline (point-marker)) | 95 | (setq delimline (point-marker)) |
| 96 | ;; (sendmail-synch-aliases) | ||
| 95 | (if mail-aliases | 97 | (if mail-aliases |
| 96 | (expand-mail-aliases (point-min) delimline)) | 98 | (expand-mail-aliases (point-min) delimline)) |
| 97 | (goto-char (point-min)) | 99 | (goto-char (point-min)) |
| @@ -436,10 +438,10 @@ don't define this value.") | |||
| 436 | 438 | ||
| 437 | (goto-char (point-min)) | 439 | (goto-char (point-min)) |
| 438 | (let (recipient-address-list) | 440 | (let (recipient-address-list) |
| 439 | (while (re-search-forward " [^ ]+ " (point-max) t) | 441 | (while (re-search-forward " \\([^ ]+\\) " (point-max) t) |
| 440 | (backward-char 1) | 442 | (backward-char 1) |
| 441 | (setq recipient-address-list(cons (buffer-substring (match-beginning 0) (match-end 0)) | 443 | (setq recipient-address-list (cons (buffer-substring (match-beginning 1) (match-end 1)) |
| 442 | recipient-address-list)) | 444 | recipient-address-list)) |
| 443 | ) | 445 | ) |
| 444 | (setq smtpmail-recipient-address-list recipient-address-list)) | 446 | (setq smtpmail-recipient-address-list recipient-address-list)) |
| 445 | 447 | ||