Review Request 109847: Sort email addresses in main list by TLD first, then domain, and only last by account name

Thomas Fischer fischer at unix-ag.uni-kl.de
Mon Jun 24 09:11:58 UTC 2013


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
http://git.reviewboard.kde.org/r/109847/
-----------------------------------------------------------

(Updated June 24, 2013, 9:11 a.m.)


Review request for KDE Utils.


Changes
-------

> I wonder what happens to emails like foo.bar at example.com with TLDfirst, the
> regex will split them into foo, bar, example, com AFAICT, which would screw
> up sorting, no?
I rewrote this case, should work better now, too.
The patch contains some minor rewrites for the other cases as well plus some unifications in the white spaces.

> For an unknown reason the items added in the ui file are ignored, they only 
> appear when added again in C++.
No idea either.

> When the setting is changed and Accept or OK is clicked keysmanager will not
> refresh it's display. You should probably call something like invalidateFilter
> on the filter model used for the main view.
Observed as well. How do I trigger such a refresh/invalidation? The settings/options class do no see the model (or the view) directly as far as I can see...


Description
-------

Sort email addresses in main list by TLD first, then domain, and only last by account name.
(1) email address is split along @ and .
(2a) list is reversed
(2b) list elements are joined, two elements separated by .


This addresses bug 278376.
    http://bugs.kde.org/show_bug.cgi?id=278376


Diffs (updated)
-----

  model/keylistproxymodel.cpp cecb836 

Diff: http://git.reviewboard.kde.org/r/109847/diff/


Testing
-------


Thanks,

Thomas Fischer

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-utils-devel/attachments/20130624/207ff101/attachment.html>


More information about the Kde-utils-devel mailing list