diff options
| author | Glenn Morris | 2017-06-02 20:42:01 -0400 |
|---|---|---|
| committer | Glenn Morris | 2017-06-02 20:42:01 -0400 |
| commit | 73635edb43e0e4a31cfe8af41ccb07c32836b148 (patch) | |
| tree | d94dbbc295c6e160ad607a68b9327c12444f530d /lisp | |
| parent | 606bfcf00ed39f4f05045dbbdb3a6f12ec4baf03 (diff) | |
| download | emacs-73635edb43e0e4a31cfe8af41ccb07c32836b148.tar.gz emacs-73635edb43e0e4a31cfe8af41ccb07c32836b148.zip | |
Small rmailmm fix (bug#27203)
* lisp/mail/rmailmm.el (rmail-mime-insert-bulk):
Fall back to HOME if no match in rmail-mime-attachment-dirs-alist.
Diffstat (limited to 'lisp')
| -rw-r--r-- | lisp/mail/rmailmm.el | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/lisp/mail/rmailmm.el b/lisp/mail/rmailmm.el index c6b9cfddb66..1ffd4668ac8 100644 --- a/lisp/mail/rmailmm.el +++ b/lisp/mail/rmailmm.el | |||
| @@ -817,12 +817,13 @@ directly." | |||
| 817 | (bulk-data (aref tagline 1)) | 817 | (bulk-data (aref tagline 1)) |
| 818 | (body (rmail-mime-entity-body entity)) | 818 | (body (rmail-mime-entity-body entity)) |
| 819 | ;; Find the default directory for this media type. | 819 | ;; Find the default directory for this media type. |
| 820 | (directory (catch 'directory | 820 | (directory (or (catch 'directory |
| 821 | (dolist (entry rmail-mime-attachment-dirs-alist) | 821 | (dolist (entry rmail-mime-attachment-dirs-alist) |
| 822 | (when (string-match (car entry) (car content-type)) | 822 | (when (string-match (car entry) (car content-type)) |
| 823 | (dolist (dir (cdr entry)) | 823 | (dolist (dir (cdr entry)) |
| 824 | (when (file-directory-p dir) | 824 | (when (file-directory-p dir) |
| 825 | (throw 'directory dir))))))) | 825 | (throw 'directory dir)))))) |
| 826 | "~")) | ||
| 826 | (filename (or (cdr (assq 'name (cdr content-type))) | 827 | (filename (or (cdr (assq 'name (cdr content-type))) |
| 827 | (cdr (assq 'filename (cdr content-disposition))) | 828 | (cdr (assq 'filename (cdr content-disposition))) |
| 828 | "noname")) | 829 | "noname")) |