Closed Bug 922614 Opened 11 years ago Closed 11 years ago

Newsgroup: should not be displayed only if there is no newsgroup account defined in the TB profile

Categories

(Thunderbird :: Message Compose Window, defect)

defect
Not set
major

Tracking

(thunderbird25 fixed, thunderbird26 fixed, thunderbird_esr2425+ fixed)

RESOLVED FIXED
Thunderbird 27.0
Tracking Status
thunderbird25 --- fixed
thunderbird26 --- fixed
thunderbird_esr24 25+ fixed

People

(Reporter: aceman, Assigned: aceman)

References

Details

(Keywords: polish, regression)

Attachments

(1 file, 3 obsolete files)

Bug 399446 made it so the Newsgroup addressee type is not offered if a News account is not selected as the From identity in compose window. However, there are usecases where it should be possible to choose a Mail account as From and still post to an email address and a Newsgroup.

+++ This bug was initially created as a clone of Bug #399446 comment 35 +++

 Magnus Melin 2013-09-30 19:58:30 CEST

It's visible (Newsgroup option on address widget) if you're writing from a newsgroup account (and you can temporarily switch to one). Granted, i agree this makes mail+news postings very difficult. Would be better if it hid depending on the presence of a newsgroup account.
Attached patch patch (obsolete) — Splinter Review
Attachment #812763 - Flags: review?(mkmelin+mozilla)
Comment on attachment 812763 [details] [diff] [review]
patch

Review of attachment 812763 [details] [diff] [review]:
-----------------------------------------------------------------

LGTM! r=mkmelin

::: mail/components/compose/content/MsgComposeCommands.js
@@ +3769,5 @@
> +    if (account.incomingServer.type == "nntp")
> +      hideNews = false;
> +  }
> +  // If there is no News (NNTP) account existing then
> +  // hide the Newsgroup recipient type in all the menulists

and Followup-To.

@@ +3771,5 @@
> +  }
> +  // If there is no News (NNTP) account existing then
> +  // hide the Newsgroup recipient type in all the menulists
> +  // as it is not possible to send to a newsgroup (independent on which
> +  // account was actually chosen as the From).

Not sure what this comment means.

The idea is that we need to know which news server to post the message to, and if you haven't set up any account we're lost.
Attachment #812763 - Flags: review?(mkmelin+mozilla) → review+
Attached patch patch v2 (obsolete) — Splinter Review
Ok, thanks.
Attachment #812763 - Attachment is obsolete: true
Attachment #813246 - Flags: review+
Status: NEW → ASSIGNED
Keywords: checkin-needed
https://hg.mozilla.org/comm-central/rev/d65201425440
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Keywords: checkin-needed
Resolution: --- → FIXED
Target Milestone: --- → Thunderbird 27.0
Backed out for mozmill failures.
https://hg.mozilla.org/comm-central/rev/b970eb341906

https://tbpl.mozilla.org/php/getParsedLog.php?id=28752198&tree=Thunderbird-Trunk
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Target Milestone: Thunderbird 27.0 → ---
Attached patch patch v3 with test fix (obsolete) — Splinter Review
Attachment #813246 - Attachment is obsolete: true
Attachment #814508 - Flags: review?(mkmelin+mozilla)
Comment on attachment 814508 [details] [diff] [review]
patch v3 with test fix

Review of attachment 814508 [details] [diff] [review]:
-----------------------------------------------------------------

Looks good, thx! r=mkmelin

::: mail/test/mozmill/composition/test-address-widgets.js
@@ +137,5 @@
> +
> +  // Now the NNTP account is lost, so we should be back to mail only addressees.
> +  be_in_folder(accountPOP3.incomingServer.rootFolder);
> +  cwc = open_compose_new_mail();
> +  allowed_mail_types();

Could you also before this add some check that there are only mail accounts set up?

Could you rename allowed_mail_types to something more telling, like checkMailAddressTypes, and allowed_nntp_types to checkNNTPAddressTypes?
Attachment #814508 - Flags: review?(mkmelin+mozilla) → review+
Thanks, done.
Attachment #814508 - Attachment is obsolete: true
Attachment #815082 - Flags: review+
Keywords: checkin-needed
https://hg.mozilla.org/comm-central/rev/92ae5415cfbe
Status: REOPENED → RESOLVED
Closed: 11 years ago11 years ago
Flags: in-testsuite+
Keywords: checkin-needed
Resolution: --- → FIXED
Target Milestone: --- → Thunderbird 27.0
This was backed out and later relanded while investigating a test failure.
https://hg.mozilla.org/comm-central/rev/8dff78580066
Comment on attachment 815082 [details] [diff] [review]
patch v4 with test fix

[Approval Request Comment]
Regression caused by (bug #): bug 399446
User impact if declined: inability to send from a mail account to mail & news addresses
Testing completed (on c-c, etc.): c-c trunk
Risk to taking this patch (and alternatives if risky): another regression we don't see yet.
Attachment #815082 - Flags: approval-comm-release?
Attachment #815082 - Flags: approval-comm-esr24?
Comment on attachment 815082 [details] [diff] [review]
patch v4 with test fix

[Triage Comment]
Needs landing on aurora/beta first.
Attachment #815082 - Flags: approval-comm-release?
Attachment #815082 - Flags: approval-comm-beta+
Attachment #815082 - Flags: approval-comm-aurora+
Attachment #815082 - Flags: approval-comm-esr24? → approval-comm-esr24+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: