After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 506024 - copying autocompleted addresses between to/cc fields results in invalid address
copying autocompleted addresses between to/cc fields results in invalid address
Status: RESOLVED DUPLICATE of bug 207728
Product: evolution-data-server
Classification: Platform
Component: Contacts
2.22.x (obsolete)
Other All
: Normal normal
: ---
Assigned To: GNOME Power Manager Maintainer(s)
GNOME Power Manager Maintainer(s)
Depends on:
Blocks:
 
 
Reported: 2007-12-28 09:12 UTC by Xiurong Simon Zheng
Modified: 2008-08-26 14:47 UTC
See Also:
GNOME target: ---
GNOME version: 2.21/2.22


Attachments
Screenshot (74.62 KB, image/png)
2007-12-28 09:25 UTC, Xiurong Simon Zheng
  Details
Possible patch (1.50 KB, patch)
2007-12-28 09:29 UTC, Xiurong Simon Zheng
rejected Details | Review
Possible fix (425 bytes, patch)
2008-01-03 07:39 UTC, Xiurong Simon Zheng
reviewed Details | Review

Description Xiurong Simon Zheng 2007-12-28 09:12:14 UTC
Please describe the problem:
copying autocompleted addresses between to/cc fields results in invalid address.

Steps to reproduce:
1. Input an address with autocompletion in "cc" field.
2. Copy the address with "Ctrl+c"
3. paste the address to "to" field, using "ctrl+v"
4. delete the address in "cc" field, only keep "to" field.

Actual results:
No receipt is found.

Expected results:
Copying address can be recognized correctly.

Does this happen every time?
Yes.

Other information:
Comment 1 Xiurong Simon Zheng 2007-12-28 09:25:07 UTC
Created attachment 101720 [details]
Screenshot

The address in "CC" field is underscored, but copying one in "TO" field isn't recognized by short-key "ctrl+c/ctrl+v".
Comment 2 Xiurong Simon Zheng 2007-12-28 09:29:39 UTC
Created attachment 101721 [details] [review]
Possible patch

Show the email address as well as name when autocompletion is successful. So that shot-key "ctrl+c/ctrl+v" is valid.
Comment 3 Srinivasa Ragavan 2008-01-01 08:56:14 UTC
Simonz, the patch seems to be corrupted. Also we now have a r-click (Copy/Cut Contact). I'm not infavour of showing the full text. If there is a way to attach a callback to copy/paste, it might be great.
Comment 4 Xiurong Simon Zheng 2008-01-03 07:39:16 UTC
Created attachment 102032 [details] [review]
Possible fix

Srag, it might be a good idea to add a function like what right-click menu and bind to "copy-clipboard" signal of gtkentry. But I'm afraid it's difficult to deal with the following case.

- Aussume "jeff.cai, simon.zheng," are both autocompleted correctly.
- Select "jeff.cai, simon" and press "ctrl+c"
- Move to naother field, press "ctrl+v"
- Only last contact is autocompleted correctly. "jeff.cai" is missing.

I think full text is more suitable for this case. Do you have any idea?
Comment 5 Srinivasa Ragavan 2008-01-03 09:21:05 UTC
Simonz, when we have a call back, you can copy the right things based on the selection I feel. If You can get the selected text, from thhat you can get the emails from the model and modify the selected text in the clipboard

IMHO I'm not in favour of this patch.
Comment 6 Srinivasa Ragavan 2008-01-05 16:33:28 UTC
Set the wrong status last time.
Comment 7 Matthew Barnes 2008-03-11 01:01:48 UTC
Bumping version to a stable release.
Comment 8 Milan Crha 2008-08-26 14:47:32 UTC

*** This bug has been marked as a duplicate of 207728 ***