[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How to extract the email address from the From: header?
From: |
Eric Abrahamsen |
Subject: |
Re: How to extract the email address from the From: header? |
Date: |
Fri, 24 Oct 2014 13:37:31 -0700 |
User-agent: |
Gnus/5.130012 (Ma Gnus v0.12) Emacs/25.0.50 (gnu/linux) |
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