From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Kevin Rodgers Newsgroups: gmane.emacs.bugs Subject: Re: mail-extract-address-components doesn't handle MIME-encoded full name Date: Thu, 08 May 2003 16:22:10 -0600 Sender: bug-gnu-emacs-bounces+gnu-bug-gnu-emacs=m.gmane.org@gnu.org Message-ID: <3EBAD892.7050607@yahoo.com> References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Trace: main.gmane.org 1052432721 28863 80.91.224.249 (8 May 2003 22:25:21 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Thu, 8 May 2003 22:25:21 +0000 (UTC) Original-X-From: bug-gnu-emacs-bounces+gnu-bug-gnu-emacs=m.gmane.org@gnu.org Fri May 09 00:25:19 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 19DtpH-0007VD-00 for ; Fri, 09 May 2003 00:25:19 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 19DtoQ-00030R-04 for gnu-bug-gnu-emacs@m.gmane.org; Thu, 08 May 2003 18:24:26 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 19DtoB-0002xt-00 for bug-gnu-emacs@prep.ai.mit.edu; Thu, 08 May 2003 18:24:11 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 19Dtmc-0001hu-00 for bug-gnu-emacs@prep.ai.mit.edu; Thu, 08 May 2003 18:22:35 -0400 Original-Received: from ashd1-1.relay.mail.uu.net ([199.171.54.245]) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 19DtmK-0001dF-00 for bug-gnu-emacs@prep.ai.mit.edu; Thu, 08 May 2003 18:22:16 -0400 Original-Received: from mail.fu-berlin.de by mr0.ash.ops.us.uu.net with ESMTP (peer crosschecked as: mail.fu-berlin.de [160.45.11.165]) id QQonvt13390 for ; Thu, 8 May 2003 22:22:08 GMT Original-Received: by mail.fu-berlin.de (Smail3.2.0.98) from Curry.ZEDAT.FU-Berlin.DE (160.45.10.36) with esmtp id ; Fri, 9 May 2003 00:22:00 +0200 (MEST) Original-Received: by Curry.ZEDAT.FU-Berlin.DE (Smail3.2.0.98) from news.fu-berlin.de with bsmtp id ; Fri, 9 May 2003 00:22:01 +0200 (MEST) Original-To: gnu-emacs-bug@moderators.isc.org Original-Path: 170.207.51.80!not-for-mail Original-Newsgroups: gnu.emacs.bug Original-Lines: 22 X-Orig-NNTP-Posting-Host: 170.207.51.80 X-Orig-X-Trace: fu-berlin.de 1052432521 18751934 170.207.51.80 (16 [82742]) User-Agent: Mozilla/5.0 (X11; U; SunOS i86pc; en-US; rv:0.9.4.1) Gecko/20020406 Netscape6/6.2.2 X-Accept-Language: en-us X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Bug reports for GNU Emacs, the Swiss army knife of text editors List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: bug-gnu-emacs-bounces+gnu-bug-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.bugs:4985 X-Report-Spam: http://spam.gmane.org/gmane.emacs.bugs:4985 I wrote: > mail-extract-address-components should either return the MIME-encoded > full name > so the caller can decode it > > ("=?iso-8859-1?q?Laurent=20Laporte?=" "laurentlaporte@yahoo.com") > > or decode it itself > > ("Laurent Laporte" "laurentlaporte@yahoo.com") Or perhaps the caller should decode the From: header contents first; that's what I'm doing for VM now: (defadvice mail-extr-voodoo (before vm-decode-mime-encoded-words activate) "Decode MIME-encoded words before interepreting the buffer contents." (vm-decode-mime-encoded-words)) -- Kevin Rodgers