(new-name (format "%s-%s" (buffer-name) entity-number))
(the-buf (current-buffer))
(mother mime-preview-buffer)
- (mode major-mode)
representation-type)
(set-buffer (get-buffer-create new-name))
(erase-buffer)
(while (re-search-forward "^- -" nil t)
(replace-match "-")
)
- (setq representation-type
- (cdr (or (assq mode mime-raw-representation-type-alist)
- (assq t mime-raw-representation-type-alist))))
+ (setq representation-type (mime-entity-representation-type entity))
)
((progn
(goto-char (point-min))
(onum (if (> knum 0)
(1- knum)
(1+ knum)))
- (oinfo (mime-raw-find-entity-from-node-id
- (cons onum mother-node-id) mime-message-structure))
+ (orig-entity (mime-raw-find-entity-from-node-id
+ (cons onum mother-node-id) mime-message-structure))
(basename (expand-file-name "tm" mime-temp-directory))
(orig-file (make-temp-name basename))
(sig-file (concat orig-file ".sig"))
)
- (mime-raw-write-region (mime-entity-point-min oinfo)
- (mime-entity-point-max oinfo)
+ (mime-raw-write-region (mime-entity-point-min orig-entity)
+ (mime-entity-point-max orig-entity)
orig-file)
(save-excursion (mime-show-echo-buffer))
(mime-write-decoded-region (save-excursion
(onum (if (> knum 0)
(1- knum)
(1+ knum)))
- (oinfo (mime-raw-find-entity-from-node-id
- (cons onum mother-node-id) mime-message-structure)))
- (mime-view-application/pgp oinfo situation)
+ (orig-entity (mime-raw-find-entity-from-node-id
+ (cons onum mother-node-id) mime-message-structure)))
+ (mime-view-application/pgp orig-entity situation)
))