Article View: gnu.emacs.bug
Article #98566mail-strip-quoted-names on x@y.z (a "b" c)
From: Dan_Jacobson
Date: Sat, 01 Jun 1991 10:30
Date: Sat, 01 Jun 1991 10:30
52 lines
2093 bytes
2093 bytes
Emacs 18.57 and 55
Some folks like saying
george@hyper.lap.upenn.edu (George "Sir Lleb" Zipperlen)
^ ^
in their e-mail From: lines.
(mail-strip-quoted-names "x@y.z (a b c)")
"x@y.z"
good
(mail-strip-quoted-names "x@y.z (a \"b\" c)")
"x@y.z (ac)"
bad, as this is the result that gets fed to /bin/sh when it's time to
send e-mail, and only e-mail address can be fed to /bin/sh, no "(" stuff.
(I use w.j.carpenter@att.com's cool feedmail.el instead of nasty old
fakemail.c, by the way.)
This I'd like to see fixed in 18.58. [This is the only thing in this
message I think should be fixed.]
most other quotes don't seem to barf it:
(mail-strip-quoted-names "x@y.z (a `b' c)")
"x@y.z"
good.
"OK, Jacobson, why dont you..."
(setq mail-use-rfc822 t)
t
(mail-strip-quoted-names "x@y.z (a \"b\" c)")
"x@y.z"
good
but then
(mail-strip-quoted-names "internal:company:address (c c)")
"(Unparsable address -- End of addresses in middle of :...; group:
\"internal:\\(Unparsable address -- A group name may not
appear here:
\"company:_^_address \\\\\\(c c\\\\\\)\"\\)_^_\")"
but that's cool, I never said that was valid 822 format.
(setq mail-use-rfc822 nil)
nil
(mail-strip-quoted-names "internal:company:address (c c)")
"internal:company:address"
phew, that's better
[gee, all this typing and i didn't even try to fix it myself, just
complain...]
Technical Details
Message-ID:
<1991Jun1.103055.29322@cbfsb.att.com>Path:
arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!cis.ohio-state.edu!tut.cis.ohio-state.edu!unreplyable!garbageShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fb2f1,bb8d637d7d74967b,start X-Google-Attributes: gidfb2f1,public X-Google-ArrivalTime: 1991-06-01 03:30:55 PST Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!cis.ohio-state.edu!tut.cis.ohio-state.edu!unreplyable!garbage From: Dan_Jacobson@ATT.COM Newsgroups: gnu.emacs.bug Subject: mail-strip-quoted-names on x@y.z (a "b" c) Message-ID: <1991Jun1.103055.29322@cbfsb.att.com> Date: 1 Jun 91 10:30:55 GMT Sender: daemon@tut.cis.ohio-state.edu Reply-To: Dan_Jacobson@ihlpz.att.com Distribution: gnu Organization: AT&T-BL, Naperville IL, USA Lines: 52 Approved: bug-gnu-emacs@prep.ai.mit.edu