Bill Wohler | 30 Jul 2006 19:06
Picon
Picon
Gravatar

Bill Wohler: Re: MH-E: problem with MM_CHARSET and charset in send mail

I don't have time to dig into this for a while. Does anyone on this list
happen to have a ready answer?

Picon Picon
From: Bill Wohler <wohler <at> olgas.newt.com>
Subject: Re: MH-E: problem with MM_CHARSET and charset in send mail
Date: 2006-07-27 00:47:55 GMT
Aleksander Matuszak <max <at> amber.from.cx> wrote:

> I'm not sure if it is my fault or mh-e behaviour, but this is important
> for me. In my country (Poland) we use iso-8859-2 charset. According to
> mh-e manual I set shell variable MM_CHARSET to that value. 
> 
> After composing (simple textual with polish letters) message I just
> press C-c C-c, but in mime headers appeares iso-8859-1 instead of
> iso-8859-2.

That must be annoying. I don't readily have the answer to this, although
I should, and it should be in the manual.

It appears that you should be able to set message-default-charset, but
it's not working for me. I'm looking into the function mml-to-mime in
gnus/mml.el (which adds the Content-Type header) . I've got to leave
(Continue reading)

Jeramey Crawford | 31 Jul 2006 00:37
Picon

Re: Bill Wohler: Re: MH-E: problem with MM_CHARSET and charset in send mail

> I don't have time to dig into this for a while. Does anyone on this list
> happen to have a ready answer?
> 
> Aleksander Matuszak <max <at> amber.from.cx> wrote:
> 
> > I'm not sure if it is my fault or mh-e behaviour, but this is important
> > for me. In my country (Poland) we use iso-8859-2 charset. According to
> > mh-e manual I set shell variable MM_CHARSET to that value. 
> > 
> > After composing (simple textual with polish letters) message I just
> > press C-c C-c, but in mime headers appeares iso-8859-1 instead of
> > iso-8859-2.

I was running into a problem recently with the version of nmh shipped
with Debian Etch (version 1.1-RC4) in relation to MM_CHARSET. In my
case, nmh seemed to always prefer ISO-8859-1 no matter what. Perhaps
this is what you're running into as well?

The solution I ended up with was to uninstall the version of nmh that
Debian provides and to compile and install my own copy of nmh-1.2. Nmh
how recodes properly to UTF-8 as necessary for me.

Hope that helps,

     Jeramey

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
(Continue reading)

Aleksander Matuszak | 31 Jul 2006 01:16

Re: Bill Wohler: Re: MH-E: problem with MM_CHARSET and charset in send mail

Jeramey Crawford writes:

> > I don't have time to dig into this for a while. Does anyone on this list
> > happen to have a ready answer?
> > 
> > Aleksander Matuszak  wrote:
> > 
> > > I'm not sure if it is my fault or mh-e behaviour, but this is important
> > > for me. In my country (Poland) we use iso-8859-2 charset. According to
> > > mh-e manual I set shell variable MM_CHARSET to that value. 
> > > 
> > > After composing (simple textual with polish letters) message I just
> > > press C-c C-c, but in mime headers appeares iso-8859-1 instead of
> > > iso-8859-2.
> 
> I was running into a problem recently with the version of nmh shipped
> with Debian Etch (version 1.1-RC4) in relation to MM_CHARSET. In my
> case, nmh seemed to always prefer ISO-8859-1 no matter what. Perhaps
> this is what you're running into as well?
> 

Thank you for your reply, but I'm afraid that this is not the case. 
I am using Debian sarge v. 3.1 with nmh v. 1.1 but any message sent directly
from within nhm (without emacs) gets correct headers. This reply is composed
by standard repl command and you can examine headers.

   Aleksander 'max' Matuszak

BTW. Meanwhile I've subscribed to mh-e-users so there is no need to make
copy to me.
(Continue reading)

Bill Wohler | 31 Jul 2006 02:09
Picon
Picon
Gravatar

Re: Bill Wohler: Re: MH-E: problem with MM_CHARSET and charset in send mail

Aleksander Matuszak <max <at> amber.from.cx> wrote:

> BTW. Meanwhile I've subscribed to mh-e-users so there is no need to make
> copy to me.

Thanks for your interest. You might be interested in the
Mail-Followup-To header field. Set it to
mh-e-users <at> lists.sourceforge.net and replies will go to just the list. I
use it to that affect. See the header in this message (with the ,
command).

--

-- 
Bill Wohler <wohler <at> newt.com>  http://www.newt.com/wohler/  GnuPG ID:610BD9AD

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
Bill Wohler | 31 Jul 2006 00:49
Picon
Picon
Gravatar

Re: Bill Wohler: Re: MH-E: problem with MM_CHARSET and charset in send mail

Jeramey Crawford <jeramey <at> antihe.ro> wrote:

> > I don't have time to dig into this for a while. Does anyone on this list
> > happen to have a ready answer?
> > 
> > Aleksander Matuszak <max <at> amber.from.cx> wrote:
> > 
> > > I'm not sure if it is my fault or mh-e behaviour, but this is important
> > > for me. In my country (Poland) we use iso-8859-2 charset. According to
> > > mh-e manual I set shell variable MM_CHARSET to that value. 
> > > 
> > > After composing (simple textual with polish letters) message I just
> > > press C-c C-c, but in mime headers appeares iso-8859-1 instead of
> > > iso-8859-2.
> 
> I was running into a problem recently with the version of nmh shipped
> with Debian Etch (version 1.1-RC4) in relation to MM_CHARSET. In my
> case, nmh seemed to always prefer ISO-8859-1 no matter what. Perhaps
> this is what you're running into as well?
> 
> The solution I ended up with was to uninstall the version of nmh that
> Debian provides and to compile and install my own copy of nmh-1.2. Nmh
> how recodes properly to UTF-8 as necessary for me.

Interesting. I'm using nmh on etch as well. This bug might affect you if
you're not using MH-E, or if you have mh-compose-insertion set to MH.

However, if mh-compose-insertion is set to the default (MML), the
charset is getting set by the mml-to-mime Emacs function, well before
nmh has a chance to munge it.
(Continue reading)

Jeramey Crawford | 31 Jul 2006 01:19
Picon

Re: Bill Wohler: Re: MH-E: problem with MM_CHARSET and charset in send mail

Bill Wohler <wohler <at> newt.com> wrote:

> Interesting. I'm using nmh on etch as well. This bug might affect you if
> you're not using MH-E, or if you have mh-compose-insertion set to MH.
> 
> However, if mh-compose-insertion is set to the default (MML), the
> charset is getting set by the mml-to-mime Emacs function, well before
> nmh has a chance to munge it.

I should be a little clearer. What I was running into was that commands
like scan and show would not display anything other than ISO-8859-1 on
my system. I didn't really test whether post was munging text on the way
out and recoding it to something inappropriate as I was injecting test
messages into my mailer using a different method. (Bad, bad me.) It's
just a suspicion that it may be post misbehaving given the behavior of
other nmh utilities that I saw.

      Jeramey

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
Bill Wohler | 31 Jul 2006 02:07
Picon
Picon
Gravatar

Re: Bill Wohler: Re: MH-E: problem with MM_CHARSET and charset in send mail

Jeramey Crawford <jeramey <at> antihe.ro> wrote:

> Bill Wohler <wohler <at> newt.com> wrote:
> 
> > Interesting. I'm using nmh on etch as well. This bug might affect you if
> > you're not using MH-E, or if you have mh-compose-insertion set to MH.
> > 
> > However, if mh-compose-insertion is set to the default (MML), the
> > charset is getting set by the mml-to-mime Emacs function, well before
> > nmh has a chance to munge it.
> 
> I should be a little clearer. What I was running into was that commands
> like scan and show would not display anything other than ISO-8859-1 on
> my system.

OK. Aleksander pointed out a problem with composition. mml seems to be
always using iso-8859-1 as the charset in when *sending* messages (which
I also observe).

--

-- 
Bill Wohler <wohler <at> newt.com>  http://www.newt.com/wohler/  GnuPG ID:610BD9AD

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
Jeramey Crawford | 31 Jul 2006 05:40
Picon

Re: Bill Wohler: Re: MH-E: problem with MM_CHARSET and charset in send mail

Bill Wohler <wohler <at> newt.com> wrote:

> Jeramey Crawford <jeramey <at> antihe.ro> wrote:
> 
> > I should be a little clearer. What I was running into was that
> > commands like scan and show would not display anything other than
> > ISO-8859-1 on my system.
> 
> OK. Aleksander pointed out a problem with composition. mml seems to be
> always using iso-8859-1 as the charset in when *sending* messages
> (which I also observe).

I did a bit of experimenting and reading of elisp and found a
workaround. You can put this in your .emacs file:

     (prefer-coding-system 'iso-8859-2)

All messages composed with MH-E should now use that charset when sending
a message. The main problem with this is that it makes the chosen coding
system the default for *all* new buffers in Emacs which might be a bad
thing for some people.

	Jeramey

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
(Continue reading)


Gmane