Closed Bug 466330 Opened 16 years ago Closed 3 years ago

"Quote Message" quotes the currently highlighted message - not the replied-to message

Categories

(Thunderbird :: Message Compose Window, enhancement)

enhancement

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: erez.schatz, Unassigned)

References

Details

Attachments

(1 file)

User-Agent:       Opera/9.62 (Windows NT 5.1; U; en) Presto/2.1.1
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1b1pre) Gecko/20081006 Shredder/3.0a3

When using "quote message" menu item, the currently highlighted message is qouted, rather than a more appropriate message (if the mail is a reply-to, or forward). 

Reproducible: Always

Steps to Reproduce:
1. click "reply" on any message
2. in the main Thunderbird window, click on another message
3. at the compose window, click Options> Quote message
Actual Results:  
The highlighted message will be quoted

Expected Results:  
The replied-to message should be quoted

This is the way Thunderbird have behaved since probably always.
That was introduced on purpose by bug 23394 when highlighting a text of the original message and then clicking on Reply, thus the same also applies to "Quote message" from the menu.

I'd expect this to resolve INVALID or WONTFIX as the change was on purpose.
Whiteboard: closeme?
Whiteboard: closeme? → closeme 2009-03-19
->WONTFIX
Blocks: 23394
Status: UNCONFIRMED → RESOLVED
Closed: 15 years ago
Resolution: --- → WONTFIX
Whiteboard: closeme 2009-03-19
I think this is a valid bug. It says that the
Computer | menu | Options | Quote message
feature is essentially broken now. It's fairly likely that I opened another mail since I hit Reply and edited my mail.

I think it should either be fixed to quote the replied-to message (as it was intended and always did), or entirely be removed.
Note that we already have a
Edit | Paste as quotation
for quoting other mails and sources (it just won't insert the "Fred wrote:"), so the "Options | Quote message" as-is provides no useful functionality anymore, unless it's fixed.
Status: RESOLVED → UNCONFIRMED
Resolution: WONTFIX → ---
Status: UNCONFIRMED → NEW
Ever confirmed: true
Severity: enhancement → normal
OS: Windows XP → All
Priority: -- → P4
Hardware: x86 → All
Version: unspecified → Trunk
This actually has nothing to do with Reply Quoting Selection.  This bug was
there in TB 2.0, before the RQS code has added.

If you look at the code in
mailnews/compose/resources/content/MsgComposeCommands.js,
QuoteSelectedMessage() calls GetSelectedMessages(), which gets the selected
message from the most recent mailbox window.  What needs to happen is that the
original message used to create the reply should be used in this case.  I don't
think that original message URI is saved around, and it might be complicated to
save on a permanent basis (i.e. when the reply message is saved and closed and
then reopened), but saving it in memory would be easy.

I'll take a look at this.
Assignee: nobody → beckley
Status: NEW → ASSIGNED
Component: Message Compose Window → Composition
Product: Thunderbird → MailNews Core
QA Contact: message-compose → composition
Target Milestone: --- → Thunderbird 3.0b3
Attached patch FixSplinter Review
Here's changes for both Thunderbird and SeaMonkey.  When the response message is created, the original message URI is saved.  That URI is used to as the basis for quoting.  If the original message URI is not present, then it falls back on the old behavior of using the selected message of the topmost mailbox window.  This is to preserve old functionality, like creating a new message and then quoting several selected messages in a mailbox (a kind of mass forward in one message).
Attachment #367280 - Flags: superreview?(dmose)
Attachment #367280 - Flags: review?(philringnalda)
Attachment #367280 - Flags: ui-review?(clarkbw)
Comment on attachment 367280 [details] [diff] [review]
Fix

So the question is whether we want the old functionality (quoting always quotes the selected messages) or the patch behavior (quoting quotes the original message if a reply/forward, but selected messages if not).  Adding clarkbw as referee.
The answer to my lunchtime question is that this would be a duplicate of bug 181028 (or rather, what it morphed into), except that it's not a core issue: as your patch makes clear, the core is quite capable of supporting any sort of UI that either application wants, and I'm not at all sure that they'll wind up wanting the same thing. Reasonable SeaMonkey UI would be a "Quote Original Message" menuitem that's disabled/hidden when you aren't replying, and a "Quote Selected Message(s)" menuitem that's disabled/hidden when nothing's selected; I wouldn't be terribly surprised if Thunderbird UI winds up being "eh, it's too confusing and unpredictable and power-user-oriented, rip the whole thing out and make someone write an extension to replace it."
Component: Composition → Message Compose Window
Product: MailNews Core → Thunderbird
QA Contact: composition → message-compose
As said in comment 3, 'quote selected message' functionality would have too much overlay with "Edit | Paste as quotation" to warrant being an extra function, therefore I think your patch is desirable, and thanks for taking the time to write it.
The problem with comment 3 is that you started out from the wrong place: bug 70478 intentionally implemented exactly what we've had for almost seven years, a "quote selected messages," and did so because it was 4xp.

Argue that a feature which some people have been using happily for ten years or more shouldn't exist because they can do the same thing worse with much more effort another way, that's fine, but don't argue that it's a regression that was accidentally introduced sometime recently.
Paste as quotation is different in that it works with whatever text is on the
clipboard.  Since it doesn't know if that clipboard text is from a message or
not, or if it was which message it was from, then it can't add an attribution
line ("On <date/time>, <sender> wrote:").

In ruminating about this some more, I think we should leave the old behavior
and change the tooltip to "Quote currently selected message(s)".  Having it
quote the original message in a reply/forward is fairly useless as almost all
of the time the original message is already quoted in there.  If we really
wanted to we could create a new menu item to quote the original message, but I
don't think it's common enough to warrant it.  You can always get that behavior
by selecting the original message.
Comment on attachment 367280 [details] [diff] [review]
Fix

I like the sound of what you're thinking now much better, but just in case we get UI marching orders that lead us back here, something in one of the other bugs about this made me try:

1. Click reply
2. Delete the replied-to message
3. "Quote Message"

which with this patch fails rather unprettily by inserting a "On 12/31/69 4:00 PM,  wrote:"
Attachment #367280 - Flags: superreview?(dmose)
Attachment #367280 - Flags: review?(philringnalda)
Attachment #367280 - Flags: review-
(In reply to comment #10)
> In ruminating about this some more, I think we should leave the old behavior
> and change the tooltip to "Quote currently selected message(s)".  Having it
> quote the original message in a reply/forward is fairly useless as almost all
> of the time the original message is already quoted in there.  If we really
> wanted to we could create a new menu item to quote the original message, but I
> don't think it's common enough to warrant it.  You can always get that behavior
> by selecting the original message.

This sounds like the right path to me.  And it should be a much simpler patch.

The text "Quote currently selected message(s)" is really long and awkward, but I don't have any better suggestions for the situation.
Attachment #367280 - Flags: ui-review?(clarkbw)
Comment on attachment 367280 [details] [diff] [review]
Fix

removing myself from this as well.
(In reply to comment #10)
> Paste as quotation is different in that it works with whatever text is on the
> clipboard.  Since it doesn't know if that clipboard text is from a message or
> not, or if it was which message it was from, then it can't add an attribution
> line ("On <date/time>, <sender> wrote:").
> 
> In ruminating about this some more, I think we should leave the old behavior
> and change the tooltip to "Quote currently selected message(s)". 

Maybe you should, when copying text from a message to the clipboard, also save it with a special MIME type (or however clipboard content is typed), and remember it came from a message.

If so, you could offer a separate Paste as ... entry, or add attribution on "Paste as quotation", or whatever.
"Quote Message" must be one of the strangest features we have. And it's under Options while not an option. I think we should consider dropping it.
The purpose of the feature was for people who don't quote by default on reply, but want to do it on demand.
You can do that (another way) by opening the to-be-quoted message, select text, copy, go back to editor and select Edit | Paste as quotation. Surely much more cumbersome, but works.
Ooops, nevermind, I already said that in comment 3 and in comment 8. Duh.
At the very least it should move to the Edit menu.
I don't think anybody would understand it in Edit, if we had both this and "Paste as Quotation".

I think this is indeed something we can remove from the menu.

Thomas, can you untangle or finish this?

Flags: needinfo?(bugzilla2007)
See Also: → 1689803

(In reply to Wayne Mery (:wsmwk) from comment #20)

Thomas, can you untangle or finish this?

Sure, my pleasure!

TL;DR:
I think Magnus (comment 2) was right: The correct resolution here is WONTFIX.

Reasons:
This bug (per current summary) wants to reduce the current functionality of Quote (selected) message(s) to just Quote the original message replied-to. Net effects:

  • substantial loss of flexibility:
    • no more convenient mass-quoting of multiple selected messages
    • no more quoting of selected messages in new compositions which are not replies
  • very little benefit:
    • typically, the original message will be selected anyway when you reply, so you can easily use the current feature to reply to the original (selected) message. (Quote-on-reply is ON by default, so if you're having regular challenges with reply-quoting OFF, well, just switch it back on!)

Way forward:
I think we should just move the menuitem to a better place and polish some rough corners including the wrong tooltip on the Quote button (available from toolbar customization).

I have created a clean bug for that and provided a patch:
Bug 1689803 - Move "Quote [selected] Message" out of "Options" menu and improve menu label, button tooltip and enabled behaviour

The small print - in support of this resolution:
Cross-section of previous comments

(In reply to Phil Ringnalda (:philor) from comment #9)

bug 70478 intentionally implemented exactly what we've had for almost seven years, a "quote selected messages," and did so because it was 4xp.

Bug 70478 (10 duplicates) explicitly restored this feature as still seen in TB 78, because that's what users were asking for.
On the other hand, this bug 466330 (filed 7 years after the alleged "regression") does not have a single duplicate nor votes, and mostly skeptical comments here. As a matter of fact, it's actually an RFE.

(In reply to Jeff Beckley from comment #10)

I think we should leave the [current] behavior and change the [button] tooltip to "Quote currently selected message(s)".

+1.

Having it quote the original message in a reply/forward [as requested by this bug 466330] is fairly useless as almost all of the time the original message is already quoted in there. [....] You can always get that behavior by selecting the original message.

(In reply to Bryan Clark (then TB UX) [:clarkbw] from comment #12)

This [keeping the feature as it is now, quote any selected messages] sounds like the right path to me.

+1

(In reply to Magnus Melin [:mkmelin] from comment #18)

At the very least it [the "Quote Message" menuitem] should move to the Edit menu.

Yes, Options is definitely the wrong place for this command (undiscoverable), as all the other options are about settings for the message. I think the choices are Edit or Insert; imho the latter fits even better...

(In reply to rsx11m from comment #1)

I'd expect this to resolve INVALID or WONTFIX as the change was on purpose.

(In reply to Magnus Melin [:mkmelin] from comment #2)

->WONTFIX

+1

q.e.d.

Assignee: beckley → nobody
Severity: normal → --
Status: ASSIGNED → RESOLVED
Type: defect → enhancement
Closed: 15 years ago3 years ago
Flags: needinfo?(bugzilla2007)
Priority: P4 → --
Resolution: --- → WONTFIX
Severity: -- → N/A
Target Milestone: Thunderbird 3.0b3 → ---
Summary: "quote message" quotes the currently highlighted message - not the replied-to message → "Quote Message" quotes the currently highlighted message - not the replied-to message
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: