spellcheck should not check quoted text (plain text compose)



16 years ago
4 years ago


(Reporter: calum.mackay, Assigned: mscott)


(Blocks: 1 bug)

Dependency tree / graph

Firefox Tracking Flags

(Not tracked)



(1 attachment)



16 years ago
User-Agent:       Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4b) Gecko/20030412
Build Identifier: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4b) Gecko/20030412

Bug 173046 fixed the spellchecker to not spellcheck quoted text, since you don't
really want, by default - to spellcheck text you didn't write. This fix only
applied to html mail compose.

This bug is being logged to request a fix for plain text compose.

Reproducible: Always

Steps to Reproduce:


16 years ago
Summary: spellcheck sahould not check quoted for (plain text (plaintext) compose) → spellcheck should not check quoted for (plain text (plaintext) compose)


16 years ago
Summary: spellcheck should not check quoted for (plain text (plaintext) compose) → spellcheck should not check quoted text (plain text compose)


16 years ago
Blocks: 108194

Comment 1

16 years ago
This isn't a composer bug; it's a mail bug  -->
Assignee: composer → ducarroz
Component: Editor: Composer → Composition
Product: Browser → MailNews
QA Contact: cpetersen0953 → esther

Comment 2

16 years ago
Hi All,

    I just checked out Netscape 7.1's spell checker XPI in 1.4 general release.
And, it works.  Doesn't check quoted text either. 



p.s. checking quoted text makes us all look rather amateurish to our customers.
This band-aid will help us all save face until this bugs FINALLY gets fixed

Comment 3

16 years ago
I care about this for thunderbird. re-assigning. Maybe JF can show me how easy
it is to add a wrapper tag around quoted plain text replies which the spell
check engine can key off of. 
Assignee: ducarroz → scott
Blocks: 214399

Comment 4

16 years ago
*** Bug 214505 has been marked as a duplicate of this bug. ***

Comment 5

16 years ago
How can 7.1 do this?

That implies the spellchecker knows that it is quoted text...

anyone want to look at the NS source code? :)

Comment 6

16 years ago
The spellchecker knows nothing about skipping ... it's a filter registered on
the TextServices module ... the one used by Composer/Mail's spellchecker lives in:


Comment 7

16 years ago
Mike 7.1 does not skip replies to plain text compose either. This is an open bug
that needs to be fixed. Which is why I assigned it to myself. We have to do some
work in plain text compose to make this techincally possible. 

Comment 8

16 years ago
Hi Scott,

   Check out (my) comment #2.  My Netscape 7.1 spell checker does indeed skip
plain text quoted messages.  Have you tested it lately?  Maybe you are using 
Mozilla 1.5 alpha?


Comment 9

16 years ago
Are you sure you were not inside an HTML editor instance? Using NS7.1 with the
spell checker with plain text does not work for me. You must have the Use HTML
compose checkbox turned off in Account Settings for the account you are replying
from to truly be in plain text compose.

I can assure you from working "on the other side" that this code does not exist
at all. We need to wrap plain text replies just like HTML compose does with the
block=cite tag to make editor skip over these elements before handing the text
off to the compose window.

Anyway arguing about that is moot and has no bearing on the fact that we want to
fix this and I'm planning on doing so for Thunderbird.

Let's focus on the fix. 


Comment 10

16 years ago
I have a fix for this feature. 

Kin, it turns out editor already wraps quoted material for plain text with a pre
or a span tag:

and editor sets a value of _moz_quote="true" on the pre or the span attribute.

I thought I was going to have to write code to wrap plain text quoted material
in a tag.

Knowing this made the rest of the bug easy to fix. I added a few more atoms to
nsComposeTxtSrvFilter to check for this additional information.

Patch coming up. 

Comment 11

16 years ago
Created attachment 128919 [details] [diff] [review]
the fix for plain text


16 years ago
Attachment #128919 - Flags: superreview?(kin)

Comment 12

16 years ago
Comment on attachment 128919 [details] [diff] [review]
the fix for plain text 


==== I'd lose the "Quote" in mPreQuoteAtom and mSpanQuoteAtom, but it's up to

==== Can you line up the comments you added in the .h file?
Attachment #128919 - Flags: superreview?(kin) → superreview+

Comment 13

16 years ago
Comment on attachment 128919 [details] [diff] [review]
the fix for plain text 


same comment as kin :)
Attachment #128919 - Flags: review+

Comment 14

16 years ago
fixed (with the review comments). 
Last Resolved: 16 years ago
Resolution: --- → FIXED

Comment 15

16 years ago
Confirmed fixed, 200308081, mailnews & thunderbird, linux/x86.

Comment 16

16 years ago
Does the fix also include *not* checking the "Written by Miscrean Splleler on
Aug 1, 2003" line that it at the front of every reply/forward quote block

Comment 17

16 years ago

Comment 18

15 years ago
This bug consistently reoccurs when the Enigmail extension is installed.
Tested on Mozilla 1.5 20030925, Enigmail (http://enigmail.mozdev.org/).
Product: MailNews → Core

Comment 19

13 years ago
I still seem to be having this problem in thunderbird 1.5. Is there something that needs to be done to enable the fix?
Product: Core → MailNews Core

Comment 20

4 years ago
I still see this in Version 31.1.2 (packaged in Ubuntu) when replying to plain text emails.  

Spellcheck is checking the whole message.
You need to log in before you can comment on or make changes to this bug.