| 1 |
;;; mew-unix.el -- Settings for Mew on Unix |
| 2 |
|
| 3 |
;; Author: Kazu Yamamoto <[email protected]> |
| 4 |
;; Created: Dec 4, 1997 |
| 5 |
|
| 6 |
;;; Code: |
| 7 |
|
| 8 |
;;; |
| 9 |
;;; MIME setting |
| 10 |
;;; |
| 11 |
|
| 12 |
(defvar mew-prog-plain 'mew-mime-text/plain) |
| 13 |
(defvar mew-prog-html '(mew-mime-text/html mew-mime-text/html-ext)) |
| 14 |
(defvar mew-prog-xml '(mew-mime-text/xml mew-mime-text/xml-ext)) |
| 15 |
(defvar mew-prog-patch '(mew-mime-text/plain mew-mime-text/patch-ext)) |
| 16 |
(defvar mew-prog-enriched 'mew-mime-text/enriched) |
| 17 |
(defvar mew-prog-text 'mew-mime-text/plain) |
| 18 |
(defvar mew-prog-audio |
| 19 |
`(,shell-file-name (,shell-command-switch "cat - > /dev/audio") nil)) |
| 20 |
(defvar mew-prog-audio2 |
| 21 |
`(,shell-file-name (,shell-command-switch "cat < /dev/audio") nil)) |
| 22 |
(defvar mew-prog-image '(mew-mime-image/* mew-mime-image/*-ext)) |
| 23 |
(defvar mew-prog-iges nil) |
| 24 |
(defvar mew-prog-vrml nil) |
| 25 |
(defvar mew-prog-mesh nil) |
| 26 |
(defvar mew-prog-video '("xine" ("--auto-play") t)) |
| 27 |
(defvar mew-prog-rfc822 'mew-mime-message/rfc822) |
| 28 |
(defvar mew-prog-rfc822-headers 'mew-mime-text/rfc822-headers) |
| 29 |
(defvar mew-prog-external-body '(mew-mime-external-body mew-mime-external-body-ext)) |
| 30 |
(defvar mew-prog-delivery-status 'mew-mime-text/plain) |
| 31 |
|
| 32 |
(defvar mew-prog-application/pdf "pdftotext") |
| 33 |
(defvar mew-prog-pdf-ext '("xpdf" ("-geometry" "+0+0") t)) |
| 34 |
(defvar mew-prog-pdf `(mew-mime-application/pdf ,mew-prog-pdf-ext)) |
| 35 |
|
| 36 |
(defvar mew-prog-postscript '("gv" ("-geometry" "+0+0") t)) |
| 37 |
(defvar mew-prog-oasys nil) |
| 38 |
(defvar mew-prog-octet-stream 'mew-mime-application/octet-stream) |
| 39 |
(defvar mew-prog-pgp-keys '(mew-mime-pgp-keys mew-mime-pgp-keys-ext)) |
| 40 |
|
| 41 |
(defvar mew-prog-application/rtf "rtf2html") |
| 42 |
(defvar mew-prog-rtf '(mew-mime-application/rtf |
| 43 |
mew-mime-application/rtf-ext)) |
| 44 |
|
| 45 |
(defvar mew-prog-xml2 '(mew-mime-application/xml |
| 46 |
mew-mime-application/xml-ext)) |
| 47 |
(defvar mew-prog-unzip 'mew-mime-application/octet-stream) |
| 48 |
|
| 49 |
;;; |
| 50 |
;;; Text/Html, Application/Xml |
| 51 |
;;; |
| 52 |
|
| 53 |
(defvar mew-format-html "%s.html") |
| 54 |
(defvar mew-format-xml "%s.xml") |
| 55 |
|
| 56 |
(defvar mew-unix-browser "firefox") |
| 57 |
(defvar mew-unix-browser-arg '("%s")) |
| 58 |
(defvar mew-unix-browser-form `(,mew-unix-browser ,mew-unix-browser-arg t)) |
| 59 |
|
| 60 |
(defvar mew-prog-text/html |
| 61 |
(if (and (fboundp 'shr-render-region) |
| 62 |
(fboundp 'libxml-parse-html-region)) |
| 63 |
'shr-render-region |
| 64 |
'mew-mime-text/html-w3m)) ;; See w3m.el |
| 65 |
(defvar mew-prog-text/html-ext mew-unix-browser-form) |
| 66 |
|
| 67 |
(defvar mew-prog-text/xml |
| 68 |
(if (and (fboundp 'shr-render-region) |
| 69 |
(fboundp 'libxml-parse-html-region)) |
| 70 |
'shr-render-region |
| 71 |
'mew-mime-text/html-w3m)) ;; See w3m.el |
| 72 |
(defvar mew-prog-text/xml-ext mew-unix-browser-form) |
| 73 |
|
| 74 |
(defvar mew-prog-application/xml nil) |
| 75 |
(defvar mew-prog-application/xml-ext mew-unix-browser-form) |
| 76 |
|
| 77 |
|
| 78 |
;;; |
| 79 |
;;; Image |
| 80 |
;;; |
| 81 |
|
| 82 |
(defvar mew-prog-image/* 'mew-mime-image/*) |
| 83 |
(defvar mew-prog-image/*-ext '("display" ("-geometry" "+0+0"))) |
| 84 |
|
| 85 |
|
| 86 |
;;; |
| 87 |
;;; Office |
| 88 |
;;; |
| 89 |
|
| 90 |
(defvar mew-prog-ooffice "soffice") |
| 91 |
|
| 92 |
(defvar mew-prog-application/msword "wvHtml") |
| 93 |
(defvar mew-prog-msword-ext mew-prog-ooffice) |
| 94 |
(defvar mew-prog-msword `(mew-mime-application/msword ,mew-prog-msword-ext)) |
| 95 |
|
| 96 |
(defvar mew-prog-application/msexcel "xlhtml") |
| 97 |
(defvar mew-prog-msexcel-ext mew-prog-ooffice) |
| 98 |
(defvar mew-prog-msexcel `(mew-mime-application/msexcel ,mew-prog-msexcel-ext)) |
| 99 |
|
| 100 |
(defvar mew-prog-application/mspowerpoint "ppthtml") |
| 101 |
(defvar mew-prog-mspowerpoint-ext mew-prog-ooffice) |
| 102 |
(defvar mew-prog-mspowerpoint `(mew-mime-application/mspowerpoint ,mew-prog-mspowerpoint-ext)) |
| 103 |
|
| 104 |
(defvar mew-prog-visio 'mew-mime-application/octet-stream) |
| 105 |
(defvar mew-prog-mstnef '(mew-mime-application-ms-tnef |
| 106 |
mew-mime-application-ms-tnef-ext)) |
| 107 |
|
| 108 |
;;; |
| 109 |
;;; Misc |
| 110 |
;;; |
| 111 |
|
| 112 |
(defvar mew-default-external-program nil) |
| 113 |
(defvar mew-dir-list-function 'mew-dir-list-with-link-count) |
| 114 |
|
| 115 |
(provide 'mew-unix) |
| 116 |
|
| 117 |
;;; Copyright Notice: |
| 118 |
|
| 119 |
;; Copyright (C) 1996-2015 Mew developing team. |
| 120 |
;; All rights reserved. |
| 121 |
|
| 122 |
;; Redistribution and use in source and binary forms, with or without |
| 123 |
;; modification, are permitted provided that the following conditions |
| 124 |
;; are met: |
| 125 |
;; |
| 126 |
;; 1. Redistributions of source code must retain the above copyright |
| 127 |
;; notice, this list of conditions and the following disclaimer. |
| 128 |
;; 2. Redistributions in binary form must reproduce the above copyright |
| 129 |
;; notice, this list of conditions and the following disclaimer in the |
| 130 |
;; documentation and/or other materials provided with the distribution. |
| 131 |
;; 3. Neither the name of the team nor the names of its contributors |
| 132 |
;; may be used to endorse or promote products derived from this software |
| 133 |
;; without specific prior written permission. |
| 134 |
;; |
| 135 |
;; THIS SOFTWARE IS PROVIDED BY THE TEAM AND CONTRIBUTORS ``AS IS'' AND |
| 136 |
;; ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE |
| 137 |
;; IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR |
| 138 |
;; PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE TEAM OR CONTRIBUTORS BE |
| 139 |
;; LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR |
| 140 |
;; CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF |
| 141 |
;; SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR |
| 142 |
;; BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, |
| 143 |
;; WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE |
| 144 |
;; OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN |
| 145 |
;; IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 146 |
|
| 147 |
;;; mew-unix.el ends here |