unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: "積丹尼 Dan Jacobson" <jidanni@jidanni.org>
To: 45724@debbugs.gnu.org
Subject: bug#45724: 27.1; gnus vs. raw big5 headers vs. the second day
Date: Fri, 08 Jan 2021 13:43:20 +0800	[thread overview]
Message-ID: <87y2h4gf0n.8.fsf@jidanni.org> (raw)

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

Yes the mails we receive have properly mime encoded headers.
But let's say some agency sends an email with ancient illegal raw big5
headers:
$ iconv -f big5 headers.txt
Subject: 內政部部長電子信箱受理通知編號:20210108003         
From: "內政部部長電子信箱" <returnecss@minister.moi.gov.tw>

Well, on the first day, things work fine in gnus.

But on the second day upon reopening gnus, the headers have "degraded":


[-- Attachment #2: ugly --]
[-- Type: image/jpeg, Size: 50946 bytes --]

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


The *Summary* buffer has now a garbled line. Howver the *Article* buffer
is still doing fine.

Funny thing is, if we pipe the second article through procmail, and
enter gnus again, the newly created identical third article has an OK
*Summary* line.

Important settings:
  value of $LC_COLLATE: C
  value of $LC_CTYPE: zh_TW.UTF-8
  value of $LC_MESSAGES: C
  value of $LANG: zh_TW.UTF-8
  value of $XMODIFIERS: @im=ibus
  locale-coding-system: utf-8-unix

(One also notes raw big5 enters the .overview file, but not always.)

My dot files are at https://www.jidanni.org/comp/configuration/

Anyway, sure, gnus can deal with such wacky headers fine on the first
day.

But on the second day, after totally quitting emacs and starting up
again, such headers are no longer dealt with properly, at least in the
*Summary* buffer.

Sure, "Tell the agency to stop sending illegal headers." Well, yes...

             reply	other threads:[~2021-01-08  5:43 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-01-08  5:43 積丹尼 Dan Jacobson [this message]
2021-01-10 13:40 ` bug#45724: 27.1; gnus vs. raw big5 headers vs. the second day Lars Ingebrigtsen
2021-01-11 14:06   ` 積丹尼 Dan Jacobson
2021-01-22 18:09     ` Lars Ingebrigtsen
2021-01-19  1:04 ` bug#45724: Happens since 27.1 積丹尼 Dan Jacobson

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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=87y2h4gf0n.8.fsf@jidanni.org \
    --to=jidanni@jidanni.org \
    --cc=45724@debbugs.gnu.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.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

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 read-only IMAP folder(s) and NNTP newsgroup(s).