diff options
| author | Eli Zaretskii | 2001-01-22 17:15:50 +0000 |
|---|---|---|
| committer | Eli Zaretskii | 2001-01-22 17:15:50 +0000 |
| commit | eed0ee77fad418670c2f87f581e8745871142739 (patch) | |
| tree | 7b3cebe321b995855c4d99bf101bf35ef930d2b2 | |
| parent | fd4976b812a6eeffc631b27e249013e0cc953848 (diff) | |
| download | emacs-eed0ee77fad418670c2f87f581e8745871142739.tar.gz emacs-eed0ee77fad418670c2f87f581e8745871142739.zip | |
(Rmail Display): Document rmail-redecode-body.
| -rw-r--r-- | man/rmail.texi | 42 |
1 files changed, 40 insertions, 2 deletions
diff --git a/man/rmail.texi b/man/rmail.texi index e86e211c471..1945545b724 100644 --- a/man/rmail.texi +++ b/man/rmail.texi | |||
| @@ -976,7 +976,7 @@ means to show the reformatted header, and a zero or negative argument | |||
| 976 | means to show the full header. | 976 | means to show the full header. |
| 977 | 977 | ||
| 978 | @vindex rmail-highlighted-headers | 978 | @vindex rmail-highlighted-headers |
| 979 | When used with a terminal that supports multiple fonts, Rmail | 979 | When used with a terminal that supports multiple fonts or colors, Rmail |
| 980 | highlights certain header fields that are especially interesting---by | 980 | highlights certain header fields that are especially interesting---by |
| 981 | default, the @samp{From} and @samp{Subject} fields. The variable | 981 | default, the @samp{From} and @samp{Subject} fields. The variable |
| 982 | @code{rmail-highlighted-headers} holds a regular expression that | 982 | @code{rmail-highlighted-headers} holds a regular expression that |
| @@ -993,10 +993,48 @@ highlighting as well. @xref{Faces}, for how to do this. | |||
| 993 | @code{rmail-highlighted-headers} to @code{nil}. | 993 | @code{rmail-highlighted-headers} to @code{nil}. |
| 994 | 994 | ||
| 995 | @findex goto-addr | 995 | @findex goto-addr |
| 996 | URLs in messages may be highlighted and activated for following with the | 996 | URLs in messages may be highlighted and activated for following with the |
| 997 | mouse or keyboard by customizing the hook @code{rmail-show-message-hook} | 997 | mouse or keyboard by customizing the hook @code{rmail-show-message-hook} |
| 998 | to add @code{goto-addr}. | 998 | to add @code{goto-addr}. |
| 999 | 999 | ||
| 1000 | @cindex decoding mail messages (Rmail) | ||
| 1001 | Rmail automatically decodes messages which contain non-@sc{ascii} | ||
| 1002 | characters, like it does with visited files and output from | ||
| 1003 | subprocesses. Rmail uses the standard ``charset=@var{encoding}'' | ||
| 1004 | header in the message to find out how was the message encoded by the | ||
| 1005 | sender. It then maps @var{encoding} into the corresponding coding | ||
| 1006 | system (@pxref{Coding Systems}), and uses that coding system to decode | ||
| 1007 | message text. If the message header doesn't have the charset | ||
| 1008 | specification, or if the @var{encoding} it specifies is not recognized | ||
| 1009 | by Emacs, Rmail attempts to detect the encoding by applying the usual | ||
| 1010 | heuristics and defaults (@pxref{Recognize Coding}). | ||
| 1011 | |||
| 1012 | @findex rmail-redecode-body | ||
| 1013 | @cindex fixing incorrectly decoded mail messages | ||
| 1014 | Occasionally, a message might be decoded incorrectly, either because | ||
| 1015 | Emacs failed to guess the encoding in the absence of the ``charset'' | ||
| 1016 | specification, or because the ``charset'' specification was wrong. | ||
| 1017 | For example, a misconfigured mailer could send a message with a | ||
| 1018 | ``charset=iso-8859-1'' header whereas the mssage is encoded in koi8-r. | ||
| 1019 | Whenever you see a message text garbled or some of its characters | ||
| 1020 | displayed as empty boxes, you can try to fix that by decoding the | ||
| 1021 | message again using a specific coding system. (This requires that you | ||
| 1022 | guess the correct encoding, or talk to the sender and ask them.) To | ||
| 1023 | that end, invoke the @code{rmail-redecode-body} command. It prompts | ||
| 1024 | for a name of a coding system and then redecodes the message body | ||
| 1025 | using that coding system. | ||
| 1026 | |||
| 1027 | Redecoding the message body is a lossless operation with most | ||
| 1028 | encodings, in particular with 8-bit encodings such as iso-8859 or | ||
| 1029 | koi8. So, if the initial attempt to redecode the message didn't | ||
| 1030 | result in a legible text, you could try other possible encodings, | ||
| 1031 | until you succeed. | ||
| 1032 | |||
| 1033 | With some encodings, notably those from the iso-2022 family, | ||
| 1034 | @code{rmail-redecode-body} might fail to recover the original form of | ||
| 1035 | the message. However, such encodings rarely cause the kind of trouble | ||
| 1036 | for which @code{rmail-redecode-body} is intended to be used. | ||
| 1037 | |||
| 1000 | @node Rmail Editing | 1038 | @node Rmail Editing |
| 1001 | @section Editing Within a Message | 1039 | @section Editing Within a Message |
| 1002 | 1040 | ||