Gnus development mailing list
 help / color / mirror / Atom feed
From: John Magolske <listmail@b79.net>
To: ding@gnus.org
Subject: Re: gnus-article-view-part-as-charset automatically? (display of \223 \224 \351 etc.)
Date: Wed, 18 Jan 2017 15:18:20 -0800	[thread overview]
Message-ID: <8737ggdkjn.fsf@b79.net> (raw)
In-Reply-To: <87h956daga.fsf@iki.fi> (Teemu Likonen's message of "Tue, 10 Jan 2017 20:41:25 +0200")

Teemu Likonen <tlikonen@iki.fi> writes:
> John Magolske [2017-01-10 10:30:24-08] wrote:
>> So in Gnus I select windows-1252 when doing:
>>
>>     M-x gnus-article-view-part-as-charset
>>
>> ...and the message displays properly. Is there a way to have this happen
>> automatically, perhaps with some sort of hook?
>
> I'd first try this:
>
>     (setq gnus-default-charset 'windows-1252)

So that setting by itself didn't work, but then I found the command
gnus-article-decode-mime-words would cause the message to display
properly. So now, with this in my gnus config file:

(setq gnus-default-charset 'windows-1252)
(add-hook 'gnus-summary-mode-hook
          (lambda ()
            (if (equal gnus-newsgroup-name "nnimap+imap-mail:nettime")
                (progn
                  (add-hook 'gnus-article-prepare-hook 'gnus-article-decode-mime-words))
              (progn
                (remove-hook 'gnus-article-prepare-hook 'gnus-article-decode-mime-words)))))

...everything displays properly for that mailing list without affecting
other lists/groups. There may be a more elegant/sensible solution
(a simple setting?) -- but this works for now.

Regards,

John

-- 
John Magolske
http://b79.net/contact



      parent reply	other threads:[~2017-01-18 23:18 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-01-10 18:30 John Magolske
2017-01-10 18:41 ` Teemu Likonen
2017-01-10 23:14   ` Katsumi Yamaoka
2017-01-11  0:39     ` John Magolske
2017-01-11 10:49       ` Andreas Schwab
2017-01-12  1:18         ` John Magolske
2017-01-10 23:28   ` John Magolske
2017-01-18 23:18   ` John Magolske [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=8737ggdkjn.fsf@b79.net \
    --to=listmail@b79.net \
    --cc=ding@gnus.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).