diff options
| author | Lars Ingebrigtsen | 2017-01-26 21:35:58 +0100 |
|---|---|---|
| committer | Lars Ingebrigtsen | 2017-01-26 21:35:58 +0100 |
| commit | eba8046f05ca288608ebd065e089764275a503d2 (patch) | |
| tree | f1f24f53afbb9612ccd7e2bab294b784d25d4ace | |
| parent | 301ee3d0319d489087bc548beb2ea5e7900224b6 (diff) | |
| download | emacs-eba8046f05ca288608ebd065e089764275a503d2.tar.gz emacs-eba8046f05ca288608ebd065e089764275a503d2.zip | |
(message-do-fcc): Modernise the code slightly.
* lisp/gnus/message.el (message-do-fcc): Modernise the code slightly.
| -rw-r--r-- | lisp/gnus/message.el | 17 |
1 files changed, 6 insertions, 11 deletions
diff --git a/lisp/gnus/message.el b/lisp/gnus/message.el index 9af38c01ed7..7cff8b80a21 100644 --- a/lisp/gnus/message.el +++ b/lisp/gnus/message.el | |||
| @@ -5393,15 +5393,11 @@ Otherwise, generate and save a value for `canlock-password' first." | |||
| 5393 | "Process Fcc headers in the current buffer." | 5393 | "Process Fcc headers in the current buffer." |
| 5394 | (let ((case-fold-search t) | 5394 | (let ((case-fold-search t) |
| 5395 | (buf (current-buffer)) | 5395 | (buf (current-buffer)) |
| 5396 | list file | 5396 | (mml-externalize-attachments message-fcc-externalize-attachments) |
| 5397 | (mml-externalize-attachments message-fcc-externalize-attachments)) | 5397 | (file (message-field-value "fcc" t)) |
| 5398 | (save-excursion | 5398 | list) |
| 5399 | (save-restriction | 5399 | (when file |
| 5400 | (message-narrow-to-headers) | 5400 | (with-temp-buffer |
| 5401 | (setq file (message-fetch-field "fcc" t))) | ||
| 5402 | (when file | ||
| 5403 | (set-buffer (get-buffer-create " *message temp*")) | ||
| 5404 | (erase-buffer) | ||
| 5405 | (insert-buffer-substring buf) | 5401 | (insert-buffer-substring buf) |
| 5406 | (message-encode-message-body) | 5402 | (message-encode-message-body) |
| 5407 | (save-restriction | 5403 | (save-restriction |
| @@ -5442,8 +5438,7 @@ Otherwise, generate and save a value for `canlock-password' first." | |||
| 5442 | (if (and (file-readable-p file) (mail-file-babyl-p file)) | 5438 | (if (and (file-readable-p file) (mail-file-babyl-p file)) |
| 5443 | (rmail-output file 1 nil t) | 5439 | (rmail-output file 1 nil t) |
| 5444 | (let ((mail-use-rfc822 t)) | 5440 | (let ((mail-use-rfc822 t)) |
| 5445 | (rmail-output file 1 t t)))))) | 5441 | (rmail-output file 1 t t)))))))))) |
| 5446 | (kill-buffer (current-buffer)))))) | ||
| 5447 | 5442 | ||
| 5448 | (defun message-output (filename) | 5443 | (defun message-output (filename) |
| 5449 | "Append this article to Unix/babyl mail file FILENAME." | 5444 | "Append this article to Unix/babyl mail file FILENAME." |