* recoding messages to latin1+html when posting to yahoo groups?
@ 2008-01-29 15:00 James Leifer
2008-01-30 2:15 ` Katsumi Yamaoka
0 siblings, 1 reply; 4+ messages in thread
From: James Leifer @ 2008-01-29 15:00 UTC (permalink / raw)
To: info-gnus-english
Hello,
I'm running Ubuntu gutsy with
Gnus v5.13
GNU Emacs 23.0.60.1 (i486-pc-linux-gnu, GTK+ Version 2.12.0) of
2007-12-30 on iridium
and happily editing French emails and documents in utf-8 which gnus
handles beautifully for posting and reading.
My problem is that when I distribute messages via the Yahoo groups
mailing lists, all utf-8 accented characters get garbled. I did several
experiments with mm-content-transfer-encoding-defaults to see if base64,
8bit, or quoted-printable would be handled correctly by yahoo, with no
success. Yahoo only handles iso-8859-1.
If I had my choice, I would dump Yahoo groups and use a less broken list
manager, but I don't have this option!
So....
Is there any way to set a gnus hook that recodes a utf-8 email into
latin1 plus html entities when sending to any address of the form
.*@yahoogroupes.fr? I know that the unix program recode can do this
kind of thing, but I don't understand:
- which gnus or message hook I should modify;
- how such a conversion would interact with the mime handling;
- how to apply a conversion to the Subject line.
Any help would be gratefully received.
Regards,
James Leifer
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: recoding messages to latin1+html when posting to yahoo groups?
2008-01-29 15:00 recoding messages to latin1+html when posting to yahoo groups? James Leifer
@ 2008-01-30 2:15 ` Katsumi Yamaoka
2008-01-30 9:05 ` James Leifer
0 siblings, 1 reply; 4+ messages in thread
From: Katsumi Yamaoka @ 2008-01-30 2:15 UTC (permalink / raw)
To: info-gnus-english
>>>>> James Leifer wrote:
> I'm running Ubuntu gutsy with
> Gnus v5.13
> GNU Emacs 23.0.60.1 (i486-pc-linux-gnu, GTK+ Version 2.12.0) of
> 2007-12-30 on iridium
> and happily editing French emails and documents in utf-8 which gnus
> handles beautifully for posting and reading.
> My problem is that when I distribute messages via the Yahoo groups
> mailing lists, all utf-8 accented characters get garbled. I did several
> experiments with mm-content-transfer-encoding-defaults to see if base64,
> 8bit, or quoted-printable would be handled correctly by yahoo, with no
> success. Yahoo only handles iso-8859-1.
[...]
> Is there any way to set a gnus hook that recodes a utf-8 email into
> latin1 plus html entities when sending to any address of the form
> .*@yahoogroupes.fr? I know that the unix program recode can do this
> kind of thing, but I don't understand:
An easy way is to customize the `mm-coding-system-priorities'
variable so that Latin-1 may be most preferred when encoding
messages. To do that:
(setq mm-coding-system-priorities '(iso-8859-1))
It affects all messages to send, but isn't it enough for you?
If you want it to affect only messages to send to yahoogroupes.fr,
there will be several ways. Here is one of them:
(defadvice mml-to-mime (around prefer-latin1-in-yahoo-mails activate)
"Prefer Latin1 when encoding messages sent to @yahoogroupes.fr."
(let* ((recipients (message-options-get 'message-recipients))
(mm-coding-system-priorities
(if (and recipients
(string-match "@yahoogroupes\\.fr\\(?:,\\|\\'\\)"
recipients))
(cons 'iso-8859-1 mm-coding-system-priorities)
mm-coding-system-priorities)))
ad-do-it))
To try it, evaluate this form or put it in your ~/.gnus.el file.
People might know the smart way better than this. Anyone? ;-)
At any rate, please note that Gnus will use the charset that is
not Latin-1 if the message contains text which cannot be encoded
by it.
Regards,
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: recoding messages to latin1+html when posting to yahoo groups?
2008-01-30 2:15 ` Katsumi Yamaoka
@ 2008-01-30 9:05 ` James Leifer
2008-01-30 20:28 ` Reiner Steib
0 siblings, 1 reply; 4+ messages in thread
From: James Leifer @ 2008-01-30 9:05 UTC (permalink / raw)
To: info-gnus-english
Katsumi,
Thank you so much for your reply!
I think that I need something different, though. It's probably my
fault for not being clearer...
I'm pasting in to the emails text files in utf8 and my emacs
technology for generating accented characters is also based on utf8.
What I want is for the utf8 message to be forcably recoded to latin1
when posting, i.e. for there to be some kind of mime-to-mime
transformation that takes the message and changes the charset.
To make the problem simpler, we can assume that all the characters I
use in utf8 have a valid representation in latin1.
Is there support for this kind of thing?
Thank you again,
James
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: recoding messages to latin1+html when posting to yahoo groups?
2008-01-30 9:05 ` James Leifer
@ 2008-01-30 20:28 ` Reiner Steib
0 siblings, 0 replies; 4+ messages in thread
From: Reiner Steib @ 2008-01-30 20:28 UTC (permalink / raw)
To: info-gnus-english
On Wed, Jan 30 2008, James Leifer wrote:
> To make the problem simpler, we can assume that all the characters I
> use in utf8 have a valid representation in latin1.
If that is correct (I doubt it ;-)), then (setq
mm-coding-system-priorities '(iso-8859-1)) is the right thing, no
matter what your "technology for generating accented characters" is.
Bye, Reiner.
--
,,,
(o o)
---ooO-(_)-Ooo--- | PGP key available | http://rsteib.home.pages.de/
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2008-01-30 20:28 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-01-29 15:00 recoding messages to latin1+html when posting to yahoo groups? James Leifer
2008-01-30 2:15 ` Katsumi Yamaoka
2008-01-30 9:05 ` James Leifer
2008-01-30 20:28 ` Reiner Steib
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).