Bug 374768

Summary: Impossible to paste multiple email addresses
Product: [Applications] kmail2 Reporter: Alexandre Bonneau <alexandre.bonneau>
Component: composerAssignee: kdepim bugs <kdepim-bugs>
Status: REPORTED ---    
Severity: normal CC: montel
Priority: NOR    
Version: 5.2.3   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Alexandre Bonneau 2017-01-08 19:25:22 UTC
I reopen here the bug #177398 :
"When pasting into the to or bcc adress fields the lines in the copied text are separated with spaces instead of commas as it was in previous versions of kmail.

This means i cannot copy a column of email addresses from a spreadsheet and add them all as recipients in a mail in kmail.
Because Kmail will understand the text as one long email address."


The problem is still present in v5.2.3.
Comment 1 Laurent Montel 2017-01-09 07:50:37 UTC
oocalc exports text with space as separator no ?
Comment 2 Alexandre Bonneau 2017-01-09 09:16:00 UTC
From the test I created, yes it does.
Comment 3 Laurent Montel 2017-01-12 16:46:31 UTC
As it's exported with space separator we can't parse it as multi email :(
Comment 4 Alexandre Bonneau 2017-01-15 08:39:17 UTC
Ok so I tested once again, and if you copy then paste an email list from LibreOffice into a text editor, you do get newlines between each emails, like so :
```
foo@example.com
bar@example.com
"Foobar" <foobar@example.com>
```

I think those newlines should do the trick, right?
Comment 5 Alexandre Bonneau 2019-12-03 06:53:15 UTC
I tried again with Kmail XX and the following text:
```
foo@example.com
bar@example.com
"Foobar foo" <foobar@example.com>
```

When pasted, the newlines are ignored and all the text is used as is in a single 'To:' field.
If you then select all the text in that field and paste it in a text editor, I then see the newlines again!
The newlines could be used to 'explode' the email recipients.
Comment 6 Alexandre Bonneau 2019-12-03 06:54:05 UTC
Kmail was v5.9.3 above.
Comment 7 Christophe Marin 2019-12-03 10:13:45 UTC
The problem is the separator. Add commas and it works