Closed Bug 754882 Opened 12 years ago Closed 12 years ago

Recipient AutoComplete in composing only allows selecting 1st email address of LDAP contact (out of 3 email addresses shown in single-line entry)

Categories

(Thunderbird :: Message Compose Window, defect)

12 Branch
x86_64
Linux
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 677763

People

(Reporter: donrhummy, Unassigned)

Details

Attachments

(1 file)

User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:12.0) Gecko/20100101 Firefox/12.0
Build ID: 2012042100

Steps to reproduce:

After hooking LDAP up to Thunderbird, I went to compose a message and typed the person's name into the "to" field. It found the person and showed their three email addresses and name in a line of the dropdown (for example: John Doe   jdoe@work.com   jdoe@home.com   jdoe3@home.com). However, I only get the option to select the whole line which immeadiately chooses the primary email.


Actual results:

I only get the option to select the primary email. I cannot ever autocomplete/select the 2nd or 3rd email addresses.


Expected results:

The person should have shown up as "3 people" each with a different email address so I could select the correct email address to send to.
Can you attach a screenshot? Ensure to wipe out private data, it's enough to see the @ of email addresses...
(In reply to Thomas D. from comment #1)
> Can you attach a screenshot? Ensure to wipe out private data, it's enough to
> see the @ of email addresses...

You can see it found two people with the "ann" I typed in their names. The first person has three email addresses, but since they appear in only one line in the dropdown, only the first address can be selected. Email 2 and 3 will never be selectable in this manner.
Thanks 4 quick reply & screenshot, that's helpful.

Well, unfortunately TB's address book can only handle 2 email addresses per contact (yes, and we are all waiting for that to change).

I'm wondering however why TB doesn't manage to get at the 2nd email address via LDAP and show that in the autocomplete. Unfortunately, I know nothing about LDAP.

Ludo, any insights or folks who know?
Summary: AutoComplete in Composing only allows sending to first email address → Recipient AutoComplete in composing only shows 1st email address of LDAP contact (out of 3 email addresses)
(In reply to Thomas D. from comment #4)
> Thanks 4 quick reply & screenshot, that's helpful.
> 
> Well, unfortunately TB's address book can only handle 2 email addresses per
> contact (yes, and we are all waiting for that to change).
> 
> I'm wondering however why TB doesn't manage to get at the 2nd email address
> via LDAP and show that in the autocomplete. Unfortunately, I know nothing
> about LDAP.
> 
> Ludo, any insights or folks who know?

Thomas, I saw you changed the title but your change is incorrect. It shows all three addresses, it just won't let you select any address other than the primary email.
Summary: Recipient AutoComplete in composing only shows 1st email address of LDAP contact (out of 3 email addresses) → Recipient AutoComplete in composing only allows selecting 1st email address of LDAP contact (out of 3 email addresses)
If someone can point me to the code in thunderbird, I think I might be able to work up a rough draft that would make it so you could select any of the addresses.
(In reply to donrhummy from comment #5)

> Thomas, I saw you changed the title but your change is incorrect. It shows
> all three addresses, it just won't let you select any address other than the
> primary email.

Sorry, my mistake. The very right corner of the extra large screenshot-photoshot escaped me...

Hmm. I'm still surprised to see 3 addresses for a single entry: are you using any addons?
Summary: Recipient AutoComplete in composing only allows selecting 1st email address of LDAP contact (out of 3 email addresses) → Recipient AutoComplete in composing only allows selecting 1st email address of LDAP contact (out of 3 email addresses shown in single-line entry)
(In reply to Thomas D. from comment #7)
> (In reply to donrhummy from comment #5)
> 
> > Thomas, I saw you changed the title but your change is incorrect. It shows
> > all three addresses, it just won't let you select any address other than the
> > primary email.
> 
> Sorry, my mistake. The very right corner of the extra large
> screenshot-photoshot escaped me...
> 
> Hmm. I'm still surprised to see 3 addresses for a single entry: are you
> using any addons?

No, I set the config attributes:

//Tells it what to search inside of (so it can find a person by more than just their name)
ldap_2.servers.ProxyLDAP.autoComplete.filterTemplate

//Tells it what to show in the dropdown
ldap_2.servers.ProxyLDAP.autoComplete.commentFormat
mail.autoComplete.commentColumn
(In reply to donrhummy from comment #6)
> If someone can point me to the code in thunderbird, I think I might be able
> to work up a rough draft that would make it so you could select any of the
> addresses.

Code can be searched from here:
http://mxr.mozilla.org/comm-central/
Thunderbird should be in
http://mxr.mozilla.org/comm-central/mail
but some of the shared components might live outside that, not entirely sure.

I don't know where the recipient autocomplete code lives; there are too many things autocomplete all over the code.
(In reply to Thomas D. from comment #9)
See bug 677763.
(In reply to Thomas D. from comment #9)
> (In reply to donrhummy from comment #6)
> > If someone can point me to the code in thunderbird, I think I might be able
> > to work up a rough draft that would make it so you could select any of the
> > addresses.
> 
> Code can be searched from here:
> http://mxr.mozilla.org/comm-central/
> Thunderbird should be in
> http://mxr.mozilla.org/comm-central/mail
> but some of the shared components might live outside that, not entirely sure.

Wow, that's going to be real hard to look through. Can anyone at least point me to the code for the "compose" window? That would give me a starting point.
@doorhummy, this seems to be a duplicate of your already existing bug 677763, so marking it as duplicate as they seem to be the same issue and that one has more info.
Status: UNCONFIRMED → RESOLVED
Closed: 12 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: