Bug 303767

Summary: Unable to enter email address for new key because "-" is not accepted
Product: [Applications] kleopatra Reporter: S. Burmeister <sven.burmeister>
Component: generalAssignee: kdepim bugs <kdepim-bugs>
Status: RESOLVED FIXED    
Severity: normal CC: montel, mutz, winter
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: unspecified   
OS: Linux   
Latest Commit: Version Fixed In: 4.9

Description S. Burmeister 2012-07-18 21:25:28 UTC
Kleopatra 2.1.1 4.9 beta: If I want to create a new key I cannot enter my email address because it includes an "-" which kleopatra does not accept as input.

Reproducible: Always
Comment 1 Laurent Montel 2012-07-19 06:10:49 UTC
an address with "-" ?
Comment 2 S. Burmeister 2012-07-19 07:32:19 UTC
Yep. Something like: username@linux-kde.org

Kleopatra does not allow the "-" in-between linux and kde.

It does accept it in the username, e.g. something like user-name@linuxkde.org.
Comment 3 Laurent Montel 2012-07-19 08:04:21 UTC
Ok will look at it
Comment 4 Allen Winter 2012-07-19 12:17:54 UTC
Laurent,
A patch for fixing this has already been posted on reviewboard.

Please see:
https://git.reviewboard.kde.org/r/102579/

I took a quick look at this a long time ago but then forgot about it.
Comment 5 Laurent Montel 2012-07-19 13:07:30 UTC
ok will look at it.
Comment 6 Laurent Montel 2012-07-19 15:53:23 UTC
Git commit debf3a203296f1354001b8412ba6b073b6a873fd by Montel Laurent.
Committed on 19/07/2012 at 16:34.
Pushed by mlaurent into branch 'KDE/4.9'.

Fix Bug 303767 - Unable to enter email address for new key because "-"

is not accepted
Patch from Julian Bäume posted in september 2011

FIXED-IN: 4.9
Related: bug 260371

M  +6    -4    kleopatra/utils/validation.cpp

http://commits.kde.org/kdepim/debf3a203296f1354001b8412ba6b073b6a873fd