<<< Date Index >>>     <<< Thread Index >>>

Re: charset question



* martin f krafft [Fri, 16 Jul 2004 12:43:38 +0200]:

  hi,

> set charset = "utf-8"
> set config_charset = "utf-8"
> set assumed_charset = "utf-8:iso-8859-15:iso-8859-1:latin1:us-ascii"
> set file_charset = "us-ascii:latin1:iso-8859-1:iso-8859-15:utf-8"
> set send_charset = "us-ascii:latin1:iso-8859-1:iso-8859-15:utf-8"

  I've put these five commands in /tmp/muttrc, and then:

    $ mutt -nF /tmp/muttrc $USER

  I've written a dummy message with only ascii chars and I receive it
  with a "Content-Type: text/plain; charset=us-ascii", of course.

> which produces exactly the desired results for attachments, but not
> for normal mail. If I send the message as an attachment,
> $send_charset is properly used and the message will be sent with the
> "lowest" possible charset specified in the MIME part header:
> us-ascii, unless I use latin1 stuff, unless I use iso-8859-1 stuff,
> unless...

  [as a side note, note that the "latin1:" bit is not necessary, since
  latin1 == iso-8859-1 IIUC.]

  [as a second side note, also note that you needn't set the charset
  variable if you locale envvars are properly set, you needn't set
  config_charset if it is the same as charset.]

> However, when I send a message as a plain RFC822 message without
> MIME, then the charset will always be set to utf-8, which is
> suboptimal.

  I don't understand what you mean by "send a message as a plain RFC822
  message", other than following the steps I said first. Can you be more
  explicit?

-- 
Adeodato Simó
    EM: asp16 [ykwim] alu.ua.es | PK: DA6AE621
 
The true teacher defends his pupils against his own personal influence.
                -- Amos Bronson Alcott