aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEli Zaretskii2001-01-22 17:15:50 +0000
committerEli Zaretskii2001-01-22 17:15:50 +0000
commiteed0ee77fad418670c2f87f581e8745871142739 (patch)
tree7b3cebe321b995855c4d99bf101bf35ef930d2b2
parentfd4976b812a6eeffc631b27e249013e0cc953848 (diff)
downloademacs-eed0ee77fad418670c2f87f581e8745871142739.tar.gz
emacs-eed0ee77fad418670c2f87f581e8745871142739.zip
(Rmail Display): Document rmail-redecode-body.
-rw-r--r--man/rmail.texi42
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
976means to show the full header. 976means 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
980highlights certain header fields that are especially interesting---by 980highlights certain header fields that are especially interesting---by
981default, the @samp{From} and @samp{Subject} fields. The variable 981default, 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
996URLs in messages may be highlighted and activated for following with the 996 URLs in messages may be highlighted and activated for following with the
997mouse or keyboard by customizing the hook @code{rmail-show-message-hook} 997mouse or keyboard by customizing the hook @code{rmail-show-message-hook}
998to add @code{goto-addr}. 998to add @code{goto-addr}.
999 999
1000@cindex decoding mail messages (Rmail)
1001 Rmail automatically decodes messages which contain non-@sc{ascii}
1002characters, like it does with visited files and output from
1003subprocesses. Rmail uses the standard ``charset=@var{encoding}''
1004header in the message to find out how was the message encoded by the
1005sender. It then maps @var{encoding} into the corresponding coding
1006system (@pxref{Coding Systems}), and uses that coding system to decode
1007message text. If the message header doesn't have the charset
1008specification, or if the @var{encoding} it specifies is not recognized
1009by Emacs, Rmail attempts to detect the encoding by applying the usual
1010heuristics 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
1015Emacs failed to guess the encoding in the absence of the ``charset''
1016specification, or because the ``charset'' specification was wrong.
1017For example, a misconfigured mailer could send a message with a
1018``charset=iso-8859-1'' header whereas the mssage is encoded in koi8-r.
1019Whenever you see a message text garbled or some of its characters
1020displayed as empty boxes, you can try to fix that by decoding the
1021message again using a specific coding system. (This requires that you
1022guess the correct encoding, or talk to the sender and ask them.) To
1023that end, invoke the @code{rmail-redecode-body} command. It prompts
1024for a name of a coding system and then redecodes the message body
1025using that coding system.
1026
1027 Redecoding the message body is a lossless operation with most
1028encodings, in particular with 8-bit encodings such as iso-8859 or
1029koi8. So, if the initial attempt to redecode the message didn't
1030result in a legible text, you could try other possible encodings,
1031until 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
1035the message. However, such encodings rarely cause the kind of trouble
1036for 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