Closed Bug 1628671 Opened 4 years ago Closed 3 years ago

When I try to open email Compose from command line, 'from=' option is ignored

Categories

(SeaMonkey :: MailNews: Composition, defect)

SeaMonkey 2.53 Branch
defect

Tracking

(seamonkey2.53+ fixed, seamonkey2.57esr? affected)

RESOLVED FIXED
seamonkey 2.86
Tracking Status
seamonkey2.53 + fixed
seamonkey2.57esr ? affected

People

(Reporter: dev, Assigned: iannbugzilla)

References

Details

(Whiteboard: SM2.53.8)

Attachments

(1 file, 1 obsolete file)

User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Firefox/60.0 SeaMonkey/2.53.1 Lightning/5.8.1

Steps to reproduce:

I have several email accounts on SeaMonkey Mail client.
From command line (linux) I want to open a new composer window with "From" field being one specific email (ex.: myemail5@example.com) of my accounts. I run the command:

seamonkey -compose "from='myemail5@example.com',to='to email <toemail@example.com>',subject='the subject',body='the body'"

Actual results:

Composer window opens with filled "to", "subject" and "body" as provided in command line. For "from" it uses my first added email account. Any other tries I did (using only from as option/ using the email/ using the email with my name) , from is ignored. This was also happening in SeaMonkey 2.48 / 2.49

Expected results:

It should have use the "from" email, as command " seamonkey --help " suggests.

Just now, as I was going to submit the bug, I discovered this bug:

https://bugzilla.mozilla.org/show_bug.cgi?id=630804#c2

which mentions the option "preselectid=" which isn't shown in the --help output. I tried all numbers from 1 to 10 without success. I wrote " about:config " in the address bar, and searched for my email. I got several lines, but from line with "Preference Name" mail.identity.id5.useremail, I got "id5" and I did my command as:

seamonkey -compose "preselectid=id5,to='to email <toemail@example.com>',subject='the subject',body='the body'"

From is still ignored, but this trick did the job.

Two suggestions:

  1. update of --help message to show "preselectid" option.
  2. support of from, as I saw that works for thunderbird.
OS: Unspecified → Linux
Hardware: Unspecified → x86_64

Because this bug's Severity has not been changed from the default since it was filed, and it's Priority is -- (Backlog,) indicating it has has not been previously triaged, the bug's Severity is being updated to -- (default, untriaged.)

Severity: normal → --

Port to SeaMonkey the relevant parts of the following bugs:

  • Bug 394216 - Search for correct identity when draft identity key does not match From: address.
  • Bug 882104 - Implement command line option to read message body from file.
  • Bug 1266916 - Obey paragraph mode in new message invoked from mailto: URL.
  • Bug 1310738 - Improve user experience for email creation on command line.
  • Bug 1336531 - Don't put <br> before signatures in paragraph mode.
  • Bug 1482058 - fix 'edit as new message' not working when identity email is null.
Assignee: nobody → iann_bugzilla
Status: UNCONFIRMED → ASSIGNED
Depends on: 1693997, 1693994, 1693992
Ever confirmed: true
OS: Linux → All
Hardware: x86_64 → All
Whiteboard: SM2.53.8
Attached patch 1628671-from-compose-2538.patch (obsolete) — Splinter Review

[Approval Request Comment]
Regression caused by (bug #): n/a
User impact if declined: certain arguments are ignored from the command line
Testing completed (on m-c, etc.): 2.53.7
Risk to taking this patch (and alternatives if risky): none
String changes made by this patch: 4 new strings

Attachment #9204399 - Flags: review?(frgrahl)
Attachment #9204399 - Flags: approval-comm-release?
Attachment #9204399 - Flags: approval-comm-esr60?

Changes since last version:

  • Fix error message when strict JS is enabled.
Attachment #9204399 - Attachment is obsolete: true
Attachment #9204399 - Flags: review?(frgrahl)
Attachment #9204399 - Flags: approval-comm-release?
Attachment #9204399 - Flags: approval-comm-esr60?
Attachment #9204402 - Flags: review?(frgrahl)
Attachment #9204402 - Flags: approval-comm-release?
Attachment #9204402 - Flags: approval-comm-esr60?

Comment on attachment 9204402 [details] [diff] [review]
1628671-from-compose-v1_1-2538.patch

lgtm r/a+

Attachment #9204402 - Flags: review?(frgrahl)
Attachment #9204402 - Flags: review+
Attachment #9204402 - Flags: approval-comm-release?
Attachment #9204402 - Flags: approval-comm-release+
Attachment #9204402 - Flags: approval-comm-esr60?
Attachment #9204402 - Flags: approval-comm-esr60+

Pushed by frgrahl@gmx.net:
https://hg.mozilla.org/comm-central/rev/3a5d89777fa4
When I try to open email Compose from command line, 'from=' option is ignored. r=frg

Status: ASSIGNED → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → seamonkey 2.86
Pushed by frgrahl@gmx.net:
https://hg.mozilla.org/comm-central/rev/53ca75aa151d
Follow-up: Fix undefined identity for newsgroup accounts when no mail account is configured. rs=bustage-fix
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: