Re: Q: View as Windows-1252?
- To: mutt-users@xxxxxxxx
- Subject: Re: Q: View as Windows-1252?
- From: Kyle Wheeler <kyle-mutt@xxxxxxxxxxxxxx>
- Date: Fri, 3 Aug 2007 08:56:57 -0500
- Comment: DomainKeys? See http://domainkeys.sourceforge.net/
- Dkim-signature: v=0.5; a=rsa-sha1; c=relaxed; d=memoryhole.net; h=received:date:from:to:subject:message-id:mail-followup-to:references:mime-version:content-type:content-disposition:in-reply-to:user-agent; q=dns/txt; s=default; bh=+AkpLQwadTgfX+pqsc5mIdsamvs=; b=jpitWne68awOfB0Go97u3fXz6QGrvOk/+GkgPeVA/iea5Z+MuGWz3WpsUPw6TcgX65MWTgn7TaqMGJ2AoHRM9dIkb0P17YJZmnBEdIpp0OOitcOr92s9bGNy95aLZQT10XYbltzjVGvN6L/YIcA9WhInbeMBC8PzL8HuoUC3ggE=
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=default; d=memoryhole.net; b=iPUAbfHFlB+10kT+qzfcbpUm/0ZY6IgpzuKipdQe5+dWuZqUXRrl9umplGY2+7YuAPCBQewNOK9OHB02TFpGJ92X68eVixz/GO98Vkr7wfNM0T/WQRWWrNGlzLs7eNIZt8AFOFG5QSZJ9SK772qcR5pvguao4BWTVSr/LZsyzBk=; h=Received:Date:From:To:Subject:Message-ID:Mail-Followup-To:References:MIME-Version:Content-Type:Content-Disposition:In-Reply-To:User-Agent;
- In-reply-to: <20070803133738.GB13989@xxxxxxxxxxxxxxxxxxxxxxxx>
- List-post: <mailto:mutt-users@mutt.org>
- List-unsubscribe: send mail to majordomo@mutt.org, body only "unsubscribe mutt-users"
- Mail-followup-to: mutt-users@xxxxxxxx
- References: <20070803133738.GB13989@xxxxxxxxxxxxxxxxxxxxxxxx>
- Sender: owner-mutt-users@xxxxxxxx
- User-agent: Mutt/1.5.13 (2006-08-11)
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Friday, August 3 at 03:37 PM, quoth Kai Grossjohann:
> I find that I (fairly) often get messages with no charset specified, or
> with the wrong charset specified, so I do Ctrl-E on them and edit the
> charset parameter to windows-1252, which seems to work well for most
> cases.
What you probably want to do is set up some charset-hooks. For
example:
charset-hook none windows-1252
charset-hook unknown windows-1252
charset-hook x-unknown windows-1252
charset-hook unknown-8bit windows-1252
charset-hook windows-1251 windows-1252
I have a bunch of hooks like this to fix known bad charsets. The
'assumed_charset' feature is also really really useful:
set assumed_charset=us-ascii:windows-1252:utf-8
And finally, windows is a superset of this other, and this other is
often incorrectly labelled by brain-dead webmail applications:
charset-hook iso-8859-1 windows-1252
> Is it possble to automate this, so that I only have to press a
> single key?
The way you'd have to do it is to pipe the message to a script that
replaces that header.
~Kyle
- --
Families are like fudge... mostly sweet with a few nuts.
-- Unknown
-----BEGIN PGP SIGNATURE-----
Comment: Thank you for using encryption!
iD8DBQFGszQpBkIOoMqOI14RAiqsAJ9Ein01r4CakLLNW2RqM+nMx5DrtgCeKA5y
3iBNiIDhbmFFgBH+UMeOSp4=
=p9kd
-----END PGP SIGNATURE-----