Gnus development mailing list
 help / color / mirror / Atom feed
* Coping with ELM and MIME
@ 1999-07-13  0:43 Peter von der Ahé
  1999-07-13  5:20 ` Shenghuo ZHU
  0 siblings, 1 reply; 3+ messages in thread
From: Peter von der Ahé @ 1999-07-13  0:43 UTC (permalink / raw)


Hi!

Pterodactyl Gnus v0.95

Sometimes I get a mail from an ELM user with this header:

Content-Type: text

No Mime-version or CTE header, just CT with no charset.  The problem
is that the mail really is in the iso-8859-1 charset.  Chars like æ
are shown as \346.

Can I do anything besides editing the headers of the mail to get the
\346 shown as æ?

Cheers,
Peter


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Coping with ELM and MIME
  1999-07-13  0:43 Coping with ELM and MIME Peter von der Ahé
@ 1999-07-13  5:20 ` Shenghuo ZHU
  1999-07-14 11:13   ` Peter von der Ahé
  0 siblings, 1 reply; 3+ messages in thread
From: Shenghuo ZHU @ 1999-07-13  5:20 UTC (permalink / raw)
  Cc: ding

[-- Attachment #1: Type: text/plain, Size: 652 bytes --]

>>>>> "Ahe" == Peter von der Ahé <pahe@daimi.au.dk> writes:

Ahe> Hi!
Ahe> Pterodactyl Gnus v0.95

Ahe> Sometimes I get a mail from an ELM user with this header:

Ahe> Content-Type: text

Ahe> No Mime-version or CTE header, just CT with no charset.  The problem
Ahe> is that the mail really is in the iso-8859-1 charset.  Chars like æ
Ahe> are shown as \346.

Ahe> Can I do anything besides editing the headers of the mail to get the
Ahe> \346 shown as æ?

Ahe> Cheers,
Ahe> Peter

The Content-Type is broken. 

This patch will fix broken CT.

1999-07-12  Shenghuo ZHU  <zsh@cs.rochester.edu>

	* gnus-art.el (article-decode-charset): Fix broken CT.



[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 95-zsh5.diff --]
[-- Type: text/x-patch, Size: 353 bytes --]

--- gnus-art.el	1999/07/13 03:02:39	1.1
+++ gnus-art.el	1999/07/13 05:18:37
@@ -1403,6 +1403,8 @@
 	      (save-excursion (set-buffer gnus-summary-buffer)
 			      gnus-newsgroup-ignored-charsets))
 	     buffer-read-only)
+	(if (and ctl (not (string-match "/" (car ctl)))) 
+	    (setq ctl nil))
 	(goto-char (point-max))
 	(widen)
 	(forward-line 1)

[-- Attachment #3: Type: text/plain, Size: 18 bytes --]


-- 
Shenghuo ZHU

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Coping with ELM and MIME
  1999-07-13  5:20 ` Shenghuo ZHU
@ 1999-07-14 11:13   ` Peter von der Ahé
  0 siblings, 0 replies; 3+ messages in thread
From: Peter von der Ahé @ 1999-07-14 11:13 UTC (permalink / raw)


>>>>> "ZSH" == Shenghuo ZHU <zsh@cs.rochester.edu> writes:

 ZSH> The Content-Type is broken.

 ZSH> This patch will fix broken CT.

 ZSH> 1999-07-12 Shenghuo ZHU <zsh@cs.rochester.edu>

 ZSH> 	* gnus-art.el (article-decode-charset): Fix broken CT.


That fixed the problem.

Thank you!


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~1999-07-14 11:13 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-07-13  0:43 Coping with ELM and MIME Peter von der Ahé
1999-07-13  5:20 ` Shenghuo ZHU
1999-07-14 11:13   ` Peter von der Ahé

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).