Details
Description
When pasting multiple email addresses from for example Excel, Notepad or LibreOffice, into the WebApp TO: field, everything that is pasted is considered the email address. The expected behaviour would be that WebApp splits the pasted addresses in seperate email addresses. Such behaviour occurs in other mail clients such as Outlook/Gmail etc. Example: User 1 <user1@user.com> User 2 <user2@user.com> User 3 <user3@user.com>
There are other delimiters being used as well, which we should be able to deal with.
Steps
- Copy multiple recipients, which are separated by either spacing, commas or line feed : e.g. user1@test.nl user2@test.nl user3@test.nl. or User 1 <user1@user.com> User 2 <user2@user.com> User 3 <user3@user.com>
- Create a new mail item (or any other item requiring recipients to be filled in, e.g. MR).
- Paste these recipients in one of the recipient fields.
result: mail addresses are resolved into a single recipient.
expected:
- mail addresses are resolved separately
- if the input contains an email address, treat all input as the email address and assume there are no user names that need resolving
- Valid delimiters are: , and ; and spaces
- If the email address is enclosed in < >, treat the text before as the 'display name' and the last bracket as the delimiter
Note: currently recipients are only resolved correctly separately if semi colons are used (e.g. user1@test.nl; user2@test.nl).
Examples to test with:
user1@test.nl user2@test.nl user3@test.nl
user1@test.nl, user2@test.nl, user3@test.nl
user1@test.nl; user2@test.nl; user3@test.nlUser 1 <user1@test.nl>; User 2 <user2@test.nl>; User 3 <user3@test.nl>;
User 1 <user1@test.nl>, User 2 <user2@test.nl>, User 3 <user3@test.nl>
User 1 <user1@test.nl> User 2 <user2@test.nl> User 3 <user3@test.nl>
All of these should result in the same recipients (email addresses at least).