Closed Bug 155221 Opened 22 years ago Closed 22 years ago

Word wrap preference discarded always (Preferences->Mail->Composition->Wrap Plain Text Messages=XX)

Categories

(MailNews Core :: Composition, defect)

defect
Not set
normal

Tracking

(Not tracked)

VERIFIED DUPLICATE of bug 155219

People

(Reporter: bryce2, Assigned: bugzilla)

Details

The code exists to read the user's word wrap width preference:

       if (NS_SUCCEEDED(rv) && prefs) 
          prefs->GetIntPref("mailnews.wraplength", &width);
       // Let sanity reign!
       if (width < 10)
         width = 10;
       else if (width > 30000)
         width = 30000; 

But the calculated width is never passed anywhere.  In addition 30000 is a
very abitrary number, not supported by any of the RFC's relating to creating
plain text (text/plain) messages.

I have attached a patch that moves this code to a place where it can have
some effect, rationalizes the limits to match the RFC's, and allows
specification of 0.  All this works perfectly with our without format=flowed
text.  The existing issues with utf-8 are not affected.

Plese consider applying this patch.

*** This bug has been marked as a duplicate of 155219 ***
Status: UNCONFIRMED → RESOLVED
Closed: 22 years ago
Resolution: --- → DUPLICATE
verified
Status: RESOLVED → VERIFIED
Product: MailNews → Core
Product: Core → MailNews Core
You need to log in before you can comment on or make changes to this bug.