diff options
| author | Lars Ingebrigtsen | 2019-05-13 16:16:10 -0400 |
|---|---|---|
| committer | Lars Ingebrigtsen | 2019-05-13 16:16:10 -0400 |
| commit | 86c8582c9e4497406522c3073e232e1af2eb23d1 (patch) | |
| tree | 2cf7bccbe4a1a177d4407ea26439a0575d6e81f3 | |
| parent | 8fe73515ad08402d16de44b32dc93b98069e0498 (diff) | |
| download | emacs-86c8582c9e4497406522c3073e232e1af2eb23d1.tar.gz emacs-86c8582c9e4497406522c3073e232e1af2eb23d1.zip | |
Make mml respect the "recipient-filename" parameter
* lisp/gnus/mml.el (mml-insert-mime-headers): Implement the
already-documented "recipient-filename" parameter (bug#34654).
| -rw-r--r-- | lisp/gnus/mml.el | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/lisp/gnus/mml.el b/lisp/gnus/mml.el index 7a99a0dc46c..b0b4fd0a54d 100644 --- a/lisp/gnus/mml.el +++ b/lisp/gnus/mml.el | |||
| @@ -906,8 +906,14 @@ be \"related\" or \"alternate\"." | |||
| 906 | (or disposition | 906 | (or disposition |
| 907 | (mml-content-disposition type (cdr (assq 'filename cont))))) | 907 | (mml-content-disposition type (cdr (assq 'filename cont))))) |
| 908 | (when parameters | 908 | (when parameters |
| 909 | (mml-insert-parameter-string | 909 | (let ((cont (copy-sequence cont))) |
| 910 | cont mml-content-disposition-parameters)) | 910 | ;; Set the file name to what's specified by the user. |
| 911 | (when-let ((recipient-filename (cdr (assq 'recipient-filename cont)))) | ||
| 912 | (setcdr cont | ||
| 913 | (cons (cons 'filename recipient-filename) | ||
| 914 | (cdr cont)))) | ||
| 915 | (mml-insert-parameter-string | ||
| 916 | cont mml-content-disposition-parameters))) | ||
| 911 | (insert "\n")) | 917 | (insert "\n")) |
| 912 | (unless (eq encoding '7bit) | 918 | (unless (eq encoding '7bit) |
| 913 | (insert (format "Content-Transfer-Encoding: %s\n" encoding))) | 919 | (insert (format "Content-Transfer-Encoding: %s\n" encoding))) |