Bug 3254

Summary: When Tab-Completing, give priority to order of email addresses in Address Book
Product: Claws Mail (GTK 2) Reporter: Abhay S. Kushwaha <clawsmail>
Component: UI/Compose WindowAssignee: users
Status: NEW ---    
Severity: enhancement CC: avrunin
Priority: P3    
Version: 3.11.0   
Hardware: PC   
OS: Linux   

Description Abhay S. Kushwaha 2014-08-22 23:20:48 UTC
In one of the recent changes, the tab-completion of email addresses was made a lot more flexible and it works great in most situations.

However it does not give priority to the order of email addresses listed in the address book. That can be a problem at times.

Consider an entry for John Doe in Address Book with 3 email addresses:

John Doe
johndoe@use-this-for-official-work.com
johndoe@personal-emails-only.com
johndoe@do-not-use-unless-urgent.com

An entry like was used as-is previously. So when I typed "johnd"+TAB it used to give me the 3 addresses listed as such. I would do a DOWN arrow to select the most-often used email address (the one for official use) and be on my way.

Now, because of the domain name rule, the "do-not-use-unless-urgent.com" comes up first in the list. :(

If all things were equal and we had to go for domain-name based ordering, let's not do that for addresses listed in a single address book entry, showing them in the order they've been added to the address book?
Comment 1 George Avrunin 2014-11-11 15:23:43 UTC
This change is causing problems for me with exactly the same use case: an individual in the addressbook with several email addresses for different uses.  There is now no way to prioritize one address--the arrows for changing the order of the email addresses in the addressbook have no effect on the order in which the addresses are offered in tab-completion.  It would be much more flexible and useful (to me, at least) if I could use the addressbook to control the order in which names are offered in tab completion.