[Users] [Bug 3215] New: [PATCH] Make wildcard address matching/autocomplete a bit smarter by sorting results in a more human way.

noreply at thewildbeast.co.uk noreply at thewildbeast.co.uk
Tue Jun 17 02:40:32 CEST 2014


http://www.thewildbeast.co.uk/claws-mail/bugzilla/show_bug.cgi?id=3215

            Bug ID: 3215
           Summary: [PATCH] Make wildcard address matching/autocomplete a
                    bit smarter by sorting  results in a more human way.
    Classification: Unclassified
           Product: Claws Mail
           Version: 3.10.1
          Hardware: PC
                OS: FreeBSD
            Status: NEW
          Severity: normal
          Priority: P3
         Component: UI/Compose Window
          Assignee: users at lists.claws-mail.org
          Reporter: freebsd at grem.de

Created attachment 1408
  -->
http://www.thewildbeast.co.uk/claws-mail/bugzilla/attachment.cgi?id=1408&action=edit
Patch to add reasonable ordering of autocomplete results. Rusty plain C and
GTK, sorry.

Order of results:
1. Match beginning of name
2. Match beginning of additional names
3. Match complete email address before @
4. Match beginning of email address
5. Compare relative position of match
6. Compare name alphabetically
7. Compare address alphabetically.

e.g.
A) Michael Gmelin <mg at example.org>
B) Michael Gmelin <mgmelin at example.org>
C) Gmelin Michael <whatever at example.org>
D) Agme Xample <example at example.org>

Entering mg: A, B
Entering mgme: B
Entering gme: C, B, A, D

-- 
You are receiving this mail because:
You are the assignee for the bug.



More information about the Users mailing list