thunderbird-android icon indicating copy to clipboard operation
thunderbird-android copied to clipboard

Edit and copy email to clipboard from address field

Open rubo77 opened this issue 8 years ago • 15 comments

Expected behavior

if I select an email in the address field and long press on it I want to copy it into my clipboard.

Actual behavior

Nothing's copied

Steps to reproduce

  1. Long press on an email address

Environment

K-9 Mail version: 5.205

Android version: all

Account type (IMAP, POP3, WebDAV/Exchange): All

rubo77 avatar Mar 09 '17 17:03 rubo77

Are you talking about the message composition screen or the message view screen?

philipwhiuk avatar Mar 09 '17 21:03 philipwhiuk

The composition Screen.

I used to use this a lot in the version before: Added another recipient just to get the email in the suggested auto completions. Cut out the email and pasted it in the text.

This is not possible any more.

rubo77 avatar Mar 09 '17 23:03 rubo77

Hi, if the issue is not yet resolved i would like to work on it...

bhuvangupta008 avatar Mar 12 '17 18:03 bhuvangupta008

It should also be possible to edit the name before sending. For example I have some contacts in my list, that prepend an "AAA" or "ZZZ" to have them at the start or end of my contacts, but I would like to edit the name before sending, so the receipient doesn't see this name in the arriving email.

rubo77 avatar Mar 14 '17 22:03 rubo77

Hi, I have been working on this issue and have submitted a pull request. The email address is copied to clip board when a recipient is long clicked. A confirmation toast is also shown. #2393 is the PR. For allowing a user to edit the name, how should this be done? When a recipient is clicked, a popup is shown below it, with some information. The name currently appears to be of form "Name (TypeOfContact)" eg "Dave (Work)". Should an EditText be placed in the popup to allow editing this whole name?

MayankR avatar Mar 15 '17 08:03 MayankR

Long-press is not a solution, cause that will be used to initiate drag and drop mode.

Maybe a solution would be that when you enter the TO field and hit backspace until you "touch" the last email receipient, that moment the email-box will transform back to plain text and you can start editing it

rubo77 avatar Mar 17 '17 20:03 rubo77

Hi , I have been working on this issue and I implemented it. PR is #2445 Please let me know if I could upon improve it. Cheers.

NGimhana avatar Mar 26 '17 04:03 NGimhana

Error fixed at Issue#2364 (#2445)

NGimhana avatar Mar 29 '17 10:03 NGimhana

Like suggested by @philipwhiuk in #2445 I think this functionality should be reachable via a copy icon in the dropdown, not long-press.

cketti avatar Sep 02 '18 19:09 cketti

This would be great! I just noticed the problem and I see it has already been reported.

jroedel avatar Dec 02 '19 18:12 jroedel

Copying via long press works in recent versions, but it copies an adress like

firstname lastname <[email protected]>, (with a space at the end)

and hereby failes on pasting that copied value directly to to/cc/bcc

see https://github.com/k9mail/k-9/issues/5747#issuecomment-1091173670

PhilippSchlesinger avatar Apr 07 '22 08:04 PhilippSchlesinger

This is even worse now in v5.807, if you start typing the name of a contact and select it, then longpress it and cut it out, k9 crashes.

See my Screencast: https://next.eclabs.de/s/mAABHdXk36S9MBZ

rubo77 avatar Apr 07 '22 10:04 rubo77

I'm having trouble pasting anything at all between TO and CC etc. fields. If I copy an adress from TO , ai can't paste it to CC for example. Pasting to message body works. 6.6.03

ldezem avatar Dec 23 '23 21:12 ldezem

What about adding a "Copy" icon next to "Add to existing contact icon"? (see redboxes in screenshot) My guess is that "Copy email address" existed in the dropdown menu is somehow unknown. Also IMHO, copy is perhaps more important than add to existing contact icon?

Use case

  • I would assume most people would rather like to quickly copy email addresses rather then add to addressbook.

Caveats

  • May be long email addresses would hinder the UI looks

d

tinacla avatar Jan 11 '24 11:01 tinacla

@tinacla: This issue is about the screen to compose a message, not about the screen to view a message.

cketti avatar Jan 11 '24 11:01 cketti