rework ReplyIgnoreQuote to be a boolean parameter quote, passed to MailServices.compose.OpenComposeWindow
Categories
(MailNews Core :: Composition, task)
Tracking
(thunderbird78 wontfix)
Tracking | Status | |
---|---|---|
thunderbird78 | --- | wontfix |
People
(Reporter: mkmelin, Assigned: rnons)
Details
Attachments
(1 file, 5 obsolete files)
9.14 KB,
patch
|
mkmelin
:
review+
|
Details | Diff | Splinter Review |
We should never be messing with the compose type. Quoting or not should be a boolean parameter instead.
Reporter | ||
Comment 1•5 years ago
|
||
Not doing so would lead to further hacks e.g. for bug 1615996.
Reporter | ||
Updated•5 years ago
|
Assignee | ||
Comment 2•5 years ago
|
||
- Removed
ReplyIgnoreQuote
fromnsIMsgCompType
- Added
ignoreQuote
param toOpenComposeWindow
I will push to Try to see if it breaks anything.
Assignee | ||
Updated•5 years ago
|
Assignee | ||
Comment 3•5 years ago
|
||
There is a failure, but seems to be known issue.
Reporter | ||
Comment 4•5 years ago
|
||
Assignee | ||
Comment 5•5 years ago
|
||
- Renamed ignoreQuote to suppressReplyQuote
- Added some documentation to nsIMsgComposeService.idl
I thought about using optional parameter at first, but seems in most cases (compose types), we want to suppress reply quote. So even it's optional, we still often need to pass true
. Unless we want to reverse this param to includeReplyQuote
.
Assignee | ||
Comment 6•5 years ago
|
||
Lint.
Reporter | ||
Comment 7•5 years ago
|
||
(In reply to Ping Chen (:rnons) from comment #5)
I thought about using optional parameter at first, but seems in most cases (compose types), we want to suppress reply quote.
Well, in most cases it's just not relevant. It only does something for the reply types and is ignored for all others. https://searchfox.org/comm-central/rev/771b2328aa3096e6c907f477d7ebd862c8bf0841/mailnews/compose/src/nsMsgComposeService.cpp#410-416
That's why it would be nice to be optional - not having to specify it when it's irrelevant. From a quick look at the patch, 7 or so of the cases are such that it's irrelevant.
Assignee | ||
Comment 8•5 years ago
|
||
Thanks, I see what you mean now. Fixed.
Reporter | ||
Comment 9•5 years ago
•
|
||
Assignee | ||
Comment 10•5 years ago
|
||
I should read the code more carefully. Changed to pass suppressReplyQuote
to openComposeWindowForRSSArticle
now.
Reporter | ||
Comment 11•5 years ago
|
||
Assignee | ||
Comment 12•5 years ago
|
||
Hope I get it right this time. Yes, the "Reply" items in the context menu of feeds confused me.
Reporter | ||
Comment 13•5 years ago
|
||
Reporter | ||
Updated•5 years ago
|
Comment 14•5 years ago
|
||
Pushed by mkmelin@iki.fi:
https://hg.mozilla.org/comm-central/rev/ece38adeaaee
Change ReplyIgnoreQuote to be a boolean parameter. r=mkmelin
Reporter | ||
Updated•5 years ago
|
Reporter | ||
Updated•5 years ago
|
Description
•