Re: 'smart' name parsing

2001-07-09 Thread Kai Großjohann
On Sun, 8 Jul 2001, Ronan Waide wrote: On cursory inspection of the interface, it appears to suffer from the same problem as mail-extract-address-components, i.e. it doesn't deal with multiple addresses. I could, of course, be wrong. Err, did you see that there are two functions,

Re: 'smart' name parsing

2001-07-09 Thread Ronan Waide
On July 9, [EMAIL PROTECTED] said: On July 9, [EMAIL PROTECTED] said: Err, did you see that there are two functions, mail-header-parse-address and mail-header-parse-addresses? Just a sanity check. Or maybe you saw something in the docs that I didn't see. No, given the Xemacs

Re: 'smart' name parsing

2001-07-07 Thread Ronan Waide
On July 2, [EMAIL PROTECTED] said: Those who do not learn from history are doomed to repeat it. :) This is so apropos emacs/xemacs... Anyway. I'll check the new mail-extr with emacs 21 to see if the problems are fixed, and in the meantime I have that nasty brute-force hack that I posted which

Re: 'smart' name parsing

2001-07-07 Thread Ronan Waide
On July 8, [EMAIL PROTECTED] said: On Sat, 7 Jul 2001, Ronan Waide wrote: This is so apropos emacs/xemacs... Anyway. I'll check the new mail-extr with emacs 21 to see if the problems are fixed, and in the meantime I have that nasty brute-force hack that I posted which seems to be doing

Re: 'smart' name parsing

2001-07-05 Thread Kai Großjohann
On Sun, 1 Jul 2001, Ronan Waide wrote: My options are (1) reinvent the wheel, which is sort of what bbdb-extract-address-components is doing at the moment; (2) fix mail-extr and bundle the fixed version with BBDB, which is, AFAIK, what used happen (3) Use

Re: 'smart' name parsing

2001-07-02 Thread Colin Rafferty
Ronan Waide wrote: I wouldn't think so - if a working mail-extr is all it takes, then maybe I'll lift the emacs-21 copy and try bundling it into BBDB. First, change its name, and the names of all the functions in it. One day, this wonderful new mail-extr will be old and outdated, and people

'smart' name parsing

2001-07-01 Thread Ronan Waide
I'm looking at the rather trivial task of getting BBDB to properly parse what I'll disparagingly refer to as Outlook-format names, whereby my own moniker is rendered Waide, Ronan. The basic problem is making sure that you also do the right thing with John Smith, Sr - i.e. that it doesn't get

Re: 'smart' name parsing

2001-07-01 Thread Kai Großjohann
FWIW, mail-extr.el as of Emacs 21 has this comment: / | revision 1.25 | date: 1997/11/20 21:45:59; author: kwzh; state: Exp; lines: +714 -681 | (mail-extract-address-components): | New arg ALL says return info about all the addresses. | Clarify buffer switching logic using save-excursion.

Re: 'smart' name parsing

2001-07-01 Thread Ronan Waide
On July 1, [EMAIL PROTECTED] said: | New arg ALL says return info about all the addresses. | Clarify buffer switching logic using save-excursion. Yes, this is in the emacs 20.7 version - the code, if not the changelog comment. But it's broken as of 20.7. Perhaps they've fixed it for 21.

Re: 'smart' name parsing

2001-07-01 Thread Kai Großjohann
On Sun, 1 Jul 2001, Ronan Waide wrote: On July 1, [EMAIL PROTECTED] said: | New arg ALL says return info about all the addresses. | Clarify buffer switching logic using save-excursion. Yes, this is in the emacs 20.7 version - the code, if not the changelog comment. But it's broken as of

Re: 'smart' name parsing

2001-07-01 Thread Ronan Waide
On July 2, [EMAIL PROTECTED] said: I wonder why one of the Johns disappeared. But I think it's because mail-extract-address-components avoids redundancy. Putting John Foo there rather than just John (but with the quotes, as before) produces the right full name. Yes, if you set

Re: 'smart' name parsing

2001-07-01 Thread Ronan Waide
On July 2, [EMAIL PROTECTED] said: On Sun, 1 Jul 2001, Ronan Waide wrote: On July 1, [EMAIL PROTECTED] said: | New arg ALL says return info about all the addresses. | Clarify buffer switching logic using save-excursion. Yes, this is in the emacs 20.7 version - the code, if not the