Mercurial > hg > xemacs-beta
comparison lisp/vm/vm-vars.el @ 24:4103f0995bd7 r19-15b95
Import from CVS: tag r19-15b95
author | cvs |
---|---|
date | Mon, 13 Aug 2007 08:51:03 +0200 |
parents | 859a2309aef8 |
children | 441bb1e64a06 |
comparison
equal
deleted
inserted
replaced
23:0edd3412f124 | 24:4103f0995bd7 |
---|---|
170 | 170 |
171 (defvar vm-pop-md5-program "md5" | 171 (defvar vm-pop-md5-program "md5" |
172 "*Program that reads a message on its standard input and writes an | 172 "*Program that reads a message on its standard input and writes an |
173 MD5 digest on its output.") | 173 MD5 digest on its output.") |
174 | 174 |
175 (defvar vm-pop-max-message-size nil | |
176 "*If VM is about to retrieve via POP a message larger than this size | |
177 (in bytes) it will ask the you whether it should retrieve the message. | |
178 | |
179 If VM is retrieving mail automatically because vm-auto-get-new-mail is | |
180 set to a numeric value then you will not be prompted about large messages. | |
181 This is to avoid prompting you while you're typing in another buffer. | |
182 In this case the large message will be skipped with a warning | |
183 message. | |
184 | |
185 A nil value for vm-pop-max-message-size means no size limit.") | |
186 | |
187 (defvar vm-pop-messages-per-session nil | |
188 "*Non-nil value should be a integer specifying how many messages to | |
189 retrieve per POP session. When you type 'g' to get new mail, VM | |
190 will only retrieve that many messages from any particular POP maildrop. | |
191 To retrieve more messages, type 'g' again. | |
192 | |
193 A nil value means there's no limit.") | |
194 | |
195 (defvar vm-pop-bytes-per-session nil | |
196 "*Non-nil value should be a integer specifying how many bytes to | |
197 retrieve per POP session. When you type 'g' to get new mail, VM | |
198 will only retrieve messages until the byte limit is reached on | |
199 any particular POP maildrop. To retrieve more messages, type 'g' | |
200 again. | |
201 | |
202 A nil value means there's no limit.") | |
203 | |
175 (defvar vm-recognize-pop-maildrops "^[^:]+:[^:]+:[^:]+:[^:]+:[^:]+" | 204 (defvar vm-recognize-pop-maildrops "^[^:]+:[^:]+:[^:]+:[^:]+:[^:]+" |
176 "*Value if non-nil should be a regular expression that matches | 205 "*Value if non-nil should be a regular expression that matches |
177 spool names found in vm-spool-files that should be considered POP | 206 spool names found in vm-spool-files that should be considered POP |
178 maildrops. A nil value tells VM that all the spool names are to | 207 maildrops. A nil value tells VM that all the spool names are to |
179 be considered files.") | 208 be considered files.") |
186 If the value is a number, then it specifies how often (in | 215 If the value is a number, then it specifies how often (in |
187 seconds) VM should check for new mail and try to retrieve it. | 216 seconds) VM should check for new mail and try to retrieve it. |
188 This is done asynchronously and may occur while you are editing | 217 This is done asynchronously and may occur while you are editing |
189 other files. It should not disturb your editing, except perhaps | 218 other files. It should not disturb your editing, except perhaps |
190 for a pause while the check is being done.") | 219 for a pause while the check is being done.") |
220 | |
221 (defvar vm-mail-check-interval 300 | |
222 "*Numeric value specifies the number of seconds between checks | |
223 for new mail. The maildrops for all visited folders are checked. | |
224 The buffer local variable vm-spooled-mail-waiting is set non-nil | |
225 in the buffers of those folders that have mail waiting.") | |
226 | |
227 (defvar vm-spooled-mail-waiting nil | |
228 "Value is non-nil if there is mail waiting for the current folder. | |
229 This variable's value is local in all buffers. | |
230 VM maintains this variable, you should not set it.") | |
231 (make-variable-buffer-local 'vm-spooled-mail-waiting) | |
191 | 232 |
192 (defvar vm-default-folder-type | 233 (defvar vm-default-folder-type |
193 (cond ((not (boundp 'system-configuration)) | 234 (cond ((not (boundp 'system-configuration)) |
194 'From_) | 235 'From_) |
195 ((or (string-match "-solaris" system-configuration) | 236 ((or (string-match "-solaris" system-configuration) |
512 A value of 'best-internal means choose the best part that can be | 553 A value of 'best-internal means choose the best part that can be |
513 displayed internally, i.e. with the built-in capabilities of Emacs. | 554 displayed internally, i.e. with the built-in capabilities of Emacs. |
514 If none of the parts can be displayed internally, behavior reverts to | 555 If none of the parts can be displayed internally, behavior reverts to |
515 that of 'best.") | 556 that of 'best.") |
516 | 557 |
558 (defvar vm-mime-default-face-charsets '("us-ascii" "iso-8859-1") | |
559 "*List of character sets that can use the `default' face. | |
560 For other characters sets VM will have to create a new face and assign | |
561 a font to it that can be used to display that character set.") | |
562 | |
563 (defvar vm-mime-charset-font-alist nil | |
564 "*Assoc list of character sets and fonts that can be used to display them. | |
565 The format of the list is: | |
566 | |
567 ( (CHARSET . FONT) ...) | |
568 | |
569 CHARSET is a string naming a MIME registered character set such | |
570 as \"iso-8859-5\". Character set names should be specified in | |
571 lower case. | |
572 | |
573 FONT is a string naming a font that can be used to display CHARSET. | |
574 | |
575 An example setup might be: | |
576 | |
577 (setq vm-mime-charset-font-alist | |
578 '( | |
579 (\"iso-8859-7\" . \"-*-*-medium-r-normal--16-160-72-72-c-80-iso8859-7\") | |
580 ) | |
581 ) | |
582 | |
583 This variable is only useful for character sets whose characters | |
584 can all be encoded in single 8-bit bytes. Also multiple fonts | |
585 can only be displayed if you're running under a window system | |
586 e.g. X windows. So this variable will have no effect if you're | |
587 running Emacs on a tty. | |
588 | |
589 Note that under FSF Emacs any fonts you use must be the same size | |
590 as your default font. XEmacs does not have this limitation.") | |
591 | |
517 (defvar vm-mime-button-face | 592 (defvar vm-mime-button-face |
518 (cond ((fboundp 'find-face) | 593 (cond ((fboundp 'find-face) |
519 (or (and (not (eq (device-type) 'tty)) (find-face 'gui-button-face) | 594 (or (and (not (eq (device-type) 'tty)) (find-face 'gui-button-face) |
520 'gui-button-face) | 595 'gui-button-face) |
521 (and (find-face 'bold-italic) 'bold-italic))) | 596 (and (find-face 'bold-italic) 'bold-italic))) |
527 (defvar vm-mime-8bit-composition-charset "iso-8859-1" | 602 (defvar vm-mime-8bit-composition-charset "iso-8859-1" |
528 "*Character set that VM should assume if it finds non-US-ASCII characters | 603 "*Character set that VM should assume if it finds non-US-ASCII characters |
529 in a composition buffer. Composition buffers are assumed to use | 604 in a composition buffer. Composition buffers are assumed to use |
530 US-ASCII unless the buffer contains a byte with the high bit set. | 605 US-ASCII unless the buffer contains a byte with the high bit set. |
531 This variable specifies what character set VM should assume if | 606 This variable specifies what character set VM should assume if |
532 such a character is found.") | 607 such a character is found. |
608 | |
609 This variable is unused in XEmacs/MULE. Since multiple character | |
610 sets can be displayed in a single buffer under MULE, VM will map | |
611 the file coding system of the buffer to a single MIME character | |
612 that can display all the buffer's characters.") | |
533 | 613 |
534 (defvar vm-mime-8bit-text-transfer-encoding 'quoted-printable | 614 (defvar vm-mime-8bit-text-transfer-encoding 'quoted-printable |
535 "*Symbol specifying what kind of transfer encoding to use on 8bit | 615 "*Symbol specifying what kind of transfer encoding to use on 8bit |
536 text. Characters with the high bit set cannot safely pass | 616 text. Characters with the high bit set cannot safely pass |
537 through all mail gateways and mail transport software. MIME has | 617 through all mail gateways and mail transport software. MIME has |
538 two transfer encodings that convert 8-bit data to 7-bit for same | 618 two transfer encodings that convert 8-bit data to 7-bit for same |
539 transport. Quoted-printable leaves the text mostly readable even | 619 transport. Quoted-printable leaves the text mostly readable even |
540 if the recipent does not have a MIME-capable mail reader. BASE64 | 620 if the recipient does not have a MIME-capable mail reader. BASE64 |
541 is unreadable with a MIME-capable mail reader, unless your name | 621 is unreadable without a MIME-capable mail reader, unless your name |
542 is U3BvY2s=. | 622 is U3BvY2s=. |
543 | 623 |
544 A value of 'quoted-printable, means to use quoted-printable encoding. | 624 A value of 'quoted-printable, means to use quoted-printable encoding. |
545 A value of 'base64 means to use BASE64 encoding. | 625 A value of 'base64 means to use BASE64 encoding. |
546 A value of '8bit means to send the message as is. | 626 A value of '8bit means to send the message as is. |
555 (defvar vm-mime-attachment-auto-type-alist | 635 (defvar vm-mime-attachment-auto-type-alist |
556 '( | 636 '( |
557 ("\\.jpe?g" . "image/jpeg") | 637 ("\\.jpe?g" . "image/jpeg") |
558 ("\\.gif" . "image/gif") | 638 ("\\.gif" . "image/gif") |
559 ("\\.png" . "image/png") | 639 ("\\.png" . "image/png") |
560 ("\\.tiff" . "image/tiff") | 640 ("\\.tiff?" . "image/tiff") |
561 ("\\.htm?l" . "text/html") | 641 ("\\.html?" . "text/html") |
562 ("\\.au" . "audio/basic") | 642 ("\\.au" . "audio/basic") |
563 ("\\.mpe?g" . "video/mpeg") | 643 ("\\.mpe?g" . "video/mpeg") |
564 ("\\.ps" . "application/postscript") | 644 ("\\.ps" . "application/postscript") |
565 ) | 645 ) |
566 "*Alist used to guess a MIME content type based on a file name. | 646 "*Alist used to guess a MIME content type based on a file name. |
726 "*Non-nil value means remove empty (zero length) folders after saving | 806 "*Non-nil value means remove empty (zero length) folders after saving |
727 A value of t means always remove the folders. | 807 A value of t means always remove the folders. |
728 A value of nil means never remove empty folders. | 808 A value of nil means never remove empty folders. |
729 A value that's not t or nil means ask before removing empty folders.") | 809 A value that's not t or nil means ask before removing empty folders.") |
730 | 810 |
731 (defvar vm-flush-interval t | 811 (defvar vm-flush-interval 90 |
732 "*Non-nil value specifies how often VM flushes its cached internal | 812 "*Non-nil value specifies how often VM flushes its cached internal |
733 data. A numeric value gives the number of seconds between | 813 data. A numeric value gives the number of seconds between |
734 flushes. A value of t means flush every time there is a change. | 814 flushes. A value of t means flush every time there is a change. |
735 Nil means don't do flushing until a message or folder is saved. | 815 Nil means don't do flushing until a message or folder is saved. |
736 | 816 |
1661 (defvar vm-search-other-frames t | 1741 (defvar vm-search-other-frames t |
1662 "*Non-nil means VM should search frames other than the selected frame | 1742 "*Non-nil means VM should search frames other than the selected frame |
1663 when looking for a window that is already displaying a buffer that | 1743 when looking for a window that is already displaying a buffer that |
1664 VM wants to display or undisplay.") | 1744 VM wants to display or undisplay.") |
1665 | 1745 |
1746 (defvar vm-image-directory | |
1747 (expand-file-name (concat data-directory "vm/")) | |
1748 "*Value specifies the directory VM should find its artwork.") | |
1749 | |
1666 (defvar vm-use-toolbar | 1750 (defvar vm-use-toolbar |
1667 '(next previous delete/undelete autofile file | 1751 '(next previous delete/undelete autofile file |
1668 reply compose print visit quit nil help) | 1752 reply compose print visit quit nil help) |
1669 "*Non-nil value causes VM to provide a toolbar interface. | 1753 "*Non-nil value causes VM to provide a toolbar interface. |
1670 Value should be a list of symbols that will determine which | 1754 Value should be a list of symbols that will determine which |
1671 toolbar buttons will appears and in what order. Valid symbol | 1755 toolbar buttons will appear and in what order. Valid symbol |
1672 value within the list are: | 1756 value within the list are: |
1673 | 1757 |
1674 autofile | 1758 autofile |
1675 compose | 1759 compose |
1676 delete/undelete | 1760 delete/undelete |
1677 file | 1761 file |
1762 getmail | |
1678 help | 1763 help |
1679 mime | 1764 mime |
1680 next | 1765 next |
1681 previous | 1766 previous |
1682 print | 1767 print |
1685 visit | 1770 visit |
1686 nil | 1771 nil |
1687 | 1772 |
1688 If nil appears in the list, it should appear exactly once. All | 1773 If nil appears in the list, it should appear exactly once. All |
1689 buttons after nil in the list will be displayed flushright in | 1774 buttons after nil in the list will be displayed flushright in |
1690 top/bottom toolbars and flush bottom in left/right toolbars. | 1775 top/bottom toolbars and flushbottom in left/right toolbars. |
1691 | 1776 |
1692 This variable only has meaning under XEmacs 19.12 and beyond. | 1777 This variable only has meaning under XEmacs 19.12 and beyond. |
1693 See also vm-toolbar-orientation to control where the toolbar is placed.") | 1778 See also vm-toolbar-orientation to control where the toolbar is placed.") |
1694 | 1779 |
1695 (defvar vm-toolbar-orientation 'left | 1780 (defvar vm-toolbar-orientation 'left |
1697 Legal values are `left', `right' `top' and `bottom'. Any other | 1782 Legal values are `left', `right' `top' and `bottom'. Any other |
1698 value will be interpreted as `top'. | 1783 value will be interpreted as `top'. |
1699 | 1784 |
1700 This variable only has meaning under XEmacs 19.12 and beyond.") | 1785 This variable only has meaning under XEmacs 19.12 and beyond.") |
1701 | 1786 |
1702 (defvar vm-toolbar-pixmap-directory | 1787 (defvar vm-toolbar-pixmap-directory vm-image-directory |
1703 (expand-file-name (concat data-directory "vm/")) | |
1704 "*Value specifies the directory VM should find its toolbar pixmaps.") | 1788 "*Value specifies the directory VM should find its toolbar pixmaps.") |
1705 | 1789 |
1706 (defvar vm-toolbar nil | 1790 (defvar vm-toolbar nil |
1707 "*Non-nil value should be a list of toolbar button descriptors. | 1791 "*Non-nil value should be a list of toolbar button descriptors. |
1708 See the documentation for the variable default-toolbar for a | 1792 See the documentation for the variable default-toolbar for a |
2334 (define-key map "\C-c\C-a" 'vm-mime-attach-file) | 2418 (define-key map "\C-c\C-a" 'vm-mime-attach-file) |
2335 (define-key map "\C-c\C-m" 'vm-mime-attach-mime-file) | 2419 (define-key map "\C-c\C-m" 'vm-mime-attach-mime-file) |
2336 (define-key map "\C-c\C-y" 'vm-yank-message) | 2420 (define-key map "\C-c\C-y" 'vm-yank-message) |
2337 (define-key map "\C-c\C-s" 'vm-mail-send) | 2421 (define-key map "\C-c\C-s" 'vm-mail-send) |
2338 (define-key map "\C-c\C-c" 'vm-mail-send-and-exit) | 2422 (define-key map "\C-c\C-c" 'vm-mail-send-and-exit) |
2339 (define-key map "\C-c\C-w" 'mail-signature) | |
2340 (define-key map "\C-c\C-t" 'mail-text) | |
2341 (define-key map "\C-c\C-q" 'mail-fill-yanked-message) | |
2342 (define-key map "\C-c\C-f\C-t" 'mail-to) | |
2343 (define-key map "\C-c\C-f\C-b" 'mail-bcc) | |
2344 (define-key map "\C-c\C-f\C-s" 'mail-subject) | |
2345 (define-key map "\C-c\C-f\C-c" 'mail-cc) | |
2346 (define-key map "\C-c\C-f\C-f" 'mail-fcc) | |
2347 map ) | 2423 map ) |
2348 "Keymap for VM Mail mode buffers.") | 2424 "Keymap for VM Mail mode buffers.") |
2349 | 2425 |
2350 (defvar vm-edit-message-map | 2426 (defvar vm-edit-message-map |
2351 (let ((map (make-sparse-keymap))) | 2427 (let ((map (make-sparse-keymap))) |
2434 (make-variable-buffer-local 'vm-block-new-mail) | 2510 (make-variable-buffer-local 'vm-block-new-mail) |
2435 (defvar vm-saved-buffer-modified-p nil) | 2511 (defvar vm-saved-buffer-modified-p nil) |
2436 (make-variable-buffer-local 'vm-saved-buffer-modified-p) | 2512 (make-variable-buffer-local 'vm-saved-buffer-modified-p) |
2437 (defvar vm-kept-mail-buffers nil) | 2513 (defvar vm-kept-mail-buffers nil) |
2438 (defvar vm-inhibit-write-file-hook nil) | 2514 (defvar vm-inhibit-write-file-hook nil) |
2439 (defvar vm-chop-full-name-function 'vm-choose-chop-full-name-function) | 2515 ;; used to choose between the default and |
2516 ;; mail-extract-address-components but I don't see the utility of | |
2517 ;; it anymore. It tries to be too smart. | |
2518 ;;(defvar vm-chop-full-name-function 'vm-choose-chop-full-name-function) | |
2519 (defvar vm-chop-full-name-function 'vm-default-chop-full-name) | |
2440 (defvar vm-session-beginning t) | 2520 (defvar vm-session-beginning t) |
2441 (defvar vm-init-file-loaded nil) | 2521 (defvar vm-init-file-loaded nil) |
2442 (defvar vm-window-configurations nil) | 2522 (defvar vm-window-configurations nil) |
2443 (defvar vm-window-configuration nil) | 2523 (defvar vm-window-configuration nil) |
2444 (defvar vm-message-id-number 0) | 2524 (defvar vm-message-id-number 0) |
2696 (" " vm-ml-message-number | 2776 (" " vm-ml-message-number |
2697 " (of " vm-ml-highest-message-number ")") | 2777 " (of " vm-ml-highest-message-number ")") |
2698 (vm-folder-type | 2778 (vm-folder-type |
2699 " (unrecognized folder type)" | 2779 " (unrecognized folder type)" |
2700 " (no messages)"))) | 2780 " (no messages)"))) |
2781 (vm-spooled-mail-waiting " Mail") | |
2701 (vm-message-list | 2782 (vm-message-list |
2702 (" %[ " vm-ml-message-attributes-alist | 2783 (" %[ " vm-ml-message-attributes-alist |
2703 (vm-ml-labels ("; " vm-ml-labels)) " %] ") | 2784 (vm-ml-labels ("; " vm-ml-labels)) " %] ") |
2704 (" %[%] ")) | 2785 (" %[%] ")) |
2705 "%p" " " global-mode-string)) | 2786 "%p" " " global-mode-string)) |
2751 (make-variable-buffer-local 'vm-ml-message-written) | 2832 (make-variable-buffer-local 'vm-ml-message-written) |
2752 (defvar vm-ml-message-marked nil) | 2833 (defvar vm-ml-message-marked nil) |
2753 (make-variable-buffer-local 'vm-ml-message-marked) | 2834 (make-variable-buffer-local 'vm-ml-message-marked) |
2754 ;; to make the tanjed compiler shut up | 2835 ;; to make the tanjed compiler shut up |
2755 (defvar vm-pop-read-point nil) | 2836 (defvar vm-pop-read-point nil) |
2837 (defvar vm-pop-ok-to-ask nil) | |
2756 (defvar vm-reply-list nil) | 2838 (defvar vm-reply-list nil) |
2757 (defvar vm-forward-list nil) | 2839 (defvar vm-forward-list nil) |
2758 (defvar vm-redistribute-list nil) | 2840 (defvar vm-redistribute-list nil) |
2759 (defvar current-itimer nil) | 2841 (defvar current-itimer nil) |
2760 (defvar current-menubar nil) | 2842 (defvar current-menubar nil) |
2852 (defvar vm-message-garbage-alist nil) | 2934 (defvar vm-message-garbage-alist nil) |
2853 (make-variable-buffer-local 'vm-message-garbage-alist) | 2935 (make-variable-buffer-local 'vm-message-garbage-alist) |
2854 (defvar vm-folder-garbage-alist nil) | 2936 (defvar vm-folder-garbage-alist nil) |
2855 (make-variable-buffer-local 'vm-folder-garbage-alist) | 2937 (make-variable-buffer-local 'vm-folder-garbage-alist) |
2856 (defconst vm-mime-header-list '("MIME-Version:" "Content-")) | 2938 (defconst vm-mime-header-list '("MIME-Version:" "Content-")) |
2857 (defconst vm-mime-xemacs-mule-charset-alist | 2939 (defconst vm-mime-mule-charset-to-coding-alist |
2858 '( | 2940 '( |
2859 ("us-ascii" no-conversion) | 2941 ("us-ascii" no-conversion) |
2860 ("iso-8859-1" no-conversion) | 2942 ("iso-8859-1" no-conversion) |
2861 ("iso-8859-2" iso-8859-2) | 2943 ("iso-8859-2" iso-8859-2) |
2862 ("iso-8859-3" iso-8859-3) | 2944 ("iso-8859-3" iso-8859-3) |
2870 ;; probably not correct, but probably better than nothing. | 2952 ;; probably not correct, but probably better than nothing. |
2871 ("iso-2022-jp-2" iso-2022-jp) | 2953 ("iso-2022-jp-2" iso-2022-jp) |
2872 ("iso-2022-int-1" iso-2022-int-1) | 2954 ("iso-2022-int-1" iso-2022-int-1) |
2873 ("iso-2022-kr" iso-2022-kr) | 2955 ("iso-2022-kr" iso-2022-kr) |
2874 ("euc-kr" iso-2022-kr) | 2956 ("euc-kr" iso-2022-kr) |
2957 )) | |
2958 (defvar vm-mime-mule-charset-to-charset-alist | |
2959 '( | |
2960 (latin-iso8859-1 "iso-8859-1") | |
2961 (latin-iso8859-2 "iso-8859-2") | |
2962 (latin-iso8859-3 "iso-8859-3") | |
2963 (latin-iso8859-4 "iso-8859-4") | |
2964 (cyrillic-iso8859-5 "iso-8859-5") | |
2965 (arabic-iso8859-6 "iso-8859-6") | |
2966 (greek-iso8859-7 "iso-8859-7") | |
2967 (hebrew-iso8859-8 "iso-8859-8") | |
2968 (latin-iso8859-9 "iso-8859-9") | |
2969 (japanese-jisx0208 "iso-2022-jp") | |
2970 (korean-ksc5601 "iso-2022-kr") | |
2971 (chinese-gb2312 "iso-2022-jp") | |
2972 (sisheng "iso-2022-jp") | |
2973 (thai-tis620 "iso-2022-jp") | |
2974 )) | |
2975 (defvar vm-mime-mule-coding-to-charset-alist | |
2976 '( | |
2977 (iso-2022-8 "iso-2022-jp") | |
2978 (iso-2022-7-unix "iso-2022-jp") | |
2979 (iso-2022-7-dos "iso-2022-jp") | |
2980 (iso-2022-7-mac "iso-2022-jp") | |
2875 )) | 2981 )) |
2876 (defconst vm-mime-charset-completion-alist | 2982 (defconst vm-mime-charset-completion-alist |
2877 '( | 2983 '( |
2878 ("us-ascii") | 2984 ("us-ascii") |
2879 ("iso-8859-1") | 2985 ("iso-8859-1") |