;;; It is based on draft-kazu-pgp-mime-00.txt
(defun mime-method-for-application/pgp (beg end cal)
- (let* ((cnum (mime-article/point-content-number beg))
+ (let* ((cnum (mime-raw-point-content-number beg))
(p-win (or (get-buffer-window mime-preview-buffer)
(get-largest-window)))
(new-name (format "%s-%s" (buffer-name) cnum))
(defun mime-method-to-verify-multipart/signed (beg end cal)
"Internal method to check multipart/signed."
- (let* ((rcnum (reverse (mime-article/point-content-number beg)))
- (oinfo (mime-article/rcnum-to-cinfo (cons '1 rcnum)
+ (let* ((rcnum (reverse (mime-raw-point-content-number beg)))
+ (oinfo (mime-raw-rcnum-to-cinfo (cons '1 rcnum)
mime-raw-entity-info))
)
(mime-playback-entity oinfo (cdr (assq 'mode cal)))
(defun mime-method-to-verify-application/pgp-signature (beg end cal)
"Internal method to check PGP/MIME signature."
(let* ((encoding (cdr (assq 'encoding cal)))
- (cnum (mime-article/point-content-number beg))
+ (cnum (mime-raw-point-content-number beg))
(rcnum (reverse cnum))
(rmcnum (cdr rcnum))
(knum (car rcnum))
(1- knum)
(1+ knum)))
(raw-buf (current-buffer))
- (oinfo (mime-article/rcnum-to-cinfo (cons onum rmcnum)
+ (oinfo (mime-raw-rcnum-to-cinfo (cons onum rmcnum)
mime-raw-entity-info))
kbuf
(basename (expand-file-name "tm" mime-temp-directory))
;;; It is based on RFC 2015.
(defun mime-method-to-decrypt-application/pgp-encrypted (beg end cal)
- (let* ((cnum (mime-article/point-content-number beg))
+ (let* ((cnum (mime-raw-point-content-number beg))
(rcnum (reverse cnum))
(rmcnum (cdr rcnum))
(knum (car rcnum))
(onum (if (> knum 0)
(1- knum)
(1+ knum)))
- (oinfo (mime-article/rcnum-to-cinfo (cons onum rmcnum)
+ (oinfo (mime-raw-rcnum-to-cinfo (cons onum rmcnum)
mime-raw-entity-info))
(obeg (mime-entity-info-point-min oinfo))
(oend (mime-entity-info-point-max oinfo))
;;; It is based on RFC 2015.
(defun mime-method-to-add-application/pgp-keys (beg end cal)
- (let* ((cnum (mime-article/point-content-number beg))
+ (let* ((cnum (mime-raw-point-content-number beg))
(new-name (format "%s-%s" (buffer-name) cnum))
(encoding (cdr (assq 'encoding cal)))
str)
(narrow-to-region beg end)
(goto-char beg)
(let ((method (cdr (assoc 'method cal)))
- (name (mime-article/get-filename cal))
+ (name (mime-raw-get-filename cal))
)
(if method
(let ((file (make-temp-name
(concat (regexp-* mime-view-file-name-char-regexp)
"\\(\\." mime-view-file-name-char-regexp "+\\)*"))
-(defun mime-article/get-original-filename (param &optional encoding)
- (or (mime-article/get-uu-filename param encoding)
+(defun mime-raw-get-original-filename (param &optional encoding)
+ (or (mime-raw-get-uu-filename param encoding)
(let (ret)
(or (if (or (and (setq ret (mime/Content-Disposition))
(setq ret (assoc "filename" (cdr ret)))
))
))
-(defun mime-article/get-filename (param)
- (replace-as-filename (mime-article/get-original-filename param))
+(defun mime-raw-get-filename (param)
+ (replace-as-filename (mime-raw-get-original-filename param))
)
(let* ((name
(save-restriction
(narrow-to-region beg end)
- (mime-article/get-filename cal)
+ (mime-raw-get-filename cal)
))
(encoding (cdr (assq 'encoding cal)))
(filename
))
(defun mime-method-to-display-message/rfc822 (beg end cal)
- (let* ((cnum (mime-article/point-content-number beg))
+ (let* ((cnum (mime-raw-point-content-number beg))
(new-name (format "%s-%s" (buffer-name) cnum))
(mother mime-preview-buffer)
(text-decoder
;;; @ message/partial
;;;
-(defvar mime-article/coding-system-alist
+(defvar mime-raw-coding-system-alist
(list '(mh-show-mode . no-conversion)
(cons t (mime-charset-to-coding-system default-mime-charset))
))
(defun mime-article::write-region (start end file)
(let ((coding-system-for-write
(cdr
- (or (assq major-mode mime-article/coding-system-alist)
- (assq t mime-article/coding-system-alist)
+ (or (assq major-mode mime-raw-coding-system-alist)
+ (assq t mime-raw-coding-system-alist)
))))
(write-region start end file)
))
;;; @ message/external-body
;;;
-(defvar mime-article/dired-function
+(defvar mime-raw-dired-function
(if mime/use-multi-frame
(function dired-other-frame)
- (function mime-article/dired-function-for-one-frame)
+ (function mime-raw-dired-function-for-one-frame)
))
-(defun mime-article/dired-function-for-one-frame (dir)
+(defun mime-raw-dired-function-for-one-frame (dir)
(let ((win (or (get-buffer-window mime-preview-buffer)
(get-largest-window))))
(select-window win)
(pathname (concat "/anonymous@" site ":" directory))
)
(message (concat "Accessing " (expand-file-name name pathname) "..."))
- (funcall mime-article/dired-function pathname)
+ (funcall mime-raw-dired-function pathname)
(goto-char (point-min))
(search-forward name)
))
(defun mime-method-to-display-caesar (start end cal)
"Internal method for mime-view to display ROT13-47-48 message."
- (let* ((cnum (mime-article/point-content-number start))
+ (let* ((cnum (mime-raw-point-content-number start))
(new-name (format "%s-%s" (buffer-name) cnum))
(the-buf (current-buffer))
(mother mime-preview-buffer)
(or (eq media-subtype 'x-selection)
(and (eq media-subtype 'octet-stream)
(let ((entity-info
- (mime-article/rcnum-to-cinfo (cdr rcnum) cinfo)))
+ (mime-raw-rcnum-to-cinfo (cdr rcnum) cinfo)))
(and (eq (mime-entity-info-media-type entity-info)
'multipart)
(eq (mime-entity-info-media-subtype entity-info)
(narrow-to-region beg end)
(setq subj
(eword-decode-string
- (mime-article/get-subject params encoding)))
+ (mime-raw-get-subject params encoding)))
)
(set-buffer obuf)
(setq nb (point))
(function mime-preview-play-current-entity))
))
-(defun mime-article/get-uu-filename (param &optional encoding)
+(defun mime-raw-get-uu-filename (param &optional encoding)
(if (member (or encoding
(cdr (assq 'encoding param))
)
""))
))
-(defun mime-article/get-subject (param &optional encoding)
+(defun mime-raw-get-subject (param &optional encoding)
(or (std11-find-field-body '("Content-Description" "Subject"))
(let (ret)
(if (or (and (setq ret (mime/Content-Disposition))
)
(std11-strip-quoted-string (cdr ret))
))
- (mime-article/get-uu-filename param encoding)
+ (mime-raw-get-uu-filename param encoding)
""))
;;; @ entity information
;;;
-(defun mime-article/point-content-number (p &optional cinfo)
+(defun mime-raw-point-content-number (p &optional cinfo)
(or cinfo
(setq cinfo mime-raw-entity-info)
)
(catch 'tag
(while c
(setq co (car c))
- (setq ret (mime-article/point-content-number p co))
+ (setq ret (mime-raw-point-content-number p co))
(cond ((eq ret t) (throw 'tag (list sn)))
(ret (throw 'tag (cons sn ret)))
)
)))
t))))
-(defsubst mime-article/rcnum-to-cinfo (rnum &optional cinfo)
- (mime-article/cnum-to-cinfo (reverse rnum) cinfo)
+(defsubst mime-raw-rcnum-to-cinfo (rnum &optional cinfo)
+ (mime-raw-cnum-to-cinfo (reverse rnum) cinfo)
)
-(defun mime-article/cnum-to-cinfo (cn &optional cinfo)
+(defun mime-raw-cnum-to-cinfo (cn &optional cinfo)
(or cinfo
(setq cinfo mime-raw-entity-info)
)
cinfo
(let ((rc (nth sn (mime-entity-info-children cinfo))))
(if rc
- (mime-article/cnum-to-cinfo (cdr cn) rc)
+ (mime-raw-cnum-to-cinfo (cdr cn) rc)
))
))))
"Return non-nil if header of current entity is visible."
(or (null rcnum)
(member (mime-entity-info-type/subtype
- (mime-article/rcnum-to-cinfo (cdr rcnum) cinfo))
+ (mime-raw-rcnum-to-cinfo (cdr rcnum) cinfo))
mime-view-childrens-header-showing-Content-Type-list)
))
(and (member ctype mime-view-visible-media-type-list)
(if (and (eq media-type 'application)
(eq media-subtype 'octet-stream))
- (let ((ccinfo (mime-article/rcnum-to-cinfo rcnum cinfo)))
+ (let ((ccinfo (mime-raw-rcnum-to-cinfo rcnum cinfo)))
(member (mime-entity-info-encoding ccinfo)
'(nil "7bit" "8bit"))
)
(setq str
(save-excursion
(set-buffer a-buf)
- (setq ci (mime-article/rcnum-to-cinfo rcnum))
+ (setq ci (mime-raw-rcnum-to-cinfo rcnum))
(save-restriction
(narrow-to-region
(mime-entity-info-point-min ci)
(while (null (setq cinfo (get-text-property (point) 'mime-view-cinfo)))
(backward-char)
)
- (let ((r (mime-article/rcnum-to-cinfo
+ (let ((r (mime-raw-rcnum-to-cinfo
(cdr (mime-entity-info-rnum cinfo))
(get-text-property 1 'mime-view-cinfo)))
point)