From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Marcin Borkowski Newsgroups: gmane.emacs.help Subject: How to extract the email address from the From: header? Date: Fri, 24 Oct 2014 22:00:45 +0200 Message-ID: <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 1414180879 2431 80.91.229.3 (24 Oct 2014 20:01:19 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 24 Oct 2014 20:01:19 +0000 (UTC) To: help-gnu-emacs Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Oct 24 22:01:14 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 1Xhl2u-0004Ui-Lx for geh-help-gnu-emacs@m.gmane.org; Fri, 24 Oct 2014 22:01:12 +0200 Original-Received: from localhost ([::1]:50325 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xhl2u-00038M-A1 for geh-help-gnu-emacs@m.gmane.org; Fri, 24 Oct 2014 16:01:12 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:54214) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xhl2g-00038A-3W for help-gnu-emacs@gnu.org; Fri, 24 Oct 2014 16:01:03 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Xhl2a-00013A-Eq for help-gnu-emacs@gnu.org; Fri, 24 Oct 2014 16:00:58 -0400 Original-Received: from msg.wmi.amu.edu.pl ([2001:808:114:2::50]:54717) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xhl2a-000124-8v for help-gnu-emacs@gnu.org; Fri, 24 Oct 2014 16:00:52 -0400 Original-Received: from localhost (localhost [127.0.0.1]) by msg.wmi.amu.edu.pl (Postfix) with ESMTP id 65C7A42260 for ; Fri, 24 Oct 2014 22:00:48 +0200 (CEST) Original-Received: from msg.wmi.amu.edu.pl ([127.0.0.1]) by localhost (msg.wmi.amu.edu.pl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id fW9sDpgnW0p8 for ; Fri, 24 Oct 2014 22:00:48 +0200 (CEST) Original-Received: from localhost (99-229.echostar.pl [213.156.99.229]) by msg.wmi.amu.edu.pl (Postfix) with ESMTPSA id 3DBB742255 for ; Fri, 24 Oct 2014 22:00:47 +0200 (CEST) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:808:114:2::50 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:100592 Archived-At: Hi list, "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? TIA, -- Marcin Borkowski http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski Adam Mickiewicz University