;ELC ;;; compiled by kwzh@hal.gnu.ai.mit.edu on Thu Apr 20 21:40:38 1995 ;;; from file /gd/gnu/emacs/19.0/lisp/mh-mime.el ;;; emacs version 19.28.90.32. ;;; bytecomp version FSF 2.10 ;;; optimization is on. ;;; this file uses opcodes which do not exist in Emacs 18. (if (and (boundp 'emacs-version) (or (and (boundp 'epoch::version) epoch::version) (string-lessp emacs-version "19"))) (error "`/gd/gnu/emacs/19.0/lisp/mh-mime.el' was compiled for Emacs 19")) (byte-code "ÀÁ!ˆÂÃ!‡" [provide mh-mime require mh-comp] 2) #@213 Extra arguments to have \[mh-edit-mhn] pass to the "mhn" command. The arguments are passed to mhn if \[mh-edit-mhn] is given a prefix argument. Normally default arguments to mhn are specified in the MH profile. (defvar mh-mhn-args nil (#$ . 543)) #@73 Invoked on the formatted letter by \\[mh-edit-mhn]. (defvar mh-edit-mhn-hook nil (#$ . 797)) #@66 Legal MIME content types. See documentation for \[mh-edit-mhn]. (defvar mh-mime-content-types (quote (("text/plain") ("text/richtext") ("multipart/mixed") ("multipart/alternative") ("multipart/digest") ("multipart/parallel") ("message/rfc822") ("message/partial") ("message/external-body") ("application/octet-stream") ("application/postscript") ("image/jpeg") ("image/gif") ("audio/basic") ("video/mpeg"))) (#$ . 916)) #@306 Add a directive to insert a MIME message part from a file. This is the typical way to insert non-text parts in a message. Arguments are PATHNAME, which tells where to find the file, TYPE, the MIME content type, and DESCRIPTION, a line of text for the Content-description header. See also \[mh-edit-mhn]. (defalias 'mh-mhn-compose-insertion #[(pathname type description) "À \n #‡" [mh-mhn-compose-type pathname type description] 4 (#$ . 1344) (list (read-file-name "Insert contents of: ") (completing-read "Content-type: " mh-mime-content-types nil nil nil) (read-string "Content-description: "))]) (defalias 'mh-mhn-compose-type #[(pathname type &optional description attributes comment) "ÀyˆÁ\n±ˆ ƒÄ ±ˆ ƒÆ DZˆÈcˆ ƒ' cˆÊË\f!±ˆÍc‡" [0 "#" type attributes "; " comment " (" ")" " [" description "] " expand-file-name pathname "\n"] 3]) #@363 Add a directive for a MIME anonymous ftp external body part. This directive tells MH to include a reference to a message/external-body part retrievable by anonymous FTP. Arguments are HOST and PATHNAME, which tell where to find the file, TYPE, the MIME content type, and DESCRIPTION, a line of text for the Content-description header. See also \[mh-edit-mhn]. (defalias 'mh-mhn-compose-anon-ftp #[(host pathname type description) "ÀÁ\n \f %‡" [mh-mhn-compose-external-type "anon-ftp" host pathname type description] 6 (#$ . 2198) (list (read-string "Remote host: ") (read-string "Remote pathname: ") (completing-read "External Content-type: " mh-mime-content-types nil nil nil) (read-string "External Content-description: "))]) #@361 Add a directive to include a MIME reference to a compressed tar file. The file should be available via anonymous ftp. This directive tells MH to include a reference to a message/external-body part. Arguments are HOST and PATHNAME, which tell where to find the file, and DESCRIPTION, a line of text for the Content-description header. See also \[mh-edit-mhn]. (defalias 'mh-mhn-compose-external-compressed-tar #[(host pathname description) "ÀÁ\n Ä ÆÇ&‡" [mh-mhn-compose-external-type "anon-ftp" host pathname "application/octet-stream" description "type=tar; conversions=x-compress" "mode=image"] 8 (#$ . 2935) (list (read-string "Remote host: ") (read-string "Remote pathname: ") (read-string "Tar file Content-description: "))]) (defalias 'mh-mhn-compose-external-type #[(access-type host pathname type &optional description attributes extra-params comment) "ÀyˆÁ\n±ˆ ƒÄ ±ˆ ƒÆ DZˆÈcˆ ƒ' cˆÊcˆË\fıˆÍ±ˆÏÐ!±ˆÒÓ!Ô±ˆƒSıˆÖc‡" [0 "#@" type attributes "; " comment " (" ") " " [" description "] " "access-type=" access-type "site=" host "; name=" file-name-nondirectory pathname "; directory=\"" file-name-directory "\"" extra-params "\n"] 3]) #@309 Add a forw directive to this message, to forward a message with MIME. This directive tells MH to include the named messages in this one. Arguments are DESCRIPTION, a line of text for the Content-description header, and FOLDER and MESSAGES, which name the message(s) to be forwarded. See also \[mh-edit-mhn]. (defalias 'mh-mhn-compose-forw #[(&optional description folder messages) "ÀyˆÁcˆ\nƒ\nØ„\ncˆÄcˆ ƒ% Ø„%Æ ±ˆƒFØ„F`ƱˆÉ`ÊË$ˆ)‚S\fƒSÆÍ\f!±ˆÎc‡" [0 "#forw [" description "" "]" folder " " messages start subst-char-in-region 44 32 mh-sent-from-msg int-to-string "\n"] 5 (#$ . 4110) (list (read-string "Forw Content-description: ") (mh-prompt-for-folder "Message from" mh-sent-from-folder nil) (read-string (format "Messages%s: " (if mh-sent-from-msg (format " [%d]" mh-sent-from-msg) ""))))]) #@870 Format the current draft for MIME, expanding any mhn directives. Process the current draft with the mhn program, which, using directives already inserted in the draft, fills in all the MIME components and header fields. This step should be done last just before sending the message. The mhn program is part of MH version 6.8 or later. The `\[mh-revert-mhn-edit]' command undoes this command. The arguments in the list `mh-mhn-args' are passed to mhn if this function is passed an argument. For assistance with creating mhn directives to insert various types of components in a message, see \[mh-mhn-compose-insertion] (generic insertion from a file), \[mh-mhn-compose-anon-ftp] (external reference to file via anonymous ftp), \[mh-mhn-compose-external-compressed-tar] (reference to compressed tar file via anonymous ftp), and \[mh-mhn-compose-forw] (forward message). (defalias 'mh-edit-mhn #[(&optional extra-args) "À ˆÁÂ!ˆÃÄÅ\"Ç… $ˆÊˉ\"ˆÁÌ!ˆÍÎ!‡" [save-buffer message "mhn editing..." mh-exec-cmd-error format "mhdraft=%s" buffer-file-name "mhn" extra-args mh-mhn-args revert-buffer t "mhn editing...done" run-hooks mh-edit-mhn-hook] 5 (#$ . 4939) "*P"]) #@130 Undoes the effect of \[mh-edit-mhn] by reverting to the backup file. Optional non-nil argument means don't ask for confirmation. (defalias 'mh-revert-mhn-edit #[(noconfirm) "„ÁÂ!ˆÃĉƒ,ÇÈ!@É!ÊR‰!„,A‰„„6ÁË\"ˆ\f„HÍÎÏ \"!„HÁÐ!ˆÄÒ ˆÓ !ˆ)ÔÄ!*‡" [buffer-file-name error "Buffer does not seem to be associated with any file" ("," "#") nil backup-file backup-strings file-exists-p file-name-directory file-name-nondirectory ".orig" "mhn backup file for %s no longer exists!" noconfirm yes-or-no-p format "Revert buffer from file %s? " "mhn edit revert not confirmed." buffer-read-only erase-buffer insert-file-contents after-find-file] 6 (#$ . 6114) "*P"])