Gnus development mailing list
 help / color / mirror / Atom feed
* mail-extract-address-components vs gnus-...
@ 1997-10-26  0:01 Justin Sheehy
  1997-10-30 13:00 ` Hrvoje Niksic
  0 siblings, 1 reply; 10+ messages in thread
From: Justin Sheehy @ 1997-10-26  0:01 UTC (permalink / raw)
  Cc: Gnus development list, info-bbdb

I have come across a few cases where gnus-extract-address-components
will DTRT when returning the full name part of a From: header, but
mail-extract-address-components does not.

Admittedly, these addresses are not stricly correct; the full name
should be quoted.  However, in the spirit of being strict in what you
produce and liberal in what you accept, I submit that
gnus-extract-address-components is the more correct function.

An example:

(gnus-extract-address-components "Dave & Becca <fte@montyweb.com>")
("Dave & Becca" "fte@montyweb.com")

(mail-extract-address-components "Dave & Becca <fte@montyweb.com>")
("Dave Fte Becca" "fte@montyweb.com")

The former is obviously what is intended to be seen.  The latter does
not deal well with this slightly malformed address.

This is being sent to bug-gnu-emacs because I think that th
emaintainers of Emacs ought to consider either incorporating the
function from Gnus or at least amending the one in mail-extr to deal
properly with this sort of thing.

This is being sent to info-bbdb because mail-extr is distributed and
heavily used by BBDB.  I would suggest that if the suggested change is
not made in Emacs, then gnus-bbdb-summary-get-author should be changed
to use gnus-extract-address-components instead of
mail-extract-address-components, a simple drop-in change as far as I
can see.  To save myself the annoyance of seeing such mangled names, I
have already patched my copy of BBDB to do this.

This is being sent to ding because... well, because.

-- 
Justin Sheehy

In a cloud bones of steel.
  


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~1997-11-03 19:40 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1997-10-26  0:01 mail-extract-address-components vs gnus- Justin Sheehy
1997-10-30 13:00 ` Hrvoje Niksic
1997-10-30 14:36   ` Justin Sheehy
1997-10-30 22:04     ` Joe Wells
1997-10-30 22:09       ` Justin Sheehy
1997-10-30 23:10       ` Hrvoje Niksic
1997-10-31 15:08         ` Joe Wells
1997-10-31 15:13           ` Hrvoje Niksic
1997-10-31  9:28       ` Per Abrahamsen
     [not found]     ` <kigd8knjlnp.fsf@jagor.srce.hr>
1997-11-03 19:40       ` Justin Sheehy

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).