From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/12697 Path: main.gmane.org!not-for-mail From: Justin Sheehy Newsgroups: gmane.emacs.gnus.general Subject: mail-extract-address-components vs gnus-... Date: 25 Oct 1997 19:01:02 -0500 Message-ID: NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 (generated by tm-edit 7.106) Content-Type: text/plain; charset=US-ASCII X-Trace: main.gmane.org 1035152187 5181 80.91.224.250 (20 Oct 2002 22:16:27 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sun, 20 Oct 2002 22:16:27 +0000 (UTC) Cc: Gnus development list , info-bbdb@xemacs.org Return-Path: Original-Received: from xemacs.org (xemacs.cs.uiuc.edu [128.174.252.16]) by altair.xemacs.org (8.8.7/8.8.8) with ESMTP id SAA29451 for ; Sat, 25 Oct 1997 18:15:35 -0700 Original-Received: from ifi.uio.no (ifi.uio.no [129.240.64.2]) by xemacs.org (8.8.5/8.8.5) with ESMTP id TAA07970 for ; Sat, 25 Oct 1997 19:17:03 -0600 (CST) Original-Received: from linus.mitre.org (linus.mitre.org [129.83.10.1]) by ifi.uio.no (8.8.7/8.8.7/ifi0.2) with ESMTP id CAA01099 for ; Sun, 26 Oct 1997 02:01:06 +0200 (MET DST) Original-Received: from caffeine.mitre.org (caffeine.mitre.org [129.83.10.136]) by linus.mitre.org (8.8.6/8.8.6) with SMTP id UAA15757; Sat, 25 Oct 1997 20:01:04 -0400 (EDT) Original-Received: by caffeine.mitre.org (SMI-8.6/SMI-SVR4) id UAA01573; Sat, 25 Oct 1997 20:01:02 -0400 Original-To: bug-gnu-emacs@prep.ai.mit.edu Original-Lines: 40 X-Mailer: Quassia Gnus v0.12/Emacs 19.34 Xref: main.gmane.org gmane.emacs.gnus.general:12697 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:12697 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 ") ("Dave & Becca" "fte@montyweb.com") (mail-extract-address-components "Dave & Becca ") ("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.