From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Allan Streib Newsgroups: gmane.emacs.help Subject: Re: How to extract the email address from the From: header? Date: Fri, 24 Oct 2014 16:05:25 -0400 Message-ID: <87tx2tcjy2.fsf@indiana.edu> References: <87bnp15jbm.fsf@wmi.amu.edu.pl> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1414181164 6654 80.91.229.3 (24 Oct 2014 20:06:04 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 24 Oct 2014 20:06:04 +0000 (UTC) To: Marcin Borkowski , help-gnu-emacs Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Oct 24 22:05:57 2014 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 1Xhl7S-0006QV-QD for geh-help-gnu-emacs@m.gmane.org; Fri, 24 Oct 2014 22:05:54 +0200 Original-Received: from localhost ([::1]:50331 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xhl7S-0003t3-Cn for geh-help-gnu-emacs@m.gmane.org; Fri, 24 Oct 2014 16:05:54 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:55201) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xhl7A-0003sl-VE for help-gnu-emacs@gnu.org; Fri, 24 Oct 2014 16:05:44 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Xhl73-0002ZS-5C for help-gnu-emacs@gnu.org; Fri, 24 Oct 2014 16:05:36 -0400 Original-Received: from belushi.uits.indiana.edu ([129.79.1.188]:10582 helo=hartman.uits.indiana.edu) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xhl73-0002Z5-0m for help-gnu-emacs@gnu.org; Fri, 24 Oct 2014 16:05:29 -0400 X-IronPort-AV: E=Sophos;i="5.04,781,1406606400"; d="scan'208";a="186045469" Original-Received: from mssg-relay.indiana.edu ([129.79.1.73]) by irpt-internal-relay.indiana.edu with ESMTP; 24 Oct 2014 16:05:26 -0400 Original-Received: from hartman.uits.indiana.edu (hartman.uits.indiana.edu [129.79.1.194]) by mssg-relay.indiana.edu (8.14.7/8.14.4/IU Messaging Team) with ESMTP id s9OK5ION023376; Fri, 24 Oct 2014 16:05:26 -0400 X-IronPort-AV: E=Sophos;i="5.04,781,1406606400"; d="scan'208";a="186112416" Original-Received: from candy.uits.indiana.edu (HELO mail-relay.iu.edu) ([129.79.1.201]) by irpt-internal-relay.indiana.edu with ESMTP; 24 Oct 2014 16:05:26 -0400 Original-Received: from viking (156-56-93-99.dhcp-bl.indiana.edu [156.56.93.99]) (authenticated bits=0) by mail-relay.iu.edu (8.14.7/8.14.4/IU Messaging Team Submission) with ESMTP id s9OK5Pa2018247 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Fri, 24 Oct 2014 16:05:26 -0400 Original-Received: from localhost (1000@localhost [local]); by localhost (OpenSMTPD) with ESMTPA id 46065a15; Fri, 24 Oct 2014 16:05:25 -0400 (EDT) In-Reply-To: <87bnp15jbm.fsf@wmi.amu.edu.pl> User-Agent: Notmuch/0.17+186~g69867c3 (http://notmuchmail.org) Emacs/24.3.1 (x86_64-unknown-openbsd) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 129.79.1.188 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:100593 Archived-At: Marcin Borkowski writes: > "From" headers (or "To" ones, for that matter) are sometimes plain > email addresses and sometimes strings of the form "Real Name > ". I could write a function (or maybe even a regex) > to extract the email part in the latter case, but Emacs being Emacs, > I'm pretty sure something like that already exists. Am I right? Have a look at bbdb-snarf.el Allan