Bug 157721 - SimpleCommandMail: subject and body truncated at the comma (Ubuntu + Thunderbird)
Summary: SimpleCommandMail: subject and body truncated at the comma (Ubuntu + Thunderb...
Status: RESOLVED DUPLICATE of bug 125950
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: BASIC (show other bugs)
Version:
(earliest affected)
7.6.2.1 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL: https://bugzilla.mozilla.org/show_bug...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-10-12 08:40 UTC by TISSENDIER Pierre
Modified: 2023-10-28 16:22 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
two routine with sendSimpleMailMessage (1.21 KB, text/plain)
2023-10-12 08:42 UTC, TISSENDIER Pierre
Details
With SHELL ans thunderbird commandline with hyphen (948 bytes, text/plain)
2023-10-26 19:55 UTC, TISSENDIER Pierre
Details
Send mail by shell with thunderbird (1.29 KB, text/plain)
2023-10-27 09:05 UTC, TISSENDIER Pierre
Details

Note You need to log in before you can comment on or make changes to this bug.
Description TISSENDIER Pierre 2023-10-12 08:40:22 UTC
Description:
With Ubuntu 22.04.3 lts and thunderbird 115.3.1
The message text (in subject and/or in body) is trunk at the first comma

Steps to Reproduce:
1.copy/paste the two attached subroutines in your EDI
2.remove commas in subject and body
3.execute 
4.write commas any where in subject and body
5. execute

Actual Results:
for 5. subject and body are trunk !

Expected Results:
subject and body no trunked


Reproducible: Always


User Profile Reset: Yes

Additional Info:
Version: 7.6.2.1 (X86_64) / LibreOffice Community
Build ID: 56f7684011345957bbf33a7ee678afaf4d2ba333
CPU threads: 4; OS: Linux 6.2; UI render: default; VCL: gtk3
Locale: fr-FR (fr_FR.UTF-8); UI: fr-FR
Calc: threaded

Thunderbird 115.3.1


Warning : No problem on windows10 (SimpleSystemMail is used) and thunderbird
Comment 1 TISSENDIER Pierre 2023-10-12 08:42:50 UTC
Created attachment 190162 [details]
two routine with sendSimpleMailMessage
Comment 2 Stéphane Guillou (stragu) 2023-10-26 11:35:18 UTC
Thank you for the report. That comma issue is unfortunately not our bug, please see https://bugzilla.mozilla.org/show_bug.cgi?id=900117
Marking as duplicate of bug 125950.

*** This bug has been marked as a duplicate of bug 125950 ***
Comment 3 TISSENDIER Pierre 2023-10-26 13:18:46 UTC
Please, have à strict read.
Thé problem is not in attachement ! 
Thé problem is in SUBJECT and MESSAGE TEXT!
thank you
Comment 4 Stéphane Guillou (stragu) 2023-10-26 14:42:32 UTC
(In reply to TISSENDIER Pierre from comment #3)
> Thé problem is not in attachement ! 
> Thé problem is in SUBJECT and MESSAGE TEXT!
I did see that, but my understanding is that the root issue is the same.

See also: https://bugzilla.mozilla.org/show_bug.cgi?id=258887
So, regardless of if the two issues should be kept separate or not, the root cause is in Thunderbird's handling of commas in the command line.
Comment 5 TISSENDIER Pierre 2023-10-26 19:52:18 UTC
hello
I do not have the point problem in the Thunderbird command line if the subject and the text are framed by apostrophes! see my new attached routine.
Comment 6 TISSENDIER Pierre 2023-10-26 19:55:00 UTC
Created attachment 190442 [details]
With SHELL ans thunderbird commandline with hyphen
Comment 7 TISSENDIER Pierre 2023-10-26 20:43:41 UTC
(In reply to TISSENDIER Pierre from comment #6)
> Created attachment 190442 [details]
> With SHELL ans thunderbird commandline with hyphen

 Sorry  Not hyphen, I mean simple quote !

The suject and bodytext shoulde be framed by simple quote !
Comment 8 TISSENDIER Pierre 2023-10-27 09:05:01 UTC
Created attachment 190448 [details]
Send mail by shell with thunderbird
Comment 9 TISSENDIER Pierre 2023-10-27 09:13:56 UTC
Hello,
My routine SendMailByShell confirme 
 https://bugzilla.mozilla.org/show_bug.cgi?id=258887
attached file name with comma not supported.
Comment 10 TISSENDIER Pierre 2023-10-28 16:22:57 UTC
(In reply to Stéphane Guillou (stragu) from comment #4)
> (In reply to TISSENDIER Pierre from comment #3)
> > Thé problem is not in attachement ! 
> > Thé problem is in SUBJECT and MESSAGE TEXT!
> I did see that, but my understanding is that the root issue is the same.
> 
> See also: https://bugzilla.mozilla.org/show_bug.cgi?id=258887
> So, regardless of if the two issues should be kept separate or not, the root
> cause is in Thunderbird's handling of commas in the command line.

No WHY  it  is GOOD with SimpleSystemMail on Windows10 ?

For : https://bugzilla.mozilla.org/show_bug.cgi?id=900117
and : https://bugzilla.mozilla.org/show_bug.cgi?id=258887

If you respect  http://kb.mozillazine.org/Command_line_arguments_-_Thunderbird
Every arguments must be framed by simple quote ! no double quote (258887-900117)
Arguments "to","cc","bcc","attachment" accept arrays (with comma separator) i mean is normal for attachment that a comma in file name failed.
Arguments "subject" and "bodytext" shouldn't be arrays !

In any case, it must be informed  (in help, in API SDK ) that SimpleCommandMail is INCOMPATIBLE with Thunderbird ;(