diff options
| author | Simon Josefsson | 2002-09-12 06:03:03 +0000 |
|---|---|---|
| committer | Simon Josefsson | 2002-09-12 06:03:03 +0000 |
| commit | bf6e31bc66f2f0e1ef1bcabc496a214d863b0b24 (patch) | |
| tree | 90d47886f2116bc16e58fd2cfc02faef17fca0a5 | |
| parent | 09facbd27acca6b17dc1af3016178665cbbfcbca (diff) | |
| download | emacs-bf6e31bc66f2f0e1ef1bcabc496a214d863b0b24.tar.gz emacs-bf6e31bc66f2f0e1ef1bcabc496a214d863b0b24.zip | |
(smtpmail-send-it): Don't use : in filenames
(for cygwin). Suggested by Andrew Senior <aws@watson.ibm.com>.
Use expand-file-name. Also don't require time-stamp.
| -rw-r--r-- | lisp/mail/smtpmail.el | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/lisp/mail/smtpmail.el b/lisp/mail/smtpmail.el index 9984a873ffa..78393348c5d 100644 --- a/lisp/mail/smtpmail.el +++ b/lisp/mail/smtpmail.el | |||
| @@ -66,7 +66,6 @@ | |||
| 66 | ;;; Code: | 66 | ;;; Code: |
| 67 | 67 | ||
| 68 | (require 'sendmail) | 68 | (require 'sendmail) |
| 69 | (require 'time-stamp) | ||
| 70 | (autoload 'starttls-open-stream "starttls") | 69 | (autoload 'starttls-open-stream "starttls") |
| 71 | (autoload 'starttls-negotiate "starttls") | 70 | (autoload 'starttls-negotiate "starttls") |
| 72 | (autoload 'mail-strip-quoted-names "mail-utils") | 71 | (autoload 'mail-strip-quoted-names "mail-utils") |
| @@ -343,14 +342,15 @@ This is relative to `smtpmail-queue-dir'.") | |||
| 343 | smtpmail-recipient-address-list tembuf)) | 342 | smtpmail-recipient-address-list tembuf)) |
| 344 | (error "Sending failed; SMTP protocol error")) | 343 | (error "Sending failed; SMTP protocol error")) |
| 345 | (error "Sending failed; no recipients")) | 344 | (error "Sending failed; no recipients")) |
| 346 | (let* ((file-data (concat | 345 | (let* ((file-data |
| 347 | smtpmail-queue-dir | 346 | (expand-file-name |
| 348 | (concat (time-stamp-yyyy-mm-dd) | 347 | (format "%s_%i" |
| 349 | "_" (time-stamp-hh:mm:ss) | 348 | (format-time-string "%Y-%m-%d_%H:%M:%S") |
| 350 | "_" | 349 | (setq smtpmail-queue-counter |
| 351 | (setq smtpmail-queue-counter | 350 | (1+ smtpmail-queue-counter))) |
| 352 | (1+ smtpmail-queue-counter))))) | 351 | smtpmail-queue-dir)) |
| 353 | (file-elisp (concat file-data ".el")) | 352 | (file-data (convert-standard-filename file-data)) |
| 353 | (file-elisp (concat file-data ".el")) | ||
| 354 | (buffer-data (create-file-buffer file-data)) | 354 | (buffer-data (create-file-buffer file-data)) |
| 355 | (buffer-elisp (create-file-buffer file-elisp)) | 355 | (buffer-elisp (create-file-buffer file-elisp)) |
| 356 | (buffer-scratch "*queue-mail*")) | 356 | (buffer-scratch "*queue-mail*")) |