From: Lars Magne Ingebrigtsen <larsi@ifi.uio.no>
Subject: Re: message-user-mail-address and other addresses
Date: 16 Apr 1996 19:47:56 +0200 [thread overview]
Message-ID: <w8spw98awmr.fsf@hler.ifi.uio.no> (raw)
In-Reply-To: <199604160746.JAA04365@bombur2.uio.no>
Hallvard B Furuseth <h.b.furuseth@usit.uio.no> writes:
> (message-user-mail-address) in message.el seems to think that
> user-mail-address can contain more than just the address, such as
> "name <address>". This is wrong, and if we teach users to put "name
> <address>" in user-mail-address, packages that expect a plain address
> will fail. Examples: sendmail.el, add-log.el, rmailsum.el.
That's true. However, many (many) people, especially people mostly
using XEmacs, it seems, have a `user-mail-address' that contains more
than just the address. I don't normally think one should cater to
brokenness, but in this instance there were just too many people that
experienced problems.
> But if that's the idea, (message-user-mail-address) does not work
> correctly anyway:
> (let ((user-mail-address "Hallvard Furuz <hbf@usit.uio.no>"))
> (message-user-mail-address))
> ==> "<hbf@usit.uio.no>"
Yup. 0.74 will use `mail-extract-address-components' to extract the
address parts. I think it does a good job. I tried it on all the
examples you gave, and it failed only on one:
> @bsd.urgu.e-burg.su,@optoel.uucp:aleck@optoel.urgu.e-burg.su
(nth 1 (mail-extract-address-components
"@bsd.urgu.e-burg.su,@optoel.uucp:aleck@optoel.urgu.e-burg.su"))
=>
"aleck@optoel.urgu.e-burg.su"
Perhaps one should send a bug report to the mail-extr people?
--
"Yes. The journey through the human heart
would have to wait until some other time."
next prev parent reply other threads:[~1996-04-16 17:47 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
1996-04-16 7:46 Hallvard B Furuseth
1996-04-16 17:47 ` Lars Magne Ingebrigtsen [this message]
1996-04-16 19:32 ` Hallvard B Furuseth
1996-04-16 21:58 ` Lars Magne Ingebrigtsen
1996-04-16 19:34 ` SORRY (Was: Re: message-user-mail-address and other addresses) Hallvard B Furuseth
1996-04-16 20:38 ` message-user-mail-address and other addresses Jason L Tibbitts III
1996-04-16 21:36 ` Hallvard B Furuseth
1996-04-17 1:05 ` Jason L Tibbitts III
1996-04-16 21:15 ` Steven L Baur
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=w8spw98awmr.fsf@hler.ifi.uio.no \
--to=larsi@ifi.uio.no \
/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 NNTP newsgroup(s).