From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Klaus Zeitler Newsgroups: gmane.emacs.help Subject: mail-extract-address-components and silly address comments Date: 03 Apr 2003 15:21:30 +0200 Organization: Lucent Technologies Sender: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1049376713 4635 80.91.224.249 (3 Apr 2003 13:31:53 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Thu, 3 Apr 2003 13:31:53 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Thu Apr 03 15:31:50 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 1914oF-0001BD-00 for ; Thu, 03 Apr 2003 15:31:15 +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 1914nS-00053U-00 for gnu-help-gnu-emacs@m.gmane.org; Thu, 03 Apr 2003 08:30:26 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!cyclone.bc.net!arclight.uoregon.edu!news.infoave.net!newsfeed.frii.net!newsfeed.frii.net!news.compaq.com!uunet!sac.uu.net!netnews.proxy.lucent.com!news Original-Newsgroups: gnu.emacs.help Original-Lines: 23 Original-NNTP-Posting-Host: sfsw51.de.lucent.com User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2.95 Original-Xref: shelby.stanford.edu gnu.emacs.help:111638 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:8139 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:8139 I keep getting an increasing number of silly comments in email addresses that cause mail-extract-address-components to return nonsense full names. e.g. for the following 2 addresses mail-extract-address-components returns these full names: user@host (via the vacation program) -> "via the vacation program" "user via HyperNews" -> "user via HyperNews" Had a glance at mail-extract-address-components, but this function looks way too complicated for me. Is there a hook or some other means to remove uninteresting parts of an email address? Thanks, Klaus -- ------------------------------------------ | Klaus Zeitler Lucent Technologies | ------------------------------------------ --- Linux: The best things in life are free