Bug 224023 - emailaddress can not be pasted, if they are not "perfect"
Summary: emailaddress can not be pasted, if they are not "perfect"
Status: RESOLVED FIXED
Alias: None
Product: kaddressbook
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: unspecified Linux
: NOR wishlist
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
: 232466 (view as bug list)
Depends on:
Blocks:
 
Reported: 2010-01-24 12:55 UTC by m.wege
Modified: 2010-07-04 20:13 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description m.wege 2010-01-24 12:55:23 UTC
Version:           4.4 rc2 (using 4.3.95 (KDE 4.3.95 (KDE 4.4 RC2)), Kubuntu packages)
Compiler:          cc
OS:                Linux (i686) release 2.6.31-18-generic

I wanted to past an emailaddress into the emailaddress field of a new contact. Unfortuneately this did not work, because I had copied parts which did not belong to the email address. So I had to past it somewhere else, fix it. It would be better, if the check for the emailaddresses would be done after leaving the field and if there would be then a kind of feedback, instead of the behaviour which is shown now (I first believed there might be another klipper bug).
Comment 1 Tobias Koenig 2010-01-24 13:46:56 UTC
The input field checks for a properly formatted email address
because the address is used in other places as well where a correct
formatting is needed.
If you save an invalid formatted email address there you don't do
yourself a favour.
Comment 2 m.wege 2010-01-24 13:58:33 UTC
But that was not what I asked for. I do not want to save it. But I want to be able to paste and then correct it. What I ask for is to move the point where the check is performed from the point of pasting to the point where I intend to leave the field. I think that makes sense. Kmail for example copies Emailaddresses in the format "Name <address@kde.org>". Of course I could use "Create a new addressbook entry" from Kmail, but this does only make sense if the addressbook entry itself does not exist yet. So I copy the Emailaddress from Kmail. Normal workflow would be paste it into the email field and remove the stuff which is not needed. That does not work anymore.

Please reconsider :-)
Comment 3 Axel Braun 2010-05-21 12:12:41 UTC
KDE 4.4.3:
Even if you have a properly formatted Email address, copy/paste (via CRTL-C/V or middle mouse) does not work for the Email field / additional email address.
More type work creates more typos...unfortunately
Comment 4 m.wege 2010-05-21 12:39:07 UTC
I do not have this problem, but I really believe the check (and some sane autocorrections like remove spaces or may be even Realnames) should be done when the user attempts to leave the field. That would allow to paste an emailaddress and fix it (remove <> or Realnames), if necessary. The way it works now, there is not even a feedback.
Comment 5 Tobias Koenig 2010-06-20 13:32:39 UTC
*** Bug 232466 has been marked as a duplicate of this bug. ***
Comment 6 Tobias Koenig 2010-07-04 20:13:06 UTC
SVN commit 1145946 by tokoe:

Normalize the email address on focus out event and not via validator

This allows to paste non-perfect email addresses and fix them inline

BUG: 224023


 M  +30 -11    emaileditwidget.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=1145946