From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Kevin Rodgers Newsgroups: gmane.emacs.help Subject: Re: Help on mail-abbrev-insert-alias and quotation marks Date: Thu, 18 Oct 2012 20:51:39 -0600 Message-ID: References: <20120914.212401.116284496.harkiisk@gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1350615104 13751 80.91.229.3 (19 Oct 2012 02:51:44 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 19 Oct 2012 02:51:44 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Oct 19 04:51:52 2012 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1TP2gg-0001bP-KA for geh-help-gnu-emacs@m.gmane.org; Fri, 19 Oct 2012 04:51:50 +0200 Original-Received: from localhost ([::1]:34871 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TP2gZ-0001HS-Dk for geh-help-gnu-emacs@m.gmane.org; Thu, 18 Oct 2012 22:51:43 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:57304) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TP2gU-0001HJ-K2 for help-gnu-emacs@gnu.org; Thu, 18 Oct 2012 22:51:39 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TP2gT-0005eH-FP for help-gnu-emacs@gnu.org; Thu, 18 Oct 2012 22:51:38 -0400 Original-Received: from plane.gmane.org ([80.91.229.3]:60775) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TP2gT-0005e8-8E for help-gnu-emacs@gnu.org; Thu, 18 Oct 2012 22:51:37 -0400 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1TP2gW-0001QL-Q1 for help-gnu-emacs@gnu.org; Fri, 19 Oct 2012 04:51:40 +0200 Original-Received: from c-71-237-25-24.hsd1.co.comcast.net ([71.237.25.24]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 19 Oct 2012 04:51:40 +0200 Original-Received: from kevin.d.rodgers by c-71-237-25-24.hsd1.co.comcast.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 19 Oct 2012 04:51:40 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 44 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: c-71-237-25-24.hsd1.co.comcast.net User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.4; en-US; rv:1.9.2.28) Gecko/20120306 Thunderbird/3.1.20 In-Reply-To: <20120914.212401.116284496.harkiisk@gmail.com> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:87321 Archived-At: On 9/14/12 12:24 PM, Harri Kiiskinen wrote: > I'm using Mew mail on Emacs, with BBDB to manage addresses. The Mew > support for BBDB is not complete, for example there is no way the > mail-alias can be used in address completion. > > To circumvent this limitation, it is possible to call directly > 'mail-abbrev-insert-alias' on the "To: " header line and have the > mailabbrev fill the addresses that it automagically gets from BBDB > (i.e. I have no idea how it gets them). > > The only problem is that if the name of an adressee contains non-ascii > characters, the name is wrapped in quotation marks, which then means > that the message can not be sent, as Mew complains about these > quotation marks Then that is a bug in Mew. > – it is perfectly able to handle those non-ascii > characters. I.e., what comes out is: > > To: "Jani Jämsä", Lari Laine > > when what should come out is > > To: Jani Jämsä, Lari Laine > > Now, my question is, is there any way the 'mail-abbrev-insert-alias' > can be made to return the list of addresses matching the alias without > any of the names wrapped in quotation marks? It is not customizable, you need to remove this part of define-mail-abbrev in mailabbrev.el: ;; If the full name contains a problem character, quote it. (and (string-match "\\(.+?\\)[ \t]*\\(<.*>\\)" this-entry) (string-match "[^- !#$%&'*+/0-9=?A-Za-z^_`{|}~]" (match-string 1 this-entry)) (setq this-entry (replace-regexp-in-string "\\(.+?\\)[ \t]*\\(<.*>\\)" "\"\\1\" \\2" this-entry))) -- Kevin Rodgers Denver, Colorado, USA