@@ -1197,6 +1197,9 @@ MML tags."
11971197 " "
11981198 (concat " " (org-msg-get-to-name))))))
11991199 (when (eq .style 'top-posting )
1200+ (setq mml-content-disposition-alist
1201+ (append (org-msg--mml-content-disposition-alist)
1202+ mml-content-disposition-alist))
12001203 (save-excursion
12011204 (insert " \n\n " org-msg-separator " \n " )
12021205 (delete-region (line-beginning-position ) (1+ (line-end-position )))
@@ -1343,16 +1346,24 @@ This function is used as an advice function of
13431346 (goto-char citation-start))
13441347 (re-search-forward , regexp (point-max ) t )))))
13451348
1349+ (defun org-msg--mml-content-disposition-alist ()
1350+ " Return the appropriate per-file MIME disposition."
1351+ (mapcar (lambda (x )
1352+ (cons (concat x " .*" ) " inline" ))
1353+ (org-msg-get-prop " reply-to" )))
1354+
13461355(defun org-msg-kill-buffer ()
13471356 " Delete temporary files."
1348- (let ((files (org-msg-get-prop " reply-to" )))
1349- (dolist (file files )
1350- (when (and (not (string= " " file)) (file-exists-p file))
1351- (cond ((file-directory-p file) (delete-directory file t ))
1352- ((delete-file file)))))
1353- (when org-msg-mml-buffer-list
1354- (let ((mml-buffer-list org-msg-mml-buffer-list))
1355- (mml-destroy-buffers )))))
1357+ (dolist (file (org-msg-get-prop " reply-to" ))
1358+ (when (and (not (string= " " file)) (file-exists-p file))
1359+ (cond ((file-directory-p file) (delete-directory file t ))
1360+ ((delete-file file)))))
1361+ (dolist (disposition (org-msg--mml-content-disposition-alist))
1362+ (setq mml-content-disposition-alist
1363+ (delete disposition mml-content-disposition-alist)))
1364+ (when org-msg-mml-buffer-list
1365+ (let ((mml-buffer-list org-msg-mml-buffer-list))
1366+ (mml-destroy-buffers ))))
13561367
13571368(defun org-msg-store-mml-buffers ()
13581369 " Locally store the list of MML temporary buffers."
0 commit comments