Gnus development mailing list
 help / color / mirror / Atom feed
From: Justin Sheehy <justin@linus.mitre.org>
Cc: Gnus development list <ding@ifi.uio.no>, info-bbdb@xemacs.org
Subject: mail-extract-address-components vs gnus-...
Date: 25 Oct 1997 19:01:02 -0500	[thread overview]
Message-ID: <glmu3e575q9.fsf@linus.mitre.org> (raw)

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.
  


             reply	other threads:[~1997-10-26  0:01 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1997-10-26  0:01 Justin Sheehy [this message]
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

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=glmu3e575q9.fsf@linus.mitre.org \
    --to=justin@linus.mitre.org \
    --cc=ding@ifi.uio.no \
    --cc=info-bbdb@xemacs.org \
    /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).