From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Alexander Pohoyda" Newsgroups: gmane.emacs.bugs Subject: Re: RMAIL, multipart MIME-type, charset fix Date: Mon, 29 Sep 2003 12:10:46 +0200 (MEST) Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Message-ID: <12758.1064830246@www47.gmx.net> References: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1064833248 12650 80.91.224.253 (29 Sep 2003 11:00:48 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 29 Sep 2003 11:00:48 +0000 (UTC) Cc: bug-gnu-emacs@gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Sep 29 13:00:46 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1A3vlm-0002TZ-00 for ; Mon, 29 Sep 2003 13:00:46 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.22) id 1A3vkw-0003EL-TD for geb-bug-gnu-emacs@m.gmane.org; Mon, 29 Sep 2003 06:59:54 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.22) id 1A3vku-0003E2-LR for bug-gnu-emacs@gnu.org; Mon, 29 Sep 2003 06:59:52 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.22) id 1A3vgH-0002im-VE for bug-gnu-emacs@gnu.org; Mon, 29 Sep 2003 06:55:37 -0400 Original-Received: from [213.165.64.20] (helo=mail.gmx.net) by monty-python.gnu.org with smtp (Exim 4.22) id 1A3uzS-0007Np-NP for bug-gnu-emacs@gnu.org; Mon, 29 Sep 2003 06:10:51 -0400 Original-Received: (qmail 8633 invoked by uid 0); 29 Sep 2003 10:10:46 -0000 Original-Received: from 194.39.131.40 by www47.gmx.net with HTTP; Mon, 29 Sep 2003 12:10:46 +0200 (MEST) Original-To: Eli Zaretskii X-Priority: 3 (Normal) X-Authenticated: #14602519 X-Mailer: WWW-Mail 1.6 (Global Message Exchange) X-Flags: 0001 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: Bug reports for GNU Emacs, the Swiss army knife of text editors List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.bugs:5876 X-Report-Spam: http://spam.gmane.org/gmane.emacs.bugs:5876 > > While I'm working on the correct solution (implementing missing RFC > > 2045, 2046, 2047 functionality), attached patch solves the problem > > today. It tries to find the wanted header field in the whole message, > > if it was not found in the message header. > > This should work for 98% of cases, I suppose. > > Is this supposed to work for messages that specify different charsets > for different parts? Unfortunately, no. The patch to fix this will be much bigger. While theoretically possible, I have never seen such a case before. > Or is it supposed to pick up just the charset > specification of the last part of the message? Yes, you are right. It is supposed to pick up the charset of the last text/plain bodypart, which is the 98% I mentioned. The most common mails I have problem with are GPG signed messages, and this simple patch solves the problem for me. -- Alexander Pohoyda PGP Key fingerprint: 7F C9 CC 5A 75 CD 89 72 15 54 5F 62 20 23 C6 44