From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/5955 Path: main.gmane.org!not-for-mail From: Lars Magne Ingebrigtsen Newsgroups: gmane.emacs.gnus.general Subject: Re: message-user-mail-address and other addresses Date: 16 Apr 1996 19:47:56 +0200 Message-ID: References: <199604160746.JAA04365@bombur2.uio.no> NNTP-Posting-Host: coloc-standby.netfonds.no X-Trace: main.gmane.org 1035146482 1908 80.91.224.250 (20 Oct 2002 20:41:22 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sun, 20 Oct 2002 20:41:22 +0000 (UTC) Return-Path: ding-request@ifi.uio.no Original-Received: from ifi.uio.no (ifi.uio.no [129.240.64.2]) by deanna.miranova.com (8.7.5/8.6.9) with SMTP id LAA01340 for ; Tue, 16 Apr 1996 11:34:16 -0700 Original-Received: from hler.ifi.uio.no (4867@hler.ifi.uio.no [129.240.94.23]) by ifi.uio.no with ESMTP (8.6.11/ifi2.4) id for ; Tue, 16 Apr 1996 19:47:58 +0200 Original-Received: (from larsi@localhost) by hler.ifi.uio.no ; Tue, 16 Apr 1996 19:47:57 +0200 Original-To: ding@ifi.uio.no Original-Lines: 36 Xref: main.gmane.org gmane.emacs.gnus.general:5955 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:5955 Hallvard B Furuseth 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
". This is wrong, and if we teach users to put "name >
" 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 ")) > (message-user-mail-address)) > ==> "" 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."