Closed Bug 1142428 Opened 9 years ago Closed 8 years ago

Addressing to multiple comma-separated recipients no longer works (involving line breaks)

Categories

(Thunderbird :: Message Compose Window, enhancement)

31 Branch
x86_64
Windows 7
enhancement
Not set
normal

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 1059988

People

(Reporter: tonicuea, Unassigned)

References

()

Details

Attachments

(1 file)

786.64 KB, application/zip
Details
User Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/41.0.2272.89 Safari/537.36

Steps to reproduce:

I copy the following list and I paste (with spaces and all the rest in TB31.5)

name@example.com,
pippo@mona.com,

magna@semo.com,
nick_mason@pinkfloyd.com,


Furthermore

See here

name@example.com
pippo@mona.com

magna@semo.com
nick_mason@pinkfloyd.com



Actual results:

In TB 31.5 it creates the following recipients from that list: 
name@example.com 
,pippo@mona.com 

,magna@semo.com
,nick_mason@pinkfloyd.com

According to me this is a bug introduced from the v.24 to the v. 31 because the origin of data is the same but TB interprets comma and line in a different way in the new version 31.xx . 

Furthermore 
each blank line TB 31.xx and later puts a comma
So you obtain the following recipients


name@example.com
pippo@mona.com
,magna@semo.com
nick_mason@pinkfloyd.com

so ,magna@semo.com comes out wrongly. 


Expected results:

TB 24.6 all the recipients are considered normally and it creates a list of 4 recipients without commas. According to me this is a bug introduced from the v.24 to the v. 31 because the origin of data is the same but TB interprets comma and line in a different way in the new version 31.xx .
Severity: normal → critical
Component: Untriaged → Message Compose Window
Priority: -- → P1
Whiteboard: Addressing to multiple recipients no longer works [v 31]
Attached file images.zip
Severity: critical → major
Priority: P1 → --
Summary: Addressing to multiple recipients no longer works [v 31] → Addressing to multiple comma-separated recipients no longer works (involving line breaks)
Whiteboard: Addressing to multiple recipients no longer works [v 31]
I would not consider this a bug. We could consider it as an enhancement.

STR

1) From external data source like text editor or word processor, copy the following list of recipients (having comma AND line breaks):

foo1@bar.com,
foo2@bar.com,
foo3@bar.com

2) Write a new msg
3) Paste recipients list into single recipient input field and look at the result in the single line (sic!)
4) press Enter and look at recipients

Actual result:

3) TB replaces the linebreaks with commas (which is good for linebreak-separated lists), but the net result in this particular case is double commas:

foo1@bar.com,,foo2@bar.com,,foo3@bar.com

4) After splitting, the extra commas are preserved (should they?), creating malformed recipients:
foo1@bar.com
,foo2@bar.com
,foo3@bar.com

Fwiw, these are then "correctly" quoted before sending:
To: foo1@asdf.com, ",foo2"@asdf.com, ",foo3"@asdf.com

Expected result

I wonder if we could/should handle this edge case better at some stage.
Not exactly sure how, given that ",foo1"@asdf.com is actually a valid address, and it seems we allow simplified entering of that as ,foo1@asdf.com and then do the quoting later, same for display names.
Severity: major → enhancement
Tentative solution:

I believe quoted local parts in email addresses are extremely rare, more so having a leading comma:
",foo2"@asdf.com is valid, but doesn't look like a real life scenario.

So perhaps we could expect those who want those edge cases to use correct syntax with double quotes, and err in favor of the much more likely scenario of slightly "malformed" lists currently causing double commas:

Where we replace line breaks with commas, we should instead use a regular expression with this effect:
Replace all linebreaks and any preceeding whitespace and preceeding commas
with just a single comma:

foo1@bar.com/n (linebreak only)
foo2@bar.com

foo1@bar.com  /n (linebreak with preceding whitespace)
foo2@bar.com

foo1@bar.com,/n (linebreak with preceding comma)
foo2@bar.com

foo1@bar.com,   /n (linebreak with preceding comma and whitespace)
foo2@bar.com

-> foo1@bar.com, foo2@bar.com

So user who really need the comma in the local part would have to quote it correctly:

foo1@bar.com/n 
",foo2"@bar.com

Which I believe is the more likely syntax anyway because if you really use such extremely extraordinary addresses, chances are you'll list them correctly quoted because they will break otherwise.
Flags: needinfo?(Pidgeot18)
Toni, could you explain why you're using lists with 2 separators, commas AND line breaks?
xref bug 1087989 (and iirc some other, that "empty" recipients should just be ignored)
and ??? did somebody try to solve this bug ?
(In reply to toni from comment #6)
> and ??? did somebody try to solve this bug ?

and ??? did YOU answer my question in comment 4?
(In reply to Thomas D. from comment #4)
> Toni, could you explain why you're using lists with 2 separators, commas AND
> line breaks?

did you read bug 1087989 pointed by comment 5, where a workaround for your scenario is offered?
Bug 1087989 Comment 2
> changing editor.singleLine.pasteNewlines from 4 to 3 helped to solve the problem!

Did you understand from my comment 2 that this NOT a bug, but a request for feature enhancement?
Flags: needinfo?(tonicuea)
Yes but version 24 eats everything without confusion; now I am using only line separation and not comma but the issue remains and malformed recipients still appear I can't understand why changing features already working ! So I keep using a very old version 24.
I didn't understand clearly the workaround
Flags: needinfo?(tonicuea)
Status: UNCONFIRMED → RESOLVED
Closed: 8 years ago
Flags: needinfo?(Pidgeot18)
Resolution: --- → DUPLICATE
Hi dears, 
sorry for coming back. I noticed that for somehow reason Gmail accounts can't be added to Thunderbird.
Therefore it's compulsory to download and install the last version.
I noticed that the feature about the row separation has not been yet re-added. This is the reason I am still on 24.6.0 version.
Now Gmail will force me to upgrade to the version 31 or laterhttps://support.mozilla.org/en-US/kb/thunderbird-and-gmail

Using several times multiple, recipient I need the feature working back again like v. 24.

Can you please help me ??
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: