GNOME Bugzilla – Bug 155382
address expansion from addressbook fails
Last modified: 2005-05-16 02:59:32 UTC
- create a vcard file which embeds multiple email adresses to one name. I used this one: BEGIN:VCARD FN:Georg Steffers N:Steffers;Georg EMAIL;INTERNET:georg@steffers.org EMAIL;INTERNET:georg@steffers.net END:VCARD - Use this file as addressbook in balsa-2.2.5. - Compose an email using the FN, or one of the email adresses from the file. - first thing you should notice is: not all email addresses are shown in the to line - when sending the mail my postfix sais something like this to me: Oct 14 14:37:46 onkels postfix/smtpd[16942]: E52494131F0: reject: RCPT from localhost[127.0.0.1]: 450 < B B >: User unknown in local recipient table; from=<georg@steffers.org> to=<??B???B?> proto=ESMTP helo=<onkels> - Balsa seems to have messed up the complere to address. - Using addressbooks with only one email-address per name seems to work correct.
Thanks for the report! The address completion code has been updated in cvs--could you try it?
*** Bug 166030 has been marked as a duplicate of this bug. ***
Here's core dump of this bug: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=293305
Hi guys. I've just done some testing with 2.3.2 and address expansion only works for contacts with one email address to their names. Please mark this as confirmed. Cheers, Andrew "Netsnipe" Lau
You could reproduce it with VCARD address book, I presume?
Yep. % cat foo.vcard BEGIN:VCARD FN:Andrew Lau N:Lau;Andrew REV:2005-02-02T12:17:31 EMAIL;INTERNET:netsnipe@localhost EMAIL;INTERNET:netsnipe@espresso.caffeine END:VCARD BEGIN:VCARD FN:Some One Else N:Else;Some;One REV:2005-05-12T14:35:28 EMAIL;INTERNET:foo@bar.com END:VCARD
I've confirmed it via an external program (Little Brother DB) as well. Any chance there could be a backported fix for 2.3.0 within the next 24-48 hours? Or would it be too messy?
The externq code may need this patch: diff -u -r1.16 address-book-extern.c --- libbalsa/address-book-extern.c 8 May 2005 16:14:30 -0000 1.16 +++ libbalsa/address-book-extern.c 12 May 2005 15:42:44 -0000 @@ -391,7 +391,7 @@ if(!parse_externq_file(ex, (gchar *)prefix, lbe_expand_cb, &res)) return NULL; - g_list_reverse(res); + res = g_list_reverse(res); if(res != NULL && new_prefix) *new_prefix = internet_address_to_string(res->data, FALSE);
BTW: I coundn't reproduce any problem with vcards. I installed foo.vcard, and both of Andrew's addresses were offered as completions: as two addresses or as one address list, depending on the treatment of multiple addresses. I added Georg's card, and that also offered correct completions.
OK. My bad. I've had a long time backporting and debugging patches. Autocomplete does indeed work in 2.3.0 with the backported patch from #303421. But however, it's a bit slow (hence why I thought it didn't work at first), and it only returns the first match. Attached is output from lbdbq for a contact that has multiple contacts.
Created attachment 46372 [details] Little Brother output for multiple addresses to a contact
> The externq code may need this patch: Yep. That fixed it!
OK--committing to cvs. Peter
I tried 2.3.2 and it works for me. Thanks to the developers!
Thanks for checking! Resolving as FIXED...