| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
RFC2047 (Message Header Extensions for Non-ASCII Text) specifies how non-ASCII text in headers are to be encoded. This is actually rather complicated, so a number of variables are necessary to tweak what this library does.
The following variables are tweakable:
rfc2047-header-encoding-alist
The keys can either be header regexps, or t.
The values can be nil, in which case the header(s) in question
won't be encoded, mime, which means that they will be encoded, or
address-mime, which means the header(s) will be encoded carefully
assuming they contain addresses.
rfc2047-charset-encoding-alist
Q (a
Quoted-Printable-like encoding) and B (base64). This alist
specifies which charset should use which encoding.
rfc2047-encode-function-alist
Q, B and nil.
rfc2047-encoded-word-regexp
rfc2047-encoded-word-regexp-loose
rfc2047-encoded-word-regexp is made loose.
rfc2047-encode-encoded-words
rfc2047-encoded-word-regexp is used to look for such words.
rfc2047-allow-irregular-q-encoded-words
nil, rfc2047-encoded-word-regexp-loose is used instead
of rfc2047-encoded-word-regexp to look for encoded words.
Those were the variables, and these are this functions:
rfc2047-narrow-to-field
rfc2047-encode-message-header
rfc2047-header-encoding-alist.
rfc2047-encode-region
rfc2047-encode-string
rfc2047-decode-region
rfc2047-decode-string
rfc2047-encode-parameter
rfc2231-encode-string function. See section 4.2 rfc2231.
When attaching files as MIME parts, we should use the RFC2231 encoding to specify the file names containing non-ASCII characters. However, many mail softwares don't support it in practice and recipients won't be able to extract files with correct names. Instead, the RFC2047-like encoding is acceptable generally. This function provides the very RFC2047-like encoding, resigning to such a regrettable trend. To use it, put the following line in your `~/.gnus.el' file:
(defalias 'mail-header-encode-parameter 'rfc2047-encode-parameter) |
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |