From: Eric Abrahamsen <eric@ericabrahamsen.net>
To: help-gnu-emacs@gnu.org
Subject: Re: How to extract the email address from the From: header?
Date: Fri, 24 Oct 2014 13:37:31 -0700 [thread overview]
Message-ID: <87vbn9yzjo.fsf@ericabrahamsen.net> (raw)
In-Reply-To: 87bnp15jbm.fsf@wmi.amu.edu.pl
Marcin Borkowski <mbork@wmi.amu.edu.pl> writes:
> Hi list,
>
> "From" headers (or "To" ones, for that matter) are sometimes plain email
> addresses and sometimes strings of the form "Real Name
> <email@add.ress>". 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?
Check `gnus-extract-address-components', which claims to be a
simpler/faster version of `mail-extract-address-components', which also
see.
Eric
prev parent reply other threads:[~2014-10-24 20:37 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-10-24 20:00 How to extract the email address from the From: header? Marcin Borkowski
2014-10-24 20:05 ` Allan Streib
2014-10-24 20:12 ` Igor Sosa Mayor
2014-10-24 20:37 ` Eric Abrahamsen [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87vbn9yzjo.fsf@ericabrahamsen.net \
--to=eric@ericabrahamsen.net \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).