comparison lisp/vm/vm-vars.el @ 108:360340f9fd5f r20-1b6

Import from CVS: tag r20-1b6
author cvs
date Mon, 13 Aug 2007 09:18:39 +0200
parents a145efe76779
children fe104dbd9147
comparison
equal deleted inserted replaced
107:523141596bda 108:360340f9fd5f
613 613
614 (defvar vm-mime-8bit-text-transfer-encoding 'quoted-printable 614 (defvar vm-mime-8bit-text-transfer-encoding 'quoted-printable
615 "*Symbol specifying what kind of transfer encoding to use on 8bit 615 "*Symbol specifying what kind of transfer encoding to use on 8bit
616 text. Characters with the high bit set cannot safely pass 616 text. Characters with the high bit set cannot safely pass
617 through all mail gateways and mail transport software. MIME has 617 through all mail gateways and mail transport software. MIME has
618 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 safe
619 transport. Quoted-printable leaves the text mostly readable even 619 transport. Quoted-printable leaves the text mostly readable even
620 if the recipient does not have a MIME-capable mail reader. BASE64 620 if the recipient does not have a MIME-capable mail reader. BASE64
621 is unreadable without a MIME-capable mail reader, unless your name 621 is unreadable without a MIME-capable mail reader, unless your name
622 is U3BvY2s=. 622 is U3BvY2s=.
623 623
624 A value of 'quoted-printable, means to use quoted-printable encoding. 624 A value of 'quoted-printable, means to use quoted-printable encoding.
625 A value of 'base64 means to use BASE64 encoding. 625 A value of 'base64 means to use BASE64 encoding.
626 A value of '8bit means to send the message as is. 626 A value of '8bit means to send the message as is.
627 627
628 Note that this only applies to textual MIME content types. Images, audio, 628 Note that this variable usually only applies to textual MIME
629 video, etc. will always use BASE64 encoding. 629 content types. Images, audio, video, etc. typically will have
630 630 some attribute that makes VM consider them to be \"binary\",
631 Note that lines of 1000 characters or longer will automatically 631 which moves them outside the scope of this variable. For
632 trigger BASE64 encoding. Carriage returns (ascii code 13) in the 632 example, messages with line lengths of 1000 characters or more
633 text will also trigger BASE64 encoding.") 633 are considered binary, as are messages that contain carriage
634 returns (ascii code 13) or NULs (ascii code 0).")
635
636 (defvar vm-mime-composition-armor-from-lines nil
637 "*Non-nil value means \"From \" lines should be armored before sending.
638 A line beginning with \"From \" is considered a message separator
639 by many mail delivery agents. These agents will often insert a >
640 before the word \"From\" to prevent mail readers from being
641 confused. This is proper behavior, but it breaks digitally signed
642 messages, which require bit-perfect transport in order for the
643 message contents to be considered genuine.
644
645 If vm-mime-composition-armor-from-lines is non-nil, a line
646 beginning with \"From \" will cause VM to encode the message
647 using either quoted-printable or BASE64 encoding so that the From
648 line can be protected.")
634 649
635 (defvar vm-mime-attachment-auto-type-alist 650 (defvar vm-mime-attachment-auto-type-alist
636 '( 651 '(
637 ("\\.jpe?g" . "image/jpeg") 652 ("\\.jpe?g" . "image/jpeg")
638 ("\\.gif" . "image/gif") 653 ("\\.gif" . "image/gif")
3007 ("image/tiff") 3022 ("image/tiff")
3008 ("video/mpeg") 3023 ("video/mpeg")
3009 ("application/postscript") 3024 ("application/postscript")
3010 ("application/octet-stream") 3025 ("application/octet-stream")
3011 ("message/rfc822") 3026 ("message/rfc822")
3027 ("message/news")
3012 )) 3028 ))
3013 (defconst vm-mime-encoded-word-regexp 3029 (defconst vm-mime-encoded-word-regexp
3014 "=\\?\\([^?]+\\)\\?\\([BQ]\\)\\?\\([^?]+\\)\\?=") 3030 "=\\?\\([^?]+\\)\\?\\([BQ]\\)\\?\\([^?]+\\)\\?=")
3015 ;; for MS-DOS and Windows NT 3031 ;; for MS-DOS and Windows NT
3016 ;; nil value means text file 3032 ;; nil value means text file