[Kde-pim] Review Request: fix email validator to allow typing dashes during entering an email

Julian Bäume julian at svg4all.de
Sun Sep 11 16:35:43 BST 2011


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

(Updated Sept. 11, 2011, 3:35 p.m.)


Review request for KDEPIM.


Changes
-------

Add Marc to the reviewers, as suggested by Allen


Summary
-------

When typing an email address into a QLineEdit, it is verified on the fly. Domains must not end with a dash, but during typing it might. In this case the validator must know, that this address is not complete, yet. This is already done for the TLD part of the domain, but this doesn’t take dashes into account.

This patch extends the verification logic to handle dashes during typing.

FIX: #260371


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


Diffs
-----

  kleopatra/utils/validation.cpp d3cd91a 

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


Testing
-------

Without this patch applied, one can’t enter email addresses with dashes in the domain part.

With this patch applied it is possible to do so.


Thanks,

Julian

_______________________________________________
KDE PIM mailing list kde-pim at kde.org
https://mail.kde.org/mailman/listinfo/kde-pim
KDE PIM home page at http://pim.kde.org/


More information about the kde-pim mailing list