"Internal method to check multipart/signed."
(let* ((rcnum (reverse (mime-raw-point-to-entity-number beg)))
(oinfo (mime-raw-rcnum-to-cinfo (cons '1 rcnum)
- mime-raw-entity-info))
+ mime-raw-message-info))
)
(mime-playback-entity oinfo (cdr (assq 'mode cal)))
))
(1+ knum)))
(raw-buf (current-buffer))
(oinfo (mime-raw-rcnum-to-cinfo (cons onum rmcnum)
- mime-raw-entity-info))
+ mime-raw-message-info))
kbuf
(basename (expand-file-name "tm" mime-temp-directory))
(orig-file (make-temp-name basename))
(1- knum)
(1+ knum)))
(oinfo (mime-raw-rcnum-to-cinfo (cons onum rmcnum)
- mime-raw-entity-info))
+ mime-raw-message-info))
(obeg (mime-entity-info-point-min oinfo))
(oend (mime-entity-info-point-max oinfo))
)
;;; @@@ in raw-buffer
;;;
-(defvar mime-raw-entity-info
+(defvar mime-raw-message-info
"Information about structure of message.
Please use reference function `mime-entity-info-SLOT' to get value of
SLOT.
If an entity includes other entities in its body, such as multipart or
message/rfc822, entity-infos of other entities are included in
`children', so entity-info become a tree.")
-(make-variable-buffer-local 'mime-raw-entity-info)
+(make-variable-buffer-local 'mime-raw-message-info)
(defvar mime-preview-buffer nil
"MIME-preview buffer corresponding with the (raw) buffer.")
(set-buffer ibuf)
))
(or mime-view-redisplay
- (setq mime-raw-entity-info (mime-parse-message ctl encoding))
+ (setq mime-raw-message-info (mime-parse-message ctl encoding))
)
- (let* ((cinfo mime-raw-entity-info)
+ (let* ((cinfo mime-raw-message-info)
(pcl (mime/flatten-content-info cinfo))
(the-buf (current-buffer))
(mode major-mode)
;;; @ entity information
;;;
-(defun mime-raw-point-to-entity-number (p &optional cinfo)
- (or cinfo
- (setq cinfo mime-raw-entity-info)
+(defun mime-raw-point-to-entity-number (position &optional message-info)
+ "Return entity-number from POTION in mime-raw-buffer.
+If optional argument MESSAGE-INFO is not specified,
+`mime-raw-message-info' is used."
+ (or message-info
+ (setq message-info mime-raw-message-info)
)
- (let ((b (mime-entity-info-point-min cinfo))
- (e (mime-entity-info-point-max cinfo))
- (c (mime-entity-info-children cinfo))
+ (let ((b (mime-entity-info-point-min message-info))
+ (e (mime-entity-info-point-max message-info))
+ (c (mime-entity-info-children message-info))
)
- (if (and (<= b p)(<= p e))
+ (if (and (<= b position)(<= position e))
(or (let (co ret (sn 0))
(catch 'tag
(while c
(setq co (car c))
- (setq ret (mime-raw-point-to-entity-number p co))
+ (setq ret (mime-raw-point-to-entity-number position co))
(cond ((eq ret t) (throw 'tag (list sn)))
(ret (throw 'tag (cons sn ret)))
)
(defun mime-raw-cnum-to-cinfo (cn &optional cinfo)
(or cinfo
- (setq cinfo mime-raw-entity-info)
+ (setq cinfo mime-raw-message-info)
)
(if (eq cn t)
cinfo
(defun mime/flatten-content-info (&optional cinfo)
(or cinfo
- (setq cinfo mime-raw-entity-info)
+ (setq cinfo mime-raw-message-info)
)
(let ((dest (list cinfo))
(rcl (mime-entity-info-children cinfo))