emacs-mime 93 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374
  1. This is ../../info/emacs-mime, produced by makeinfo version 4.13 from
  2. emacs-mime.texi.
  3. This file documents the Emacs MIME interface functionality.
  4. Copyright (C) 1998-2012 Free Software Foundation, Inc.
  5. Permission is granted to copy, distribute and/or modify this
  6. document under the terms of the GNU Free Documentation License,
  7. Version 1.3 or any later version published by the Free Software
  8. Foundation; with no Invariant Sections, with the Front-Cover texts
  9. being "A GNU Manual", and with the Back-Cover Texts as in (a)
  10. below. A copy of the license is included in the section entitled
  11. "GNU Free Documentation License".
  12. (a) The FSF's Back-Cover Text is: "You have the freedom to copy and
  13. modify this GNU manual. Buying copies from the FSF supports it in
  14. developing GNU and promoting software freedom."
  15. INFO-DIR-SECTION Emacs lisp libraries
  16. START-INFO-DIR-ENTRY
  17. * Emacs MIME: (emacs-mime). Emacs MIME de/composition library.
  18. END-INFO-DIR-ENTRY
  19. 
  20. File: emacs-mime, Node: Top, Next: Decoding and Viewing, Up: (dir)
  21. Emacs MIME
  22. **********
  23. This manual documents the libraries used to compose and display MIME
  24. messages.
  25. This manual is directed at users who want to modify the behavior of
  26. the MIME encoding/decoding process or want a more detailed picture of
  27. how the Emacs MIME library works, and people who want to write
  28. functions and commands that manipulate MIME elements.
  29. MIME is short for "Multipurpose Internet Mail Extensions". This
  30. standard is documented in a number of RFCs; mainly RFC2045 (Format of
  31. Internet Message Bodies), RFC2046 (Media Types), RFC2047 (Message
  32. Header Extensions for Non-ASCII Text), RFC2048 (Registration
  33. Procedures), RFC2049 (Conformance Criteria and Examples). It is highly
  34. recommended that anyone who intends writing MIME-compliant software
  35. read at least RFC2045 and RFC2047.
  36. This file documents the Emacs MIME interface functionality.
  37. Copyright (C) 1998-2012 Free Software Foundation, Inc.
  38. Permission is granted to copy, distribute and/or modify this
  39. document under the terms of the GNU Free Documentation License,
  40. Version 1.3 or any later version published by the Free Software
  41. Foundation; with no Invariant Sections, with the Front-Cover texts
  42. being "A GNU Manual", and with the Back-Cover Texts as in (a)
  43. below. A copy of the license is included in the section entitled
  44. "GNU Free Documentation License".
  45. (a) The FSF's Back-Cover Text is: "You have the freedom to copy and
  46. modify this GNU manual. Buying copies from the FSF supports it in
  47. developing GNU and promoting software freedom."
  48. * Menu:
  49. * Decoding and Viewing:: A framework for decoding and viewing.
  50. * Composing:: MML; a language for describing MIME parts.
  51. * Interface Functions:: An abstraction over the basic functions.
  52. * Basic Functions:: Utility and basic parsing functions.
  53. * Standards:: A summary of RFCs and working documents used.
  54. * GNU Free Documentation License:: The license for this documentation.
  55. * Index:: Function and variable index.
  56. 
  57. File: emacs-mime, Node: Decoding and Viewing, Next: Composing, Prev: Top, Up: Top
  58. 1 Decoding and Viewing
  59. **********************
  60. This chapter deals with decoding and viewing MIME messages on a higher
  61. level.
  62. The main idea is to first analyze a MIME article, and then allow
  63. other programs to do things based on the list of "handles" that are
  64. returned as a result of this analysis.
  65. * Menu:
  66. * Dissection:: Analyzing a MIME message.
  67. * Non-MIME:: Analyzing a non-MIME message.
  68. * Handles:: Handle manipulations.
  69. * Display:: Displaying handles.
  70. * Display Customization:: Variables that affect display.
  71. * Files and Directories:: Saving and naming attachments.
  72. * New Viewers:: How to write your own viewers.
  73. 
  74. File: emacs-mime, Node: Dissection, Next: Non-MIME, Up: Decoding and Viewing
  75. 1.1 Dissection
  76. ==============
  77. The `mm-dissect-buffer' is the function responsible for dissecting a
  78. MIME article. If given a multipart message, it will recursively
  79. descend the message, following the structure, and return a tree of MIME
  80. handles that describes the structure of the message.
  81. 
  82. File: emacs-mime, Node: Non-MIME, Next: Handles, Prev: Dissection, Up: Decoding and Viewing
  83. 1.2 Non-MIME
  84. ============
  85. Gnus also understands some non-MIME attachments, such as postscript,
  86. uuencode, binhex, yenc, shar, forward, gnatsweb, pgp, diff. Each of
  87. these features can be disabled by add an item into
  88. `mm-uu-configure-list'. For example,
  89. (require 'mm-uu)
  90. (add-to-list 'mm-uu-configure-list '(pgp-signed . disabled))
  91. `postscript'
  92. PostScript file.
  93. `uu'
  94. Uuencoded file.
  95. `binhex'
  96. Binhex encoded file.
  97. `yenc'
  98. Yenc encoded file.
  99. `shar'
  100. Shar archive file.
  101. `forward'
  102. Non-MIME forwarded message.
  103. `gnatsweb'
  104. Gnatsweb attachment.
  105. `pgp-signed'
  106. PGP signed clear text.
  107. `pgp-encrypted'
  108. PGP encrypted clear text.
  109. `pgp-key'
  110. PGP public keys.
  111. `emacs-sources'
  112. Emacs source code. This item works only in the groups matching
  113. `mm-uu-emacs-sources-regexp'.
  114. `diff'
  115. Patches. This is intended for groups where diffs of committed
  116. files are automatically sent to. It only works in groups matching
  117. `mm-uu-diff-groups-regexp'.
  118. `verbatim-marks'
  119. Slrn-style verbatim marks.
  120. `LaTeX'
  121. LaTeX documents. It only works in groups matching
  122. `mm-uu-tex-groups-regexp'.
  123. Some inlined non-MIME attachments are displayed using the face
  124. `mm-uu-extract'. By default, no MIME button for these parts is
  125. displayed. You can force displaying a button using `K b'
  126. (`gnus-summary-display-buttonized') or add `text/x-verbatim' to
  127. `gnus-buttonized-mime-types', *Note MIME Commands: (gnus)MIME Commands.
  128. 
  129. File: emacs-mime, Node: Handles, Next: Display, Prev: Non-MIME, Up: Decoding and Viewing
  130. 1.3 Handles
  131. ===========
  132. A MIME handle is a list that fully describes a MIME component.
  133. The following macros can be used to access elements in a handle:
  134. `mm-handle-buffer'
  135. Return the buffer that holds the contents of the undecoded MIME
  136. part.
  137. `mm-handle-type'
  138. Return the parsed `Content-Type' of the part.
  139. `mm-handle-encoding'
  140. Return the `Content-Transfer-Encoding' of the part.
  141. `mm-handle-undisplayer'
  142. Return the object that can be used to remove the displayed part
  143. (if it has been displayed).
  144. `mm-handle-set-undisplayer'
  145. Set the undisplayer object.
  146. `mm-handle-disposition'
  147. Return the parsed `Content-Disposition' of the part.
  148. `mm-get-content-id'
  149. Returns the handle(s) referred to by `Content-ID'.
  150. 
  151. File: emacs-mime, Node: Display, Next: Display Customization, Prev: Handles, Up: Decoding and Viewing
  152. 1.4 Display
  153. ===========
  154. Functions for displaying, removing and saving.
  155. `mm-display-part'
  156. Display the part.
  157. `mm-remove-part'
  158. Remove the part (if it has been displayed).
  159. `mm-inlinable-p'
  160. Say whether a MIME type can be displayed inline.
  161. `mm-automatic-display-p'
  162. Say whether a MIME type should be displayed automatically.
  163. `mm-destroy-part'
  164. Free all resources occupied by a part.
  165. `mm-save-part'
  166. Offer to save the part in a file.
  167. `mm-pipe-part'
  168. Offer to pipe the part to some process.
  169. `mm-interactively-view-part'
  170. Prompt for a mailcap method to use to view the part.
  171. 
  172. File: emacs-mime, Node: Display Customization, Next: Files and Directories, Prev: Display, Up: Decoding and Viewing
  173. 1.5 Display Customization
  174. =========================
  175. `mm-inline-media-tests'
  176. This is an alist where the key is a MIME type, the second element
  177. is a function to display the part "inline" (i.e., inside Emacs),
  178. and the third element is a form to be `eval'ed to say whether the
  179. part can be displayed inline.
  180. This variable specifies whether a part _can_ be displayed inline,
  181. and, if so, how to do it. It does not say whether parts are
  182. _actually_ displayed inline.
  183. `mm-inlined-types'
  184. This, on the other hand, says what types are to be displayed
  185. inline, if they satisfy the conditions set by the variable above.
  186. It's a list of MIME media types.
  187. `mm-automatic-display'
  188. This is a list of types that are to be displayed "automatically",
  189. but only if the above variable allows it. That is, only inlinable
  190. parts can be displayed automatically.
  191. `mm-automatic-external-display'
  192. This is a list of types that will be displayed automatically in an
  193. external viewer.
  194. `mm-keep-viewer-alive-types'
  195. This is a list of media types for which the external viewer will
  196. not be killed when selecting a different article.
  197. `mm-attachment-override-types'
  198. Some MIME agents create parts that have a content-disposition of
  199. `attachment'. This variable allows overriding that disposition and
  200. displaying the part inline. (Note that the disposition is only
  201. overridden if we are able to, and want to, display the part
  202. inline.)
  203. `mm-discouraged-alternatives'
  204. List of MIME types that are discouraged when viewing
  205. `multipart/alternative'. Viewing agents are supposed to view the
  206. last possible part of a message, as that is supposed to be the
  207. richest. However, users may prefer other types instead, and this
  208. list says what types are most unwanted. If, for instance,
  209. `text/html' parts are very unwanted, and `text/richtext' parts are
  210. somewhat unwanted, you could say something like:
  211. (setq mm-discouraged-alternatives
  212. '("text/html" "text/richtext")
  213. mm-automatic-display
  214. (remove "text/html" mm-automatic-display))
  215. Adding `"image/.*"' might also be useful. Spammers use images as
  216. the preferred part of `multipart/alternative' messages, so you
  217. might not notice there are other parts. See also
  218. `gnus-buttonized-mime-types', *note MIME Commands: (gnus)MIME
  219. Commands. After adding `"multipart/alternative"' to
  220. `gnus-buttonized-mime-types' you can choose manually which
  221. alternative you'd like to view. For example, you can set those
  222. variables like:
  223. (setq gnus-buttonized-mime-types
  224. '("multipart/alternative" "multipart/signed")
  225. mm-discouraged-alternatives
  226. '("text/html" "image/.*"))
  227. In this case, Gnus will display radio buttons for such a kind of
  228. spam message as follows:
  229. 1. (*) multipart/alternative ( ) image/gif
  230. 2. (*) text/plain ( ) text/html
  231. `mm-inline-large-images'
  232. When displaying inline images that are larger than the window,
  233. Emacs does not enable scrolling, which means that you cannot see
  234. the whole image. To prevent this, the library tries to determine
  235. the image size before displaying it inline, and if it doesn't fit
  236. the window, the library will display it externally (e.g. with
  237. `ImageMagick' or `xv'). Setting this variable to `t' disables this
  238. check and makes the library display all inline images as inline,
  239. regardless of their size. If you set this variable to `resize',
  240. the image will be displayed resized to fit in the window, if Emacs
  241. has the ability to resize images.
  242. `mm-inline-large-images-proportion'
  243. The proportion used when resizing large images.
  244. `mm-inline-override-types'
  245. `mm-inlined-types' may include regular expressions, for example to
  246. specify that all `text/.*' parts be displayed inline. If a user
  247. prefers to have a type that matches such a regular expression be
  248. treated as an attachment, that can be accomplished by setting this
  249. variable to a list containing that type. For example assuming
  250. `mm-inlined-types' includes `text/.*', then including `text/html'
  251. in this variable will cause `text/html' parts to be treated as
  252. attachments.
  253. `mm-text-html-renderer'
  254. This selects the function used to render HTML. The predefined
  255. renderers are selected by the symbols `gnus-article-html', `w3',
  256. `w3m'(1), `links', `lynx', `w3m-standalone' or `html2text'. If
  257. `nil' use an external viewer. You can also specify a function,
  258. which will be called with a MIME handle as the argument.
  259. `mm-inline-text-html-with-images'
  260. Some HTML mails might have the trick of spammers using `<img>'
  261. tags. It is likely to be intended to verify whether you have read
  262. the mail. You can prevent your personal information from leaking
  263. by setting this option to `nil' (which is the default). It is
  264. currently ignored by Emacs/w3. For emacs-w3m, you may use the
  265. command `t' on the image anchor to show an image even if it is
  266. `nil'.(2)
  267. `mm-w3m-safe-url-regexp'
  268. A regular expression that matches safe URL names, i.e. URLs that
  269. are unlikely to leak personal information when rendering HTML
  270. email (the default value is `\\`cid:'). If `nil' consider all
  271. URLs safe. In Gnus, this will be overridden according to the value
  272. of the variable `gnus-safe-html-newsgroups', *Note Various
  273. Various: (gnus)Various Various.
  274. `mm-inline-text-html-with-w3m-keymap'
  275. You can use emacs-w3m command keys in the inlined text/html part by
  276. setting this option to non-`nil'. The default value is `t'.
  277. `mm-external-terminal-program'
  278. The program used to start an external terminal.
  279. `mm-enable-external'
  280. Indicate whether external MIME handlers should be used.
  281. If `t', all defined external MIME handlers are used. If `nil',
  282. files are saved to disk (`mailcap-save-binary-file'). If it is
  283. the symbol `ask', you are prompted before the external MIME
  284. handler is invoked.
  285. When you launch an attachment through mailcap (*note mailcap::) an
  286. attempt is made to use a safe viewer with the safest options--this
  287. isn't the case if you save it to disk and launch it in a different
  288. way (command line or double-clicking). Anyhow, if you want to be
  289. sure not to launch any external programs, set this variable to
  290. `nil' or `ask'.
  291. ---------- Footnotes ----------
  292. (1) See `http://emacs-w3m.namazu.org/' for more information about
  293. emacs-w3m
  294. (2) The command `T' will load all images. If you have set the
  295. option `w3m-key-binding' to `info', use `i' or `I' instead.
  296. 
  297. File: emacs-mime, Node: Files and Directories, Next: New Viewers, Prev: Display Customization, Up: Decoding and Viewing
  298. 1.6 Files and Directories
  299. =========================
  300. `mm-default-directory'
  301. The default directory for saving attachments. If `nil' use
  302. `default-directory'.
  303. `mm-tmp-directory'
  304. Directory for storing temporary files.
  305. `mm-file-name-rewrite-functions'
  306. A list of functions used for rewriting file names of MIME parts.
  307. Each function is applied successively to the file name.
  308. Ready-made functions include
  309. `mm-file-name-delete-control'
  310. Delete all control characters.
  311. `mm-file-name-delete-gotchas'
  312. Delete characters that could have unintended consequences
  313. when used with flawed shell scripts, i.e. `|', `>' and `<';
  314. and `-', `.' as the first character.
  315. `mm-file-name-delete-whitespace'
  316. Remove all whitespace.
  317. `mm-file-name-trim-whitespace'
  318. Remove leading and trailing whitespace.
  319. `mm-file-name-collapse-whitespace'
  320. Collapse multiple whitespace characters.
  321. `mm-file-name-replace-whitespace'
  322. Replace whitespace with underscores. Set the variable
  323. `mm-file-name-replace-whitespace' to any other string if you
  324. do not like underscores.
  325. The standard Emacs functions `capitalize', `downcase', `upcase'
  326. and `upcase-initials' might also prove useful.
  327. `mm-path-name-rewrite-functions'
  328. List of functions used for rewriting the full file names of MIME
  329. parts. This is used when viewing parts externally, and is meant
  330. for transforming the absolute name so that non-compliant programs
  331. can find the file where it's saved.
  332. 
  333. File: emacs-mime, Node: New Viewers, Prev: Files and Directories, Up: Decoding and Viewing
  334. 1.7 New Viewers
  335. ===============
  336. Here's an example viewer for displaying `text/enriched' inline:
  337. (defun mm-display-enriched-inline (handle)
  338. (let (text)
  339. (with-temp-buffer
  340. (mm-insert-part handle)
  341. (save-window-excursion
  342. (enriched-decode (point-min) (point-max))
  343. (setq text (buffer-string))))
  344. (mm-insert-inline handle text)))
  345. We see that the function takes a MIME handle as its parameter. It
  346. then goes to a temporary buffer, inserts the text of the part, does some
  347. work on the text, stores the result, goes back to the buffer it was
  348. called from and inserts the result.
  349. The two important helper functions here are `mm-insert-part' and
  350. `mm-insert-inline'. The first function inserts the text of the handle
  351. in the current buffer. It handles charset and/or content transfer
  352. decoding. The second function just inserts whatever text you tell it
  353. to insert, but it also sets things up so that the text can be
  354. "undisplayed" in a convenient manner.
  355. 
  356. File: emacs-mime, Node: Composing, Next: Interface Functions, Prev: Decoding and Viewing, Up: Top
  357. 2 Composing
  358. ***********
  359. Creating a MIME message is boring and non-trivial. Therefore, a
  360. library called `mml' has been defined that parses a language called MML
  361. (MIME Meta Language) and generates MIME messages.
  362. The main interface function is `mml-generate-mime'. It will examine
  363. the contents of the current (narrowed-to) buffer and return a string
  364. containing the MIME message.
  365. * Menu:
  366. * Simple MML Example:: An example MML document.
  367. * MML Definition:: All valid MML elements.
  368. * Advanced MML Example:: Another example MML document.
  369. * Encoding Customization:: Variables that affect encoding.
  370. * Charset Translation:: How charsets are mapped from MULE to MIME.
  371. * Conversion:: Going from MIME to MML and vice versa.
  372. * Flowed text:: Soft and hard newlines.
  373. 
  374. File: emacs-mime, Node: Simple MML Example, Next: MML Definition, Up: Composing
  375. 2.1 Simple MML Example
  376. ======================
  377. Here's a simple `multipart/alternative':
  378. <#multipart type=alternative>
  379. This is a plain text part.
  380. <#part type=text/enriched>
  381. <center>This is a centered enriched part</center>
  382. <#/multipart>
  383. After running this through `mml-generate-mime', we get this:
  384. Content-Type: multipart/alternative; boundary="=-=-="
  385. --=-=-=
  386. This is a plain text part.
  387. --=-=-=
  388. Content-Type: text/enriched
  389. <center>This is a centered enriched part</center>
  390. --=-=-=--
  391. 
  392. File: emacs-mime, Node: MML Definition, Next: Advanced MML Example, Prev: Simple MML Example, Up: Composing
  393. 2.2 MML Definition
  394. ==================
  395. The MML language is very simple. It looks a bit like an SGML
  396. application, but it's not.
  397. The main concept of MML is the "part". Each part can be of a
  398. different type or use a different charset. The way to delineate a part
  399. is with a `<#part ...>' tag. Multipart parts can be introduced with
  400. the `<#multipart ...>' tag. Parts are ended by the `<#/part>' or
  401. `<#/multipart>' tags. Parts started with the `<#part ...>' tags are
  402. also closed by the next open tag.
  403. There's also the `<#external ...>' tag. These introduce
  404. `external/message-body' parts.
  405. Each tag can contain zero or more parameters on the form
  406. `parameter=value'. The values may be enclosed in quotation marks, but
  407. that's not necessary unless the value contains white space. So
  408. `filename=/home/user/#hello$^yes' is perfectly valid.
  409. The following parameters have meaning in MML; parameters that have no
  410. meaning are ignored. The MML parameter names are the same as the MIME
  411. parameter names; the things in the parentheses say which header it will
  412. be used in.
  413. `type'
  414. The MIME type of the part (`Content-Type').
  415. `filename'
  416. Use the contents of the file in the body of the part
  417. (`Content-Disposition').
  418. `charset'
  419. The contents of the body of the part are to be encoded in the
  420. character set specified (`Content-Type'). *Note Charset
  421. Translation::.
  422. `name'
  423. Might be used to suggest a file name if the part is to be saved to
  424. a file (`Content-Type').
  425. `disposition'
  426. Valid values are `inline' and `attachment' (`Content-Disposition').
  427. `encoding'
  428. Valid values are `7bit', `8bit', `quoted-printable' and `base64'
  429. (`Content-Transfer-Encoding'). *Note Charset Translation::.
  430. `description'
  431. A description of the part (`Content-Description').
  432. `creation-date'
  433. RFC822 date when the part was created (`Content-Disposition').
  434. `modification-date'
  435. RFC822 date when the part was modified (`Content-Disposition').
  436. `read-date'
  437. RFC822 date when the part was read (`Content-Disposition').
  438. `recipients'
  439. Who to encrypt/sign the part to. This field is used to override
  440. any auto-detection based on the To/CC headers.
  441. `sender'
  442. Identity used to sign the part. This field is used to override the
  443. default key used.
  444. `size'
  445. The size (in octets) of the part (`Content-Disposition').
  446. `sign'
  447. What technology to sign this MML part with (`smime', `pgp' or
  448. `pgpmime')
  449. `encrypt'
  450. What technology to encrypt this MML part with (`smime', `pgp' or
  451. `pgpmime')
  452. Parameters for `text/plain':
  453. `format'
  454. Formatting parameter for the text, valid values include `fixed'
  455. (the default) and `flowed'. Normally you do not specify this
  456. manually, since it requires the textual body to be formatted in a
  457. special way described in RFC 2646. *Note Flowed text::.
  458. Parameters for `application/octet-stream':
  459. `type'
  460. Type of the part; informal--meant for human readers
  461. (`Content-Type').
  462. Parameters for `message/external-body':
  463. `access-type'
  464. A word indicating the supported access mechanism by which the file
  465. may be obtained. Values include `ftp', `anon-ftp', `tftp',
  466. `localfile', and `mailserver'. (`Content-Type'.)
  467. `expiration'
  468. The RFC822 date after which the file may no longer be fetched.
  469. (`Content-Type'.)
  470. `size'
  471. The size (in octets) of the file. (`Content-Type'.)
  472. `permission'
  473. Valid values are `read' and `read-write' (`Content-Type').
  474. Parameters for `sign=smime':
  475. `keyfile'
  476. File containing key and certificate for signer.
  477. Parameters for `encrypt=smime':
  478. `certfile'
  479. File containing certificate for recipient.
  480. 
  481. File: emacs-mime, Node: Advanced MML Example, Next: Encoding Customization, Prev: MML Definition, Up: Composing
  482. 2.3 Advanced MML Example
  483. ========================
  484. Here's a complex multipart message. It's a `multipart/mixed' that
  485. contains many parts, one of which is a `multipart/alternative'.
  486. <#multipart type=mixed>
  487. <#part type=image/jpeg filename=~/rms.jpg disposition=inline>
  488. <#multipart type=alternative>
  489. This is a plain text part.
  490. <#part type=text/enriched name=enriched.txt>
  491. <center>This is a centered enriched part</center>
  492. <#/multipart>
  493. This is a new plain text part.
  494. <#part disposition=attachment>
  495. This plain text part is an attachment.
  496. <#/multipart>
  497. And this is the resulting MIME message:
  498. Content-Type: multipart/mixed; boundary="=-=-="
  499. --=-=-=
  500. --=-=-=
  501. Content-Type: image/jpeg;
  502. filename="~/rms.jpg"
  503. Content-Disposition: inline;
  504. filename="~/rms.jpg"
  505. Content-Transfer-Encoding: base64
  506. /9j/4AAQSkZJRgABAQAAAQABAAD/2wBDAAgGBgcGBQgHBwcJCQgKDBQNDAsLDBkSEw8UHRof
  507. Hh0aHBwgJC4nICIsIxwcKDcpLDAxNDQ0Hyc5PTgyPC4zNDL/wAALCAAwADABAREA/8QAHwAA
  508. AQUBAQEBAQEAAAAAAAAAAAECAwQFBgcICQoL/8QAtRAAAgEDAwIEAwUFBAQAAAF9AQIDAAQR
  509. BRIhMUEGE1FhByJxFDKBkaEII0KxwRVS0fAkM2JyggkKFhcYGRolJicoKSo0NTY3ODk6Q0RF
  510. RkdISUpTVFVWV1hZWmNkZWZnaGlqc3R1dnd4eXqDhIWGh4iJipKTlJWWl5iZmqKjpKWmp6ip
  511. qrKztLW2t7i5usLDxMXGx8jJytLT1NXW19jZ2uHi4+Tl5ufo6erx8vP09fb3+Pn6/9oACAEB
  512. AAA/AO/rifFHjldNuGsrDa0qcSSHkA+gHrXKw+LtWLrMb+RgTyhbr+HSug07xNqV9fQtZrNI
  513. AyiaE/NuBPOOOP0rvRNE880KOC8TbXXGCv1FPqjrF4LDR7u5L7SkTFT/ALWOP1xXgTuXfc7E
  514. sx6nua6rwp4IvvEM8chCxWxOdzn7wz6V9AaB4S07w9p5itow0rDLSY5Pt9K43xO66P4xs71m
  515. 2QXiGCbA4yOVJ9+1aYORkdK434lyNH4ahCnG66VT9Nj15JFbPdX0MS43M4VQf5/yr2vSpLnw
  516. 5ZW8dlCZ8KFXjOPX0/mK6rSPEGt3Angu44fNEReHYNvIH3TzXDeKNO8RX+kSX2ouZkicTIOc
  517. L+g7E810ulFjpVtv3bwgB3HJyK5L4quY/C9sVxk3ij/xx6850u7t1mtp/wDlpEw3An3Jr3Dw
  518. 34gsbWza4nBlhC5LDsaW6+IFgupQyCF3iHH7gA7c9R9ay7zx6t7aX9jHC4smhfBkGCvHGfrm
  519. tLQ7hbnRrV1GPkAP1x1/Hr+Ncr8Vzjwrbf8AX6v/AKA9eQRyYlQk8Yx9K6XTNbkgia2ciSIn
  520. 7p5Ga9Atte0LTLKO6it4i7dVRFJDcZ4PvXN+JvEMF9bILVGXJLSZ4zkjivRPDaeX4b08HOTC
  521. pOffmua+KkbS+GLVUGT9tT/0B68eeIpIFYjB70+OOVXyoOM9+M1eaWeCLzHPyHGO/NVWvJJm
  522. jQ8KGH1NfQWhXSXmh2c8eArRLwO3HSv/2Q==
  523. --=-=-=
  524. Content-Type: multipart/alternative; boundary="==-=-="
  525. --==-=-=
  526. This is a plain text part.
  527. --==-=-=
  528. Content-Type: text/enriched;
  529. name="enriched.txt"
  530. <center>This is a centered enriched part</center>
  531. --==-=-=--
  532. --=-=-=
  533. This is a new plain text part.
  534. --=-=-=
  535. Content-Disposition: attachment
  536. This plain text part is an attachment.
  537. --=-=-=--
  538. 
  539. File: emacs-mime, Node: Encoding Customization, Next: Charset Translation, Prev: Advanced MML Example, Up: Composing
  540. 2.4 Encoding Customization
  541. ==========================
  542. `mm-body-charset-encoding-alist'
  543. Mapping from MIME charset to encoding to use. This variable is
  544. usually used except, e.g., when other requirements force a specific
  545. encoding (digitally signed messages require 7bit encodings). The
  546. default is
  547. ((iso-2022-jp . 7bit)
  548. (iso-2022-jp-2 . 7bit)
  549. (utf-16 . base64)
  550. (utf-16be . base64)
  551. (utf-16le . base64))
  552. As an example, if you do not want to have ISO-8859-1 characters
  553. quoted-printable encoded, you may add `(iso-8859-1 . 8bit)' to
  554. this variable. You can override this setting on a per-message
  555. basis by using the `encoding' MML tag (*note MML Definition::).
  556. `mm-coding-system-priorities'
  557. Prioritize coding systems to use for outgoing messages. The
  558. default is `nil', which means to use the defaults in Emacs, but is
  559. `(iso-8859-1 iso-2022-jp iso-2022-jp-2 shift_jis utf-8)' when
  560. running Emacs in the Japanese language environment. It is a list
  561. of coding system symbols (aliases of coding systems are also
  562. allowed, use `M-x describe-coding-system' to make sure you are
  563. specifying correct coding system names). For example, if you have
  564. configured Emacs to prefer UTF-8, but wish that outgoing messages
  565. should be sent in ISO-8859-1 if possible, you can set this
  566. variable to `(iso-8859-1)'. You can override this setting on a
  567. per-message basis by using the `charset' MML tag (*note MML
  568. Definition::).
  569. As different hierarchies prefer different charsets, you may want
  570. to set `mm-coding-system-priorities' according to the hierarchy in
  571. Gnus. Here's an example:
  572. (add-to-list 'gnus-newsgroup-variables 'mm-coding-system-priorities)
  573. (setq gnus-parameters
  574. (nconc
  575. ;; Some charsets are just examples!
  576. '(("^cn\\." ;; Chinese
  577. (mm-coding-system-priorities
  578. '(iso-8859-1 cn-big5 chinese-iso-7bit utf-8)))
  579. ("^cz\\.\\|^pl\\." ;; Central and Eastern European
  580. (mm-coding-system-priorities '(iso-8859-2 utf-8)))
  581. ("^de\\." ;; German language
  582. (mm-coding-system-priorities '(iso-8859-1 iso-8859-15 utf-8)))
  583. ("^fr\\." ;; French
  584. (mm-coding-system-priorities '(iso-8859-15 iso-8859-1 utf-8)))
  585. ("^fj\\." ;; Japanese
  586. (mm-coding-system-priorities
  587. '(iso-8859-1 iso-2022-jp iso-2022-jp-2 shift_jis utf-8)))
  588. ("^ru\\." ;; Cyrillic
  589. (mm-coding-system-priorities
  590. '(koi8-r iso-8859-5 iso-8859-1 utf-8))))
  591. gnus-parameters))
  592. `mm-content-transfer-encoding-defaults'
  593. Mapping from MIME types to encoding to use. This variable is
  594. usually used except, e.g., when other requirements force a safer
  595. encoding (digitally signed messages require 7bit encoding).
  596. Besides the normal MIME encodings, `qp-or-base64' may be used to
  597. indicate that for each case the most efficient of quoted-printable
  598. and base64 should be used.
  599. `qp-or-base64' has another effect. It will fold long lines so that
  600. MIME parts may not be broken by MTA. So do `quoted-printable' and
  601. `base64'.
  602. Note that it affects body encoding only when a part is a raw
  603. forwarded message (which will be made by
  604. `gnus-summary-mail-forward' with the arg 2 for example) or is
  605. neither the `text/*' type nor the `message/*' type. Even though
  606. in those cases, you can override this setting on a per-message
  607. basis by using the `encoding' MML tag (*note MML Definition::).
  608. `mm-use-ultra-safe-encoding'
  609. When this is non-`nil', it means that textual parts are encoded as
  610. quoted-printable if they contain lines longer than 76 characters or
  611. starting with "From " in the body. Non-7bit encodings (8bit,
  612. binary) are generally disallowed. This reduce the probability
  613. that a non-8bit clean MTA or MDA changes the message. This should
  614. never be set directly, but bound by other functions when necessary
  615. (e.g., when encoding messages that are to be digitally signed).
  616. 
  617. File: emacs-mime, Node: Charset Translation, Next: Conversion, Prev: Encoding Customization, Up: Composing
  618. 2.5 Charset Translation
  619. =======================
  620. During translation from MML to MIME, for each MIME part which has been
  621. composed inside Emacs, an appropriate charset has to be chosen.
  622. If you are running a non-MULE Emacs, this process is simple: If the
  623. part contains any non-ASCII (8-bit) characters, the MIME charset given
  624. by `mail-parse-charset' (a symbol) is used. (Never set this variable
  625. directly, though. If you want to change the default charset, please
  626. consult the documentation of the package which you use to process MIME
  627. messages. *Note Various Message Variables: (message)Various Message
  628. Variables, for example.) If there are only ASCII characters, the MIME
  629. charset US-ASCII is used, of course.
  630. Things are slightly more complicated when running Emacs with MULE
  631. support. In this case, a list of the MULE charsets used in the part is
  632. obtained, and the MULE charsets are translated to MIME charsets by
  633. consulting the table provided by Emacs itself or the variable
  634. `mm-mime-mule-charset-alist' for XEmacs. If this results in a single
  635. MIME charset, this is used to encode the part. But if the resulting
  636. list of MIME charsets contains more than one element, two things can
  637. happen: If it is possible to encode the part via UTF-8, this charset is
  638. used. (For this, Emacs must support the `utf-8' coding system, and the
  639. part must consist entirely of characters which have Unicode
  640. counterparts.) If UTF-8 is not available for some reason, the part is
  641. split into several ones, so that each one can be encoded with a single
  642. MIME charset. The part can only be split at line boundaries,
  643. though--if more than one MIME charset is required to encode a single
  644. line, it is not possible to encode the part.
  645. When running Emacs with MULE support, the preferences for which
  646. coding system to use is inherited from Emacs itself. This means that
  647. if Emacs is set up to prefer UTF-8, it will be used when encoding
  648. messages. You can modify this by altering the
  649. `mm-coding-system-priorities' variable though (*note Encoding
  650. Customization::).
  651. The charset to be used can be overridden by setting the `charset'
  652. MML tag (*note MML Definition::) when composing the message.
  653. The encoding of characters (quoted-printable, 8bit etc) is orthogonal
  654. to the discussion here, and is controlled by the variables
  655. `mm-body-charset-encoding-alist' and
  656. `mm-content-transfer-encoding-defaults' (*note Encoding
  657. Customization::).
  658. 
  659. File: emacs-mime, Node: Conversion, Next: Flowed text, Prev: Charset Translation, Up: Composing
  660. 2.6 Conversion
  661. ==============
  662. A (multipart) MIME message can be converted to MML with the
  663. `mime-to-mml' function. It works on the message in the current buffer,
  664. and substitutes MML markup for MIME boundaries. Non-textual parts do
  665. not have their contents in the buffer, but instead have the contents in
  666. separate buffers that are referred to from the MML tags.
  667. An MML message can be converted back to MIME by the `mml-to-mime'
  668. function.
  669. These functions are in certain senses "lossy"--you will not get back
  670. an identical message if you run `mime-to-mml' and then `mml-to-mime'.
  671. Not only will trivial things like the order of the headers differ, but
  672. the contents of the headers may also be different. For instance, the
  673. original message may use base64 encoding on text, while `mml-to-mime'
  674. may decide to use quoted-printable encoding, and so on.
  675. In essence, however, these two functions should be the inverse of
  676. each other. The resulting contents of the message should remain
  677. equivalent, if not identical.
  678. 
  679. File: emacs-mime, Node: Flowed text, Prev: Conversion, Up: Composing
  680. 2.7 Flowed text
  681. ===============
  682. The Emacs MIME library will respect the `use-hard-newlines' variable
  683. (*note Hard and Soft Newlines: (emacs)Hard and Soft Newlines.) when
  684. encoding a message, and the "format=flowed" Content-Type parameter when
  685. decoding a message.
  686. On encoding text, regardless of `use-hard-newlines', lines
  687. terminated by soft newline characters are filled together and wrapped
  688. after the column decided by `fill-flowed-encode-column'. Quotation
  689. marks (matching `^>* ?') are respected. The variable controls how the
  690. text will look in a client that does not support flowed text, the
  691. default is to wrap after 66 characters. If hard newline characters are
  692. not present in the buffer, no flow encoding occurs.
  693. You can customize the value of the `mml-enable-flowed' variable to
  694. enable or disable the flowed encoding usage when newline characters are
  695. present in the buffer.
  696. On decoding flowed text, lines with soft newline characters are
  697. filled together and wrapped after the column decided by
  698. `fill-flowed-display-column'. The default is to wrap after
  699. `fill-column'.
  700. `mm-fill-flowed'
  701. If non-`nil' a format=flowed article will be displayed flowed.
  702. 
  703. File: emacs-mime, Node: Interface Functions, Next: Basic Functions, Prev: Composing, Up: Top
  704. 3 Interface Functions
  705. *********************
  706. The `mail-parse' library is an abstraction over the actual low-level
  707. libraries that are described in the next chapter.
  708. Standards change, and so programs have to change to fit in the new
  709. mold. For instance, RFC2045 describes a syntax for the `Content-Type'
  710. header that only allows ASCII characters in the parameter list.
  711. RFC2231 expands on RFC2045 syntax to provide a scheme for continuation
  712. headers and non-ASCII characters.
  713. The traditional way to deal with this is just to update the library
  714. functions to parse the new syntax. However, this is sometimes the wrong
  715. thing to do. In some instances it may be vital to be able to understand
  716. both the old syntax as well as the new syntax, and if there is only one
  717. library, one must choose between the old version of the library and the
  718. new version of the library.
  719. The Emacs MIME library takes a different tack. It defines a series
  720. of low-level libraries (`rfc2047.el', `rfc2231.el' and so on) that
  721. parses strictly according to the corresponding standard. However,
  722. normal programs would not use the functions provided by these libraries
  723. directly, but instead use the functions provided by the `mail-parse'
  724. library. The functions in this library are just aliases to the
  725. corresponding functions in the latest low-level libraries. Using this
  726. scheme, programs get a consistent interface they can use, and library
  727. developers are free to create write code that handles new standards.
  728. The following functions are defined by this library:
  729. `mail-header-parse-content-type'
  730. Parse a `Content-Type' header and return a list on the following
  731. format:
  732. ("type/subtype"
  733. (attribute1 . value1)
  734. (attribute2 . value2)
  735. ...)
  736. Here's an example:
  737. (mail-header-parse-content-type
  738. "image/gif; name=\"b980912.gif\"")
  739. => ("image/gif" (name . "b980912.gif"))
  740. `mail-header-parse-content-disposition'
  741. Parse a `Content-Disposition' header and return a list on the same
  742. format as the function above.
  743. `mail-content-type-get'
  744. Takes two parameters--a list on the format above, and an attribute.
  745. Returns the value of the attribute.
  746. (mail-content-type-get
  747. '("image/gif" (name . "b980912.gif")) 'name)
  748. => "b980912.gif"
  749. `mail-header-encode-parameter'
  750. Takes a parameter string and returns an encoded version of the
  751. string. This is used for parameters in headers like
  752. `Content-Type' and `Content-Disposition'.
  753. `mail-header-remove-comments'
  754. Return a comment-free version of a header.
  755. (mail-header-remove-comments
  756. "Gnus/5.070027 (Pterodactyl Gnus v0.27) (Finnish Landrace)")
  757. => "Gnus/5.070027 "
  758. `mail-header-remove-whitespace'
  759. Remove linear white space from a header. Space inside quoted
  760. strings and comments is preserved.
  761. (mail-header-remove-whitespace
  762. "image/gif; name=\"Name with spaces\"")
  763. => "image/gif;name=\"Name with spaces\""
  764. `mail-header-get-comment'
  765. Return the last comment in a header.
  766. (mail-header-get-comment
  767. "Gnus/5.070027 (Pterodactyl Gnus v0.27) (Finnish Landrace)")
  768. => "Finnish Landrace"
  769. `mail-header-parse-address'
  770. Parse an address and return a list containing the mailbox and the
  771. plaintext name.
  772. (mail-header-parse-address
  773. "Hrvoje Niksic <hniksic@srce.hr>")
  774. => ("hniksic@srce.hr" . "Hrvoje Niksic")
  775. `mail-header-parse-addresses'
  776. Parse a string with list of addresses and return a list of
  777. elements like the one described above.
  778. (mail-header-parse-addresses
  779. "Hrvoje Niksic <hniksic@srce.hr>, Steinar Bang <sb@metis.no>")
  780. => (("hniksic@srce.hr" . "Hrvoje Niksic")
  781. ("sb@metis.no" . "Steinar Bang"))
  782. `mail-header-parse-date'
  783. Parse a date string and return an Emacs time structure.
  784. `mail-narrow-to-head'
  785. Narrow the buffer to the header section of the buffer. Point is
  786. placed at the beginning of the narrowed buffer.
  787. `mail-header-narrow-to-field'
  788. Narrow the buffer to the header under point. Understands
  789. continuation headers.
  790. `mail-header-fold-field'
  791. Fold the header under point.
  792. `mail-header-unfold-field'
  793. Unfold the header under point.
  794. `mail-header-field-value'
  795. Return the value of the field under point.
  796. `mail-encode-encoded-word-region'
  797. Encode the non-ASCII words in the region. For instance, `Naïve'
  798. is encoded as `=?iso-8859-1?q?Na=EFve?='.
  799. `mail-encode-encoded-word-buffer'
  800. Encode the non-ASCII words in the current buffer. This function is
  801. meant to be called narrowed to the headers of a message.
  802. `mail-encode-encoded-word-string'
  803. Encode the words that need encoding in a string, and return the
  804. result.
  805. (mail-encode-encoded-word-string
  806. "This is naïve, baby")
  807. => "This is =?iso-8859-1?q?na=EFve,?= baby"
  808. `mail-decode-encoded-word-region'
  809. Decode the encoded words in the region.
  810. `mail-decode-encoded-word-string'
  811. Decode the encoded words in the string and return the result.
  812. (mail-decode-encoded-word-string
  813. "This is =?iso-8859-1?q?na=EFve,?= baby")
  814. => "This is naïve, baby"
  815. Currently, `mail-parse' is an abstraction over `ietf-drums',
  816. `rfc2047', `rfc2045' and `rfc2231'. These are documented in the
  817. subsequent sections.
  818. 
  819. File: emacs-mime, Node: Basic Functions, Next: Standards, Prev: Interface Functions, Up: Top
  820. 4 Basic Functions
  821. *****************
  822. This chapter describes the basic, ground-level functions for parsing and
  823. handling. Covered here is parsing `From' lines, removing comments from
  824. header lines, decoding encoded words, parsing date headers and so on.
  825. High-level functionality is dealt with in the first chapter (*note
  826. Decoding and Viewing::).
  827. * Menu:
  828. * rfc2045:: Encoding `Content-Type' headers.
  829. * rfc2231:: Parsing `Content-Type' headers.
  830. * ietf-drums:: Handling mail headers defined by RFC822bis.
  831. * rfc2047:: En/decoding encoded words in headers.
  832. * time-date:: Functions for parsing dates and manipulating time.
  833. * qp:: Quoted-Printable en/decoding.
  834. * base64:: Base64 en/decoding.
  835. * binhex:: Binhex decoding.
  836. * uudecode:: Uuencode decoding.
  837. * yenc:: Yenc decoding.
  838. * rfc1843:: Decoding HZ-encoded text.
  839. * mailcap:: How parts are displayed is specified by the `.mailcap' file
  840. 
  841. File: emacs-mime, Node: rfc2045, Next: rfc2231, Up: Basic Functions
  842. 4.1 rfc2045
  843. ===========
  844. RFC2045 is the "main" MIME document, and as such, one would imagine
  845. that there would be a lot to implement. But there isn't, since most of
  846. the implementation details are delegated to the subsequent RFCs.
  847. So `rfc2045.el' has only a single function:
  848. `rfc2045-encode-string'
  849. Takes a parameter and a value and returns a `PARAM=VALUE' string.
  850. VALUE will be quoted if there are non-safe characters in it.
  851. 
  852. File: emacs-mime, Node: rfc2231, Next: ietf-drums, Prev: rfc2045, Up: Basic Functions
  853. 4.2 rfc2231
  854. ===========
  855. RFC2231 defines a syntax for the `Content-Type' and
  856. `Content-Disposition' headers. Its snappy name is "MIME Parameter
  857. Value and Encoded Word Extensions: Character Sets, Languages, and
  858. Continuations".
  859. In short, these headers look something like this:
  860. Content-Type: application/x-stuff;
  861. title*0*=us-ascii'en'This%20is%20even%20more%20;
  862. title*1*=%2A%2A%2Afun%2A%2A%2A%20;
  863. title*2="isn't it!"
  864. They usually aren't this bad, though.
  865. The following functions are defined by this library:
  866. `rfc2231-parse-string'
  867. Parse a `Content-Type' header and return a list describing its
  868. elements.
  869. (rfc2231-parse-string
  870. "application/x-stuff;
  871. title*0*=us-ascii'en'This%20is%20even%20more%20;
  872. title*1*=%2A%2A%2Afun%2A%2A%2A%20;
  873. title*2=\"isn't it!\"")
  874. => ("application/x-stuff"
  875. (title . "This is even more ***fun*** isn't it!"))
  876. `rfc2231-get-value'
  877. Takes one of the lists on the format above and returns the value
  878. of the specified attribute.
  879. `rfc2231-encode-string'
  880. Encode a parameter in headers likes `Content-Type' and
  881. `Content-Disposition'.
  882. 
  883. File: emacs-mime, Node: ietf-drums, Next: rfc2047, Prev: rfc2231, Up: Basic Functions
  884. 4.3 ietf-drums
  885. ==============
  886. "drums" is an IETF working group that is working on the replacement for
  887. RFC822.
  888. The functions provided by this library include:
  889. `ietf-drums-remove-comments'
  890. Remove the comments from the argument and return the results.
  891. `ietf-drums-remove-whitespace'
  892. Remove linear white space from the string and return the results.
  893. Spaces inside quoted strings and comments are left untouched.
  894. `ietf-drums-get-comment'
  895. Return the last most comment from the string.
  896. `ietf-drums-parse-address'
  897. Parse an address string and return a list that contains the
  898. mailbox and the plain text name.
  899. `ietf-drums-parse-addresses'
  900. Parse a string that contains any number of comma-separated
  901. addresses and return a list that contains mailbox/plain text pairs.
  902. `ietf-drums-parse-date'
  903. Parse a date string and return an Emacs time structure.
  904. `ietf-drums-narrow-to-header'
  905. Narrow the buffer to the header section of the current buffer.
  906. 
  907. File: emacs-mime, Node: rfc2047, Next: time-date, Prev: ietf-drums, Up: Basic Functions
  908. 4.4 rfc2047
  909. ===========
  910. RFC2047 (Message Header Extensions for Non-ASCII Text) specifies how
  911. non-ASCII text in headers are to be encoded. This is actually rather
  912. complicated, so a number of variables are necessary to tweak what this
  913. library does.
  914. The following variables are tweakable:
  915. `rfc2047-header-encoding-alist'
  916. This is an alist of header / encoding-type pairs. Its main
  917. purpose is to prevent encoding of certain headers.
  918. The keys can either be header regexps, or `t'.
  919. The values can be `nil', in which case the header(s) in question
  920. won't be encoded, `mime', which means that they will be encoded, or
  921. `address-mime', which means the header(s) will be encoded carefully
  922. assuming they contain addresses.
  923. `rfc2047-charset-encoding-alist'
  924. RFC2047 specifies two forms of encoding--`Q' (a
  925. Quoted-Printable-like encoding) and `B' (base64). This alist
  926. specifies which charset should use which encoding.
  927. `rfc2047-encode-function-alist'
  928. This is an alist of encoding / function pairs. The encodings are
  929. `Q', `B' and `nil'.
  930. `rfc2047-encoded-word-regexp'
  931. When decoding words, this library looks for matches to this regexp.
  932. `rfc2047-encoded-word-regexp-loose'
  933. This is a version from which the regexp for the Q encoding pattern
  934. of `rfc2047-encoded-word-regexp' is made loose.
  935. `rfc2047-encode-encoded-words'
  936. The boolean variable specifies whether encoded words (e.g.
  937. `=?us-ascii?q?hello?=') should be encoded again.
  938. `rfc2047-encoded-word-regexp' is used to look for such words.
  939. `rfc2047-allow-irregular-q-encoded-words'
  940. The boolean variable specifies whether irregular Q encoded words
  941. (e.g. `=?us-ascii?q?hello??=') should be decoded. If it is
  942. non-`nil', `rfc2047-encoded-word-regexp-loose' is used instead of
  943. `rfc2047-encoded-word-regexp' to look for encoded words.
  944. Those were the variables, and these are this functions:
  945. `rfc2047-narrow-to-field'
  946. Narrow the buffer to the header on the current line.
  947. `rfc2047-encode-message-header'
  948. Should be called narrowed to the header of a message. Encodes
  949. according to `rfc2047-header-encoding-alist'.
  950. `rfc2047-encode-region'
  951. Encodes all encodable words in the region specified.
  952. `rfc2047-encode-string'
  953. Encode a string and return the results.
  954. `rfc2047-decode-region'
  955. Decode the encoded words in the region.
  956. `rfc2047-decode-string'
  957. Decode a string and return the results.
  958. `rfc2047-encode-parameter'
  959. Encode a parameter in the RFC2047-like style. This is a
  960. substitution for the `rfc2231-encode-string' function, that is the
  961. standard but many mailers don't support it. *Note rfc2231::.
  962. 
  963. File: emacs-mime, Node: time-date, Next: qp, Prev: rfc2047, Up: Basic Functions
  964. 4.5 time-date
  965. =============
  966. While not really a part of the MIME library, it is convenient to
  967. document this library here. It deals with parsing `Date' headers and
  968. manipulating time. (Not by using tesseracts, though, I'm sorry to say.)
  969. These functions convert between five formats: A date string, an Emacs
  970. time structure, a decoded time list, a second number, and a day number.
  971. Here's a bunch of time/date/second/day examples:
  972. (parse-time-string "Sat Sep 12 12:21:54 1998 +0200")
  973. => (54 21 12 12 9 1998 6 nil 7200)
  974. (date-to-time "Sat Sep 12 12:21:54 1998 +0200")
  975. => (13818 19266)
  976. (time-to-seconds '(13818 19266))
  977. => 905595714.0
  978. (seconds-to-time 905595714.0)
  979. => (13818 19266 0)
  980. (time-to-days '(13818 19266))
  981. => 729644
  982. (days-to-time 729644)
  983. => (961933 65536)
  984. (time-since '(13818 19266))
  985. => (0 430)
  986. (time-less-p '(13818 19266) '(13818 19145))
  987. => nil
  988. (subtract-time '(13818 19266) '(13818 19145))
  989. => (0 121)
  990. (days-between "Sat Sep 12 12:21:54 1998 +0200"
  991. "Sat Sep 07 12:21:54 1998 +0200")
  992. => 5
  993. (date-leap-year-p 2000)
  994. => t
  995. (time-to-day-in-year '(13818 19266))
  996. => 255
  997. (time-to-number-of-days
  998. (time-since
  999. (date-to-time "Mon, 01 Jan 2001 02:22:26 GMT")))
  1000. => 4.146122685185185
  1001. And finally, we have `safe-date-to-time', which does the same as
  1002. `date-to-time', but returns a zero time if the date is syntactically
  1003. malformed.
  1004. The five data representations used are the following:
  1005. DATE
  1006. An RFC822 (or similar) date string. For instance: `"Sat Sep 12
  1007. 12:21:54 1998 +0200"'.
  1008. TIME
  1009. An internal Emacs time. For instance: `(13818 26466)'.
  1010. SECONDS
  1011. A floating point representation of the internal Emacs time. For
  1012. instance: `905595714.0'.
  1013. DAYS
  1014. An integer number representing the number of days since 00000101.
  1015. For instance: `729644'.
  1016. DECODED TIME
  1017. A list of decoded time. For instance: `(54 21 12 12 9 1998 6 t
  1018. 7200)'.
  1019. All the examples above represent the same moment.
  1020. These are the functions available:
  1021. `date-to-time'
  1022. Take a date and return a time.
  1023. `time-to-seconds'
  1024. Take a time and return seconds. Note that Emacs has a built-in
  1025. function, `float-time', that does this.
  1026. `seconds-to-time'
  1027. Take seconds and return a time.
  1028. `time-to-days'
  1029. Take a time and return days.
  1030. `days-to-time'
  1031. Take days and return a time.
  1032. `date-to-day'
  1033. Take a date and return days.
  1034. `time-to-number-of-days'
  1035. Take a time and return the number of days that represents.
  1036. `safe-date-to-time'
  1037. Take a date and return a time. If the date is not syntactically
  1038. valid, return a "zero" time.
  1039. `time-less-p'
  1040. Take two times and say whether the first time is less (i. e.,
  1041. earlier) than the second time.
  1042. `time-since'
  1043. Take a time and return a time saying how long it was since that
  1044. time.
  1045. `subtract-time'
  1046. Take two times and subtract the second from the first. I. e.,
  1047. return the time between the two times.
  1048. `days-between'
  1049. Take two days and return the number of days between those two days.
  1050. `date-leap-year-p'
  1051. Take a year number and say whether it's a leap year.
  1052. `time-to-day-in-year'
  1053. Take a time and return the day number within the year that the
  1054. time is in.
  1055. 
  1056. File: emacs-mime, Node: qp, Next: base64, Prev: time-date, Up: Basic Functions
  1057. 4.6 qp
  1058. ======
  1059. This library deals with decoding and encoding Quoted-Printable text.
  1060. Very briefly explained, qp encoding means translating all 8-bit
  1061. characters (and lots of control characters) into things that look like
  1062. `=EF'; that is, an equal sign followed by the byte encoded as a hex
  1063. string.
  1064. The following functions are defined by the library:
  1065. `quoted-printable-decode-region'
  1066. QP-decode all the encoded text in the specified region.
  1067. `quoted-printable-decode-string'
  1068. Decode the QP-encoded text in a string and return the results.
  1069. `quoted-printable-encode-region'
  1070. QP-encode all the encodable characters in the specified region.
  1071. The third optional parameter FOLD specifies whether to fold long
  1072. lines. (Long here means 72.)
  1073. `quoted-printable-encode-string'
  1074. QP-encode all the encodable characters in a string and return the
  1075. results.
  1076. 
  1077. File: emacs-mime, Node: base64, Next: binhex, Prev: qp, Up: Basic Functions
  1078. 4.7 base64
  1079. ==========
  1080. Base64 is an encoding that encodes three bytes into four characters,
  1081. thereby increasing the size by about 33%. The alphabet used for
  1082. encoding is very resistant to mangling during transit.
  1083. The following functions are defined by this library:
  1084. `base64-encode-region'
  1085. base64 encode the selected region. Return the length of the
  1086. encoded text. Optional third argument NO-LINE-BREAK means do not
  1087. break long lines into shorter lines.
  1088. `base64-encode-string'
  1089. base64 encode a string and return the result.
  1090. `base64-decode-region'
  1091. base64 decode the selected region. Return the length of the
  1092. decoded text. If the region can't be decoded, return `nil' and
  1093. don't modify the buffer.
  1094. `base64-decode-string'
  1095. base64 decode a string and return the result. If the string can't
  1096. be decoded, `nil' is returned.
  1097. 
  1098. File: emacs-mime, Node: binhex, Next: uudecode, Prev: base64, Up: Basic Functions
  1099. 4.8 binhex
  1100. ==========
  1101. `binhex' is an encoding that originated in Macintosh environments. The
  1102. following function is supplied to deal with these:
  1103. `binhex-decode-region'
  1104. Decode the encoded text in the region. If given a third
  1105. parameter, only decode the `binhex' header and return the filename.
  1106. 
  1107. File: emacs-mime, Node: uudecode, Next: yenc, Prev: binhex, Up: Basic Functions
  1108. 4.9 uudecode
  1109. ============
  1110. `uuencode' is probably still the most popular encoding of binaries used
  1111. on Usenet, although `base64' rules the mail world.
  1112. The following function is supplied by this package:
  1113. `uudecode-decode-region'
  1114. Decode the text in the region.
  1115. 
  1116. File: emacs-mime, Node: yenc, Next: rfc1843, Prev: uudecode, Up: Basic Functions
  1117. 4.10 yenc
  1118. =========
  1119. `yenc' is used for encoding binaries on Usenet. The following function
  1120. is supplied by this package:
  1121. `yenc-decode-region'
  1122. Decode the encoded text in the region.
  1123. 
  1124. File: emacs-mime, Node: rfc1843, Next: mailcap, Prev: yenc, Up: Basic Functions
  1125. 4.11 rfc1843
  1126. ============
  1127. RFC1843 deals with mixing Chinese and ASCII characters in messages. In
  1128. essence, RFC1843 switches between ASCII and Chinese by doing this:
  1129. This sentence is in ASCII.
  1130. The next sentence is in GB.~{<:Ky2;S{#,NpJ)l6HK!#~}Bye.
  1131. Simple enough, and widely used in China.
  1132. The following functions are available to handle this encoding:
  1133. `rfc1843-decode-region'
  1134. Decode HZ-encoded text in the region.
  1135. `rfc1843-decode-string'
  1136. Decode a HZ-encoded string and return the result.
  1137. 
  1138. File: emacs-mime, Node: mailcap, Prev: rfc1843, Up: Basic Functions
  1139. 4.12 mailcap
  1140. ============
  1141. The `~/.mailcap' file is parsed by most MIME-aware message handlers and
  1142. describes how elements are supposed to be displayed. Here's an example
  1143. file:
  1144. image/*; gimp -8 %s
  1145. audio/wav; wavplayer %s
  1146. application/msword; catdoc %s ; copiousoutput ; nametemplate=%s.doc
  1147. This says that all image files should be displayed with `gimp', that
  1148. WAVE audio files should be played by `wavplayer', and that MS-WORD
  1149. files should be inlined by `catdoc'.
  1150. The `mailcap' library parses this file, and provides functions for
  1151. matching types.
  1152. `mailcap-mime-data'
  1153. This variable is an alist of alists containing backup viewing
  1154. rules.
  1155. Interface functions:
  1156. `mailcap-parse-mailcaps'
  1157. Parse the `~/.mailcap' file.
  1158. `mailcap-mime-info'
  1159. Takes a MIME type as its argument and returns the matching viewer.
  1160. 
  1161. File: emacs-mime, Node: Standards, Next: GNU Free Documentation License, Prev: Basic Functions, Up: Top
  1162. 5 Standards
  1163. ***********
  1164. The Emacs MIME library implements handling of various elements
  1165. according to a (somewhat) large number of RFCs, drafts and standards
  1166. documents. This chapter lists the relevant ones. They can all be
  1167. fetched from `http://quimby.gnus.org/notes/'.
  1168. "RFC822"
  1169. "STD11"
  1170. Standard for the Format of ARPA Internet Text Messages.
  1171. "RFC1036"
  1172. Standard for Interchange of USENET Messages
  1173. "RFC2045"
  1174. Format of Internet Message Bodies
  1175. "RFC2046"
  1176. Media Types
  1177. "RFC2047"
  1178. Message Header Extensions for Non-ASCII Text
  1179. "RFC2048"
  1180. Registration Procedures
  1181. "RFC2049"
  1182. Conformance Criteria and Examples
  1183. "RFC2231"
  1184. MIME Parameter Value and Encoded Word Extensions: Character Sets,
  1185. Languages, and Continuations
  1186. "RFC1843"
  1187. HZ - A Data Format for Exchanging Files of Arbitrarily Mixed
  1188. Chinese and ASCII characters
  1189. "draft-ietf-drums-msg-fmt-05.txt"
  1190. Draft for the successor of RFC822
  1191. "RFC2112"
  1192. The MIME Multipart/Related Content-type
  1193. "RFC1892"
  1194. The Multipart/Report Content Type for the Reporting of Mail System
  1195. Administrative Messages
  1196. "RFC2183"
  1197. Communicating Presentation Information in Internet Messages: The
  1198. Content-Disposition Header Field
  1199. "RFC2646"
  1200. Documentation of the text/plain format parameter for flowed text.
  1201. 
  1202. File: emacs-mime, Node: GNU Free Documentation License, Next: Index, Prev: Standards, Up: Top
  1203. 6 GNU Free Documentation License
  1204. ********************************
  1205. Version 1.3, 3 November 2008
  1206. Copyright (C) 2000, 2001, 2002, 2007, 2008, 2009 Free Software Foundation, Inc.
  1207. `http://fsf.org/'
  1208. Everyone is permitted to copy and distribute verbatim copies
  1209. of this license document, but changing it is not allowed.
  1210. 0. PREAMBLE
  1211. The purpose of this License is to make a manual, textbook, or other
  1212. functional and useful document "free" in the sense of freedom: to
  1213. assure everyone the effective freedom to copy and redistribute it,
  1214. with or without modifying it, either commercially or
  1215. noncommercially. Secondarily, this License preserves for the
  1216. author and publisher a way to get credit for their work, while not
  1217. being considered responsible for modifications made by others.
  1218. This License is a kind of "copyleft", which means that derivative
  1219. works of the document must themselves be free in the same sense.
  1220. It complements the GNU General Public License, which is a copyleft
  1221. license designed for free software.
  1222. We have designed this License in order to use it for manuals for
  1223. free software, because free software needs free documentation: a
  1224. free program should come with manuals providing the same freedoms
  1225. that the software does. But this License is not limited to
  1226. software manuals; it can be used for any textual work, regardless
  1227. of subject matter or whether it is published as a printed book.
  1228. We recommend this License principally for works whose purpose is
  1229. instruction or reference.
  1230. 1. APPLICABILITY AND DEFINITIONS
  1231. This License applies to any manual or other work, in any medium,
  1232. that contains a notice placed by the copyright holder saying it
  1233. can be distributed under the terms of this License. Such a notice
  1234. grants a world-wide, royalty-free license, unlimited in duration,
  1235. to use that work under the conditions stated herein. The
  1236. "Document", below, refers to any such manual or work. Any member
  1237. of the public is a licensee, and is addressed as "you". You
  1238. accept the license if you copy, modify or distribute the work in a
  1239. way requiring permission under copyright law.
  1240. A "Modified Version" of the Document means any work containing the
  1241. Document or a portion of it, either copied verbatim, or with
  1242. modifications and/or translated into another language.
  1243. A "Secondary Section" is a named appendix or a front-matter section
  1244. of the Document that deals exclusively with the relationship of the
  1245. publishers or authors of the Document to the Document's overall
  1246. subject (or to related matters) and contains nothing that could
  1247. fall directly within that overall subject. (Thus, if the Document
  1248. is in part a textbook of mathematics, a Secondary Section may not
  1249. explain any mathematics.) The relationship could be a matter of
  1250. historical connection with the subject or with related matters, or
  1251. of legal, commercial, philosophical, ethical or political position
  1252. regarding them.
  1253. The "Invariant Sections" are certain Secondary Sections whose
  1254. titles are designated, as being those of Invariant Sections, in
  1255. the notice that says that the Document is released under this
  1256. License. If a section does not fit the above definition of
  1257. Secondary then it is not allowed to be designated as Invariant.
  1258. The Document may contain zero Invariant Sections. If the Document
  1259. does not identify any Invariant Sections then there are none.
  1260. The "Cover Texts" are certain short passages of text that are
  1261. listed, as Front-Cover Texts or Back-Cover Texts, in the notice
  1262. that says that the Document is released under this License. A
  1263. Front-Cover Text may be at most 5 words, and a Back-Cover Text may
  1264. be at most 25 words.
  1265. A "Transparent" copy of the Document means a machine-readable copy,
  1266. represented in a format whose specification is available to the
  1267. general public, that is suitable for revising the document
  1268. straightforwardly with generic text editors or (for images
  1269. composed of pixels) generic paint programs or (for drawings) some
  1270. widely available drawing editor, and that is suitable for input to
  1271. text formatters or for automatic translation to a variety of
  1272. formats suitable for input to text formatters. A copy made in an
  1273. otherwise Transparent file format whose markup, or absence of
  1274. markup, has been arranged to thwart or discourage subsequent
  1275. modification by readers is not Transparent. An image format is
  1276. not Transparent if used for any substantial amount of text. A
  1277. copy that is not "Transparent" is called "Opaque".
  1278. Examples of suitable formats for Transparent copies include plain
  1279. ASCII without markup, Texinfo input format, LaTeX input format,
  1280. SGML or XML using a publicly available DTD, and
  1281. standard-conforming simple HTML, PostScript or PDF designed for
  1282. human modification. Examples of transparent image formats include
  1283. PNG, XCF and JPG. Opaque formats include proprietary formats that
  1284. can be read and edited only by proprietary word processors, SGML or
  1285. XML for which the DTD and/or processing tools are not generally
  1286. available, and the machine-generated HTML, PostScript or PDF
  1287. produced by some word processors for output purposes only.
  1288. The "Title Page" means, for a printed book, the title page itself,
  1289. plus such following pages as are needed to hold, legibly, the
  1290. material this License requires to appear in the title page. For
  1291. works in formats which do not have any title page as such, "Title
  1292. Page" means the text near the most prominent appearance of the
  1293. work's title, preceding the beginning of the body of the text.
  1294. The "publisher" means any person or entity that distributes copies
  1295. of the Document to the public.
  1296. A section "Entitled XYZ" means a named subunit of the Document
  1297. whose title either is precisely XYZ or contains XYZ in parentheses
  1298. following text that translates XYZ in another language. (Here XYZ
  1299. stands for a specific section name mentioned below, such as
  1300. "Acknowledgements", "Dedications", "Endorsements", or "History".)
  1301. To "Preserve the Title" of such a section when you modify the
  1302. Document means that it remains a section "Entitled XYZ" according
  1303. to this definition.
  1304. The Document may include Warranty Disclaimers next to the notice
  1305. which states that this License applies to the Document. These
  1306. Warranty Disclaimers are considered to be included by reference in
  1307. this License, but only as regards disclaiming warranties: any other
  1308. implication that these Warranty Disclaimers may have is void and
  1309. has no effect on the meaning of this License.
  1310. 2. VERBATIM COPYING
  1311. You may copy and distribute the Document in any medium, either
  1312. commercially or noncommercially, provided that this License, the
  1313. copyright notices, and the license notice saying this License
  1314. applies to the Document are reproduced in all copies, and that you
  1315. add no other conditions whatsoever to those of this License. You
  1316. may not use technical measures to obstruct or control the reading
  1317. or further copying of the copies you make or distribute. However,
  1318. you may accept compensation in exchange for copies. If you
  1319. distribute a large enough number of copies you must also follow
  1320. the conditions in section 3.
  1321. You may also lend copies, under the same conditions stated above,
  1322. and you may publicly display copies.
  1323. 3. COPYING IN QUANTITY
  1324. If you publish printed copies (or copies in media that commonly
  1325. have printed covers) of the Document, numbering more than 100, and
  1326. the Document's license notice requires Cover Texts, you must
  1327. enclose the copies in covers that carry, clearly and legibly, all
  1328. these Cover Texts: Front-Cover Texts on the front cover, and
  1329. Back-Cover Texts on the back cover. Both covers must also clearly
  1330. and legibly identify you as the publisher of these copies. The
  1331. front cover must present the full title with all words of the
  1332. title equally prominent and visible. You may add other material
  1333. on the covers in addition. Copying with changes limited to the
  1334. covers, as long as they preserve the title of the Document and
  1335. satisfy these conditions, can be treated as verbatim copying in
  1336. other respects.
  1337. If the required texts for either cover are too voluminous to fit
  1338. legibly, you should put the first ones listed (as many as fit
  1339. reasonably) on the actual cover, and continue the rest onto
  1340. adjacent pages.
  1341. If you publish or distribute Opaque copies of the Document
  1342. numbering more than 100, you must either include a
  1343. machine-readable Transparent copy along with each Opaque copy, or
  1344. state in or with each Opaque copy a computer-network location from
  1345. which the general network-using public has access to download
  1346. using public-standard network protocols a complete Transparent
  1347. copy of the Document, free of added material. If you use the
  1348. latter option, you must take reasonably prudent steps, when you
  1349. begin distribution of Opaque copies in quantity, to ensure that
  1350. this Transparent copy will remain thus accessible at the stated
  1351. location until at least one year after the last time you
  1352. distribute an Opaque copy (directly or through your agents or
  1353. retailers) of that edition to the public.
  1354. It is requested, but not required, that you contact the authors of
  1355. the Document well before redistributing any large number of
  1356. copies, to give them a chance to provide you with an updated
  1357. version of the Document.
  1358. 4. MODIFICATIONS
  1359. You may copy and distribute a Modified Version of the Document
  1360. under the conditions of sections 2 and 3 above, provided that you
  1361. release the Modified Version under precisely this License, with
  1362. the Modified Version filling the role of the Document, thus
  1363. licensing distribution and modification of the Modified Version to
  1364. whoever possesses a copy of it. In addition, you must do these
  1365. things in the Modified Version:
  1366. A. Use in the Title Page (and on the covers, if any) a title
  1367. distinct from that of the Document, and from those of
  1368. previous versions (which should, if there were any, be listed
  1369. in the History section of the Document). You may use the
  1370. same title as a previous version if the original publisher of
  1371. that version gives permission.
  1372. B. List on the Title Page, as authors, one or more persons or
  1373. entities responsible for authorship of the modifications in
  1374. the Modified Version, together with at least five of the
  1375. principal authors of the Document (all of its principal
  1376. authors, if it has fewer than five), unless they release you
  1377. from this requirement.
  1378. C. State on the Title page the name of the publisher of the
  1379. Modified Version, as the publisher.
  1380. D. Preserve all the copyright notices of the Document.
  1381. E. Add an appropriate copyright notice for your modifications
  1382. adjacent to the other copyright notices.
  1383. F. Include, immediately after the copyright notices, a license
  1384. notice giving the public permission to use the Modified
  1385. Version under the terms of this License, in the form shown in
  1386. the Addendum below.
  1387. G. Preserve in that license notice the full lists of Invariant
  1388. Sections and required Cover Texts given in the Document's
  1389. license notice.
  1390. H. Include an unaltered copy of this License.
  1391. I. Preserve the section Entitled "History", Preserve its Title,
  1392. and add to it an item stating at least the title, year, new
  1393. authors, and publisher of the Modified Version as given on
  1394. the Title Page. If there is no section Entitled "History" in
  1395. the Document, create one stating the title, year, authors,
  1396. and publisher of the Document as given on its Title Page,
  1397. then add an item describing the Modified Version as stated in
  1398. the previous sentence.
  1399. J. Preserve the network location, if any, given in the Document
  1400. for public access to a Transparent copy of the Document, and
  1401. likewise the network locations given in the Document for
  1402. previous versions it was based on. These may be placed in
  1403. the "History" section. You may omit a network location for a
  1404. work that was published at least four years before the
  1405. Document itself, or if the original publisher of the version
  1406. it refers to gives permission.
  1407. K. For any section Entitled "Acknowledgements" or "Dedications",
  1408. Preserve the Title of the section, and preserve in the
  1409. section all the substance and tone of each of the contributor
  1410. acknowledgements and/or dedications given therein.
  1411. L. Preserve all the Invariant Sections of the Document,
  1412. unaltered in their text and in their titles. Section numbers
  1413. or the equivalent are not considered part of the section
  1414. titles.
  1415. M. Delete any section Entitled "Endorsements". Such a section
  1416. may not be included in the Modified Version.
  1417. N. Do not retitle any existing section to be Entitled
  1418. "Endorsements" or to conflict in title with any Invariant
  1419. Section.
  1420. O. Preserve any Warranty Disclaimers.
  1421. If the Modified Version includes new front-matter sections or
  1422. appendices that qualify as Secondary Sections and contain no
  1423. material copied from the Document, you may at your option
  1424. designate some or all of these sections as invariant. To do this,
  1425. add their titles to the list of Invariant Sections in the Modified
  1426. Version's license notice. These titles must be distinct from any
  1427. other section titles.
  1428. You may add a section Entitled "Endorsements", provided it contains
  1429. nothing but endorsements of your Modified Version by various
  1430. parties--for example, statements of peer review or that the text
  1431. has been approved by an organization as the authoritative
  1432. definition of a standard.
  1433. You may add a passage of up to five words as a Front-Cover Text,
  1434. and a passage of up to 25 words as a Back-Cover Text, to the end
  1435. of the list of Cover Texts in the Modified Version. Only one
  1436. passage of Front-Cover Text and one of Back-Cover Text may be
  1437. added by (or through arrangements made by) any one entity. If the
  1438. Document already includes a cover text for the same cover,
  1439. previously added by you or by arrangement made by the same entity
  1440. you are acting on behalf of, you may not add another; but you may
  1441. replace the old one, on explicit permission from the previous
  1442. publisher that added the old one.
  1443. The author(s) and publisher(s) of the Document do not by this
  1444. License give permission to use their names for publicity for or to
  1445. assert or imply endorsement of any Modified Version.
  1446. 5. COMBINING DOCUMENTS
  1447. You may combine the Document with other documents released under
  1448. this License, under the terms defined in section 4 above for
  1449. modified versions, provided that you include in the combination
  1450. all of the Invariant Sections of all of the original documents,
  1451. unmodified, and list them all as Invariant Sections of your
  1452. combined work in its license notice, and that you preserve all
  1453. their Warranty Disclaimers.
  1454. The combined work need only contain one copy of this License, and
  1455. multiple identical Invariant Sections may be replaced with a single
  1456. copy. If there are multiple Invariant Sections with the same name
  1457. but different contents, make the title of each such section unique
  1458. by adding at the end of it, in parentheses, the name of the
  1459. original author or publisher of that section if known, or else a
  1460. unique number. Make the same adjustment to the section titles in
  1461. the list of Invariant Sections in the license notice of the
  1462. combined work.
  1463. In the combination, you must combine any sections Entitled
  1464. "History" in the various original documents, forming one section
  1465. Entitled "History"; likewise combine any sections Entitled
  1466. "Acknowledgements", and any sections Entitled "Dedications". You
  1467. must delete all sections Entitled "Endorsements."
  1468. 6. COLLECTIONS OF DOCUMENTS
  1469. You may make a collection consisting of the Document and other
  1470. documents released under this License, and replace the individual
  1471. copies of this License in the various documents with a single copy
  1472. that is included in the collection, provided that you follow the
  1473. rules of this License for verbatim copying of each of the
  1474. documents in all other respects.
  1475. You may extract a single document from such a collection, and
  1476. distribute it individually under this License, provided you insert
  1477. a copy of this License into the extracted document, and follow
  1478. this License in all other respects regarding verbatim copying of
  1479. that document.
  1480. 7. AGGREGATION WITH INDEPENDENT WORKS
  1481. A compilation of the Document or its derivatives with other
  1482. separate and independent documents or works, in or on a volume of
  1483. a storage or distribution medium, is called an "aggregate" if the
  1484. copyright resulting from the compilation is not used to limit the
  1485. legal rights of the compilation's users beyond what the individual
  1486. works permit. When the Document is included in an aggregate, this
  1487. License does not apply to the other works in the aggregate which
  1488. are not themselves derivative works of the Document.
  1489. If the Cover Text requirement of section 3 is applicable to these
  1490. copies of the Document, then if the Document is less than one half
  1491. of the entire aggregate, the Document's Cover Texts may be placed
  1492. on covers that bracket the Document within the aggregate, or the
  1493. electronic equivalent of covers if the Document is in electronic
  1494. form. Otherwise they must appear on printed covers that bracket
  1495. the whole aggregate.
  1496. 8. TRANSLATION
  1497. Translation is considered a kind of modification, so you may
  1498. distribute translations of the Document under the terms of section
  1499. 4. Replacing Invariant Sections with translations requires special
  1500. permission from their copyright holders, but you may include
  1501. translations of some or all Invariant Sections in addition to the
  1502. original versions of these Invariant Sections. You may include a
  1503. translation of this License, and all the license notices in the
  1504. Document, and any Warranty Disclaimers, provided that you also
  1505. include the original English version of this License and the
  1506. original versions of those notices and disclaimers. In case of a
  1507. disagreement between the translation and the original version of
  1508. this License or a notice or disclaimer, the original version will
  1509. prevail.
  1510. If a section in the Document is Entitled "Acknowledgements",
  1511. "Dedications", or "History", the requirement (section 4) to
  1512. Preserve its Title (section 1) will typically require changing the
  1513. actual title.
  1514. 9. TERMINATION
  1515. You may not copy, modify, sublicense, or distribute the Document
  1516. except as expressly provided under this License. Any attempt
  1517. otherwise to copy, modify, sublicense, or distribute it is void,
  1518. and will automatically terminate your rights under this License.
  1519. However, if you cease all violation of this License, then your
  1520. license from a particular copyright holder is reinstated (a)
  1521. provisionally, unless and until the copyright holder explicitly
  1522. and finally terminates your license, and (b) permanently, if the
  1523. copyright holder fails to notify you of the violation by some
  1524. reasonable means prior to 60 days after the cessation.
  1525. Moreover, your license from a particular copyright holder is
  1526. reinstated permanently if the copyright holder notifies you of the
  1527. violation by some reasonable means, this is the first time you have
  1528. received notice of violation of this License (for any work) from
  1529. that copyright holder, and you cure the violation prior to 30 days
  1530. after your receipt of the notice.
  1531. Termination of your rights under this section does not terminate
  1532. the licenses of parties who have received copies or rights from
  1533. you under this License. If your rights have been terminated and
  1534. not permanently reinstated, receipt of a copy of some or all of
  1535. the same material does not give you any rights to use it.
  1536. 10. FUTURE REVISIONS OF THIS LICENSE
  1537. The Free Software Foundation may publish new, revised versions of
  1538. the GNU Free Documentation License from time to time. Such new
  1539. versions will be similar in spirit to the present version, but may
  1540. differ in detail to address new problems or concerns. See
  1541. `http://www.gnu.org/copyleft/'.
  1542. Each version of the License is given a distinguishing version
  1543. number. If the Document specifies that a particular numbered
  1544. version of this License "or any later version" applies to it, you
  1545. have the option of following the terms and conditions either of
  1546. that specified version or of any later version that has been
  1547. published (not as a draft) by the Free Software Foundation. If
  1548. the Document does not specify a version number of this License,
  1549. you may choose any version ever published (not as a draft) by the
  1550. Free Software Foundation. If the Document specifies that a proxy
  1551. can decide which future versions of this License can be used, that
  1552. proxy's public statement of acceptance of a version permanently
  1553. authorizes you to choose that version for the Document.
  1554. 11. RELICENSING
  1555. "Massive Multiauthor Collaboration Site" (or "MMC Site") means any
  1556. World Wide Web server that publishes copyrightable works and also
  1557. provides prominent facilities for anybody to edit those works. A
  1558. public wiki that anybody can edit is an example of such a server.
  1559. A "Massive Multiauthor Collaboration" (or "MMC") contained in the
  1560. site means any set of copyrightable works thus published on the MMC
  1561. site.
  1562. "CC-BY-SA" means the Creative Commons Attribution-Share Alike 3.0
  1563. license published by Creative Commons Corporation, a not-for-profit
  1564. corporation with a principal place of business in San Francisco,
  1565. California, as well as future copyleft versions of that license
  1566. published by that same organization.
  1567. "Incorporate" means to publish or republish a Document, in whole or
  1568. in part, as part of another Document.
  1569. An MMC is "eligible for relicensing" if it is licensed under this
  1570. License, and if all works that were first published under this
  1571. License somewhere other than this MMC, and subsequently
  1572. incorporated in whole or in part into the MMC, (1) had no cover
  1573. texts or invariant sections, and (2) were thus incorporated prior
  1574. to November 1, 2008.
  1575. The operator of an MMC Site may republish an MMC contained in the
  1576. site under CC-BY-SA on the same site at any time before August 1,
  1577. 2009, provided the MMC is eligible for relicensing.
  1578. ADDENDUM: How to use this License for your documents
  1579. ====================================================
  1580. To use this License in a document you have written, include a copy of
  1581. the License in the document and put the following copyright and license
  1582. notices just after the title page:
  1583. Copyright (C) YEAR YOUR NAME.
  1584. Permission is granted to copy, distribute and/or modify this document
  1585. under the terms of the GNU Free Documentation License, Version 1.3
  1586. or any later version published by the Free Software Foundation;
  1587. with no Invariant Sections, no Front-Cover Texts, and no Back-Cover
  1588. Texts. A copy of the license is included in the section entitled ``GNU
  1589. Free Documentation License''.
  1590. If you have Invariant Sections, Front-Cover Texts and Back-Cover
  1591. Texts, replace the "with...Texts." line with this:
  1592. with the Invariant Sections being LIST THEIR TITLES, with
  1593. the Front-Cover Texts being LIST, and with the Back-Cover Texts
  1594. being LIST.
  1595. If you have Invariant Sections without Cover Texts, or some other
  1596. combination of the three, merge those two alternatives to suit the
  1597. situation.
  1598. If your document contains nontrivial examples of program code, we
  1599. recommend releasing these examples in parallel under your choice of
  1600. free software license, such as the GNU General Public License, to
  1601. permit their use in free software.
  1602. 
  1603. File: emacs-mime, Node: Index, Prev: GNU Free Documentation License, Up: Top
  1604. 7 Index
  1605. *******
  1606. [index]
  1607. * Menu:
  1608. * Apple: binhex. (line 6)
  1609. * base64: base64. (line 6)
  1610. * base64-decode-region: base64. (line 21)
  1611. * base64-decode-string: base64. (line 26)
  1612. * base64-encode-region: base64. (line 13)
  1613. * base64-encode-string: base64. (line 18)
  1614. * binhex <1>: binhex. (line 6)
  1615. * binhex: Non-MIME. (line 21)
  1616. * binhex-decode-region: binhex. (line 10)
  1617. * charsets: Charset Translation. (line 6)
  1618. * Chinese: rfc1843. (line 6)
  1619. * Composing: Composing. (line 6)
  1620. * diff: Non-MIME. (line 49)
  1621. * emacs-sources: Non-MIME. (line 45)
  1622. * format=flowed: Flowed text. (line 6)
  1623. * forward: Non-MIME. (line 30)
  1624. * gnatsweb: Non-MIME. (line 33)
  1625. * HZ: rfc1843. (line 6)
  1626. * ietf-drums-get-comment: ietf-drums. (line 19)
  1627. * ietf-drums-narrow-to-header: ietf-drums. (line 33)
  1628. * ietf-drums-parse-address: ietf-drums. (line 22)
  1629. * ietf-drums-parse-addresses: ietf-drums. (line 26)
  1630. * ietf-drums-parse-date: ietf-drums. (line 30)
  1631. * ietf-drums-remove-comments: ietf-drums. (line 12)
  1632. * ietf-drums-remove-whitespace: ietf-drums. (line 15)
  1633. * interface functions: Interface Functions. (line 6)
  1634. * LaTeX: Non-MIME. (line 57)
  1635. * Macintosh: binhex. (line 6)
  1636. * mail-content-type-get: Interface Functions. (line 54)
  1637. * mail-decode-encoded-word-region: Interface Functions. (line 142)
  1638. * mail-decode-encoded-word-string: Interface Functions. (line 145)
  1639. * mail-encode-encoded-word-buffer: Interface Functions. (line 130)
  1640. * mail-encode-encoded-word-region: Interface Functions. (line 126)
  1641. * mail-encode-encoded-word-string: Interface Functions. (line 134)
  1642. * mail-header-encode-parameter: Interface Functions. (line 62)
  1643. * mail-header-field-value: Interface Functions. (line 123)
  1644. * mail-header-fold-field: Interface Functions. (line 117)
  1645. * mail-header-get-comment: Interface Functions. (line 82)
  1646. * mail-header-narrow-to-field: Interface Functions. (line 113)
  1647. * mail-header-parse-address: Interface Functions. (line 89)
  1648. * mail-header-parse-addresses: Interface Functions. (line 97)
  1649. * mail-header-parse-content-disposition: Interface Functions. (line 50)
  1650. * mail-header-parse-content-type: Interface Functions. (line 35)
  1651. * mail-header-parse-date: Interface Functions. (line 106)
  1652. * mail-header-remove-comments: Interface Functions. (line 67)
  1653. * mail-header-remove-whitespace: Interface Functions. (line 74)
  1654. * mail-header-unfold-field: Interface Functions. (line 120)
  1655. * mail-narrow-to-head: Interface Functions. (line 109)
  1656. * mail-parse: Interface Functions. (line 6)
  1657. * mail-parse-charset: Charset Translation. (line 9)
  1658. * mailcap-mime-data: mailcap. (line 22)
  1659. * mailcap-parse-mailcaps: mailcap. (line 29)
  1660. * MIME Composing: Composing. (line 6)
  1661. * MIME Meta Language: Composing. (line 6)
  1662. * mime-to-mml: Conversion. (line 6)
  1663. * mm-attachment-override-types: Display Customization.
  1664. (line 35)
  1665. * mm-automatic-display: Display Customization.
  1666. (line 22)
  1667. * mm-automatic-display-p: Display. (line 18)
  1668. * mm-automatic-external-display: Display Customization.
  1669. (line 27)
  1670. * mm-body-charset-encoding-alist: Encoding Customization.
  1671. (line 7)
  1672. * mm-coding-system-priorities: Encoding Customization.
  1673. (line 24)
  1674. * mm-content-transfer-encoding-defaults: Encoding Customization.
  1675. (line 63)
  1676. * mm-default-directory: Files and Directories.
  1677. (line 7)
  1678. * mm-destroy-part: Display. (line 21)
  1679. * mm-discouraged-alternatives: Display Customization.
  1680. (line 42)
  1681. * mm-display-part: Display. (line 9)
  1682. * mm-enable-external: Display Customization.
  1683. (line 133)
  1684. * mm-external-terminal-program: Display Customization.
  1685. (line 130)
  1686. * mm-file-name-collapse-whitespace: Files and Directories.
  1687. (line 33)
  1688. * mm-file-name-delete-control: Files and Directories.
  1689. (line 19)
  1690. * mm-file-name-delete-gotchas: Files and Directories.
  1691. (line 22)
  1692. * mm-file-name-delete-whitespace: Files and Directories.
  1693. (line 27)
  1694. * mm-file-name-replace-whitespace: Files and Directories.
  1695. (line 36)
  1696. * mm-file-name-rewrite-functions: Files and Directories.
  1697. (line 14)
  1698. * mm-file-name-trim-whitespace: Files and Directories.
  1699. (line 30)
  1700. * mm-fill-flowed: Flowed text. (line 29)
  1701. * mm-handle-buffer: Handles. (line 11)
  1702. * mm-handle-disposition: Handles. (line 28)
  1703. * mm-handle-encoding: Handles. (line 18)
  1704. * mm-handle-set-undisplayer: Handles. (line 25)
  1705. * mm-handle-type: Handles. (line 15)
  1706. * mm-handle-undisplayer: Handles. (line 21)
  1707. * mm-inlinable-p: Display. (line 15)
  1708. * mm-inline-images-max-proportion: Display Customization.
  1709. (line 89)
  1710. * mm-inline-large-images: Display Customization.
  1711. (line 77)
  1712. * mm-inline-media-tests: Display Customization.
  1713. (line 7)
  1714. * mm-inline-override-types: Display Customization.
  1715. (line 92)
  1716. * mm-inline-text-html-with-images: Display Customization.
  1717. (line 109)
  1718. * mm-inline-text-html-with-w3m-keymap: Display Customization.
  1719. (line 126)
  1720. * mm-inlined-types: Display Customization.
  1721. (line 17)
  1722. * mm-interactively-view-part: Display. (line 30)
  1723. * mm-keep-viewer-alive-types: Display Customization.
  1724. (line 31)
  1725. * mm-mime-mule-charset-alist: Charset Translation. (line 18)
  1726. * mm-path-name-rewrite-functions: Files and Directories.
  1727. (line 44)
  1728. * mm-pipe-part: Display. (line 27)
  1729. * mm-remove-part: Display. (line 12)
  1730. * mm-save-part: Display. (line 24)
  1731. * mm-text-html-renderer: Display Customization.
  1732. (line 102)
  1733. * mm-tmp-directory: Files and Directories.
  1734. (line 11)
  1735. * mm-use-ultra-safe-encoding: Encoding Customization.
  1736. (line 82)
  1737. * mm-uu-configure-list: Non-MIME. (line 6)
  1738. * mm-uu-diff-groups-regexp: Non-MIME. (line 49)
  1739. * mm-uu-emacs-sources-regexp: Non-MIME. (line 45)
  1740. * mm-uu-extract: Non-MIME. (line 61)
  1741. * mm-w3m-safe-url-regexp: Display Customization.
  1742. (line 118)
  1743. * MML: Composing. (line 6)
  1744. * mml-generate-mime: Composing. (line 10)
  1745. * mml-to-mime: Conversion. (line 12)
  1746. * MULE: Charset Translation. (line 18)
  1747. * pgp-encrypted: Non-MIME. (line 39)
  1748. * pgp-key: Non-MIME. (line 42)
  1749. * pgp-signed: Non-MIME. (line 36)
  1750. * postscript: Non-MIME. (line 15)
  1751. * quoted-printable-decode-region: qp. (line 16)
  1752. * quoted-printable-decode-string: qp. (line 19)
  1753. * quoted-printable-encode-region: qp. (line 22)
  1754. * quoted-printable-encode-string: qp. (line 27)
  1755. * rfc1843: rfc1843. (line 6)
  1756. * rfc2045-encode-string: rfc2045. (line 13)
  1757. * rfc2047-allow-irregular-q-encoded-words: rfc2047. (line 46)
  1758. * rfc2047-charset-encoding-alist: rfc2047. (line 25)
  1759. * rfc2047-decode-region: rfc2047. (line 68)
  1760. * rfc2047-decode-string: rfc2047. (line 71)
  1761. * rfc2047-encode-encoded-words: rfc2047. (line 41)
  1762. * rfc2047-encode-function-alist: rfc2047. (line 30)
  1763. * rfc2047-encode-message-header: rfc2047. (line 58)
  1764. * rfc2047-encode-parameter: rfc2047. (line 74)
  1765. * rfc2047-encode-region: rfc2047. (line 62)
  1766. * rfc2047-encode-string: rfc2047. (line 65)
  1767. * rfc2047-encoded-word-regexp: rfc2047. (line 34)
  1768. * rfc2047-encoded-word-regexp-loose: rfc2047. (line 37)
  1769. * rfc2047-header-encoding-alist: rfc2047. (line 14)
  1770. * rfc2047-narrow-to-field: rfc2047. (line 55)
  1771. * rfc2231-encode-string: rfc2231. (line 39)
  1772. * rfc2231-get-value: rfc2231. (line 35)
  1773. * rfc2231-parse-string: rfc2231. (line 23)
  1774. * shar: Non-MIME. (line 27)
  1775. * text/x-verbatim: Non-MIME. (line 61)
  1776. * Unicode: Charset Translation. (line 18)
  1777. * UTF-8: Charset Translation. (line 18)
  1778. * uu: Non-MIME. (line 18)
  1779. * uudecode: uudecode. (line 6)
  1780. * uudecode-decode-region: uudecode. (line 12)
  1781. * uuencode: uudecode. (line 6)
  1782. * verbatim-marks: Non-MIME. (line 54)
  1783. * yenc <1>: yenc. (line 6)
  1784. * yenc: Non-MIME. (line 24)
  1785. * yenc-decode-region: yenc. (line 10)
  1786. 
  1787. Tag Table:
  1788. Node: Top1007
  1789. Node: Decoding and Viewing3130
  1790. Node: Dissection3911
  1791. Node: Non-MIME4285
  1792. Node: Handles5871
  1793. Node: Display6723
  1794. Node: Display Customization7444
  1795. Ref: Display Customization-Footnote-114171
  1796. Ref: Display Customization-Footnote-214251
  1797. Node: Files and Directories14378
  1798. Node: New Viewers16099
  1799. Node: Composing17223
  1800. Node: Simple MML Example18184
  1801. Node: MML Definition18827
  1802. Node: Advanced MML Example22648
  1803. Node: Encoding Customization25388
  1804. Node: Charset Translation29824
  1805. Node: Conversion32360
  1806. Node: Flowed text33481
  1807. Node: Interface Functions34732
  1808. Node: Basic Functions40290
  1809. Node: rfc204541334
  1810. Node: rfc223141849
  1811. Node: ietf-drums43138
  1812. Node: rfc204744223
  1813. Node: time-date47027
  1814. Node: qp50471
  1815. Node: base6451438
  1816. Node: binhex52391
  1817. Node: uudecode52787
  1818. Node: yenc53143
  1819. Node: rfc184353421
  1820. Node: mailcap54030
  1821. Node: Standards54954
  1822. Node: GNU Free Documentation License56375
  1823. Node: Index81525
  1824. 
  1825. End Tag Table
  1826. 
  1827. Local Variables:
  1828. coding: iso-8859-1
  1829. End: