Disable Auto Line Wrapping in Thunderbird
Thunderbird wraps lines at 72 characters by default—a sensible standard from the SMTP era, but one that can break formatting when sending code, logs, or plain text that needs to stay on single lines. The fix is straightforward: tell Thunderbird to let the recipient’s client handle line breaking instead.
Access the Config Editor
- Open Preferences (Linux/Windows) or Settings (macOS)
- Navigate to the Advanced tab
- Select the General subtab
- Click Config Editor…
A warning dialog appears. Click through it to access the advanced configuration interface.
Configure the Wrapping Settings
Search for these two preferences in the config editor and modify them:
mail.compose.wrap_to_window_width — Set to true
This wraps text visually to your composer window width during editing for readability, but doesn’t insert hard line breaks into the message. This is purely a visual convenience while you’re drafting.
mailnews.wraplength — Set to 0
This prevents hard line breaks from being inserted when the message is sent. A value of 0 disables wrapping entirely; the default is 72. This is the critical setting for preserving long lines.
Why This Matters
Different email clients render text differently. A 72-character wrap imposed by the sender can create awkward breaks on mobile clients, web interfaces, terminal emulators, or markdown renderers. By disabling sender-side wrapping, you preserve the original structure and let each recipient’s application decide how to display the content.
This is especially important when:
- Sending code snippets or terminal output
- Sharing configuration files or logs
- Working with monospaced text that relies on alignment
- Communicating with systems that parse email bodies programmatically
Plain text only: These settings apply only to plain-text composition. HTML mail uses different rendering rules and these settings have minimal effect. For technical communication, plain-text mode with wrapping disabled gives you the most predictable control.
Verify the Change
After modifying these values:
- Restart Thunderbird
- Compose a new plain-text email with a long line (at least 80+ characters, no manual line breaks)
- Send it to yourself or a test account
- Open the received message and verify the long line remains unbroken
Check both the message body and any quoted text. If wrapping still occurs, confirm both settings are correct and restart Thunderbird again.
Reverting to Defaults
If you need to restore default behavior:
- Set
mailnews.wraplengthback to72 - Set
mail.compose.wrap_to_window_widthback tofalse
These settings take effect immediately; no restart is required to change them, only to change the sending behavior.
Additional Tips and Best Practices
When implementing the techniques described in this article, consider these best practices for production environments. Always test changes in a non-production environment first. Document your configuration changes so team members can understand what was modified and why.
Keep your system updated regularly to benefit from security patches and bug fixes. Use package managers rather than manual installations when possible, as they handle dependencies and updates automatically. For critical systems, maintain backups before making any significant changes.
Quick Verification
After applying the changes described above, verify that everything works as expected. Run the relevant commands to confirm the new configuration is active. Check system logs for any errors or warnings that might indicate problems. If something does not work as expected, review the steps carefully and consult the official documentation for your specific version.

Using Thunderbird 24.2 and after changing all setting, the right margin is extremely wide.
‘First, open the “config editor”:
go to “Edit” -> “Preferences”, in the dialog select the “Advanced” panel, select the “General” tab, and then click the “Config Editor…” button.’
It’s 2020. There is no such thing anymore in TB 78.
How to setup TB 78 to not to automatically limit the line length of plain text to 72?
The Config Editor is still there for TB 78 – https://support.mozilla.org/en-US/kb/config-editor#thunderbird:linux:tb78
When you switch the documentation to Windows 10 from your (Linux) link, it’s still wrong. There is no Advanced panel under Options for TB 78. You must scroll all the way to the bottom of the General panel and click on the Config Editor button to get into the Config editor and perform the above steps.
Right, TB 18 changed the Preference page/dialog.
The first item to modify, mail.compose.wrap_to_window_width, does not exist in TB 78 (Windows 10). When typing in, the search box goes empty when you get to mail.compose.wr. Searching on just “wrap” can’t find it (by scrolling through the list); neither can “width” nor “window”.
In Thunderbir 78, you may set the ‘mailnews.wraplength’ to ‘0’. As I tried, the mail editor, in plain text mode, will not wrap the lines to the fixed length (72 by default). It will wrap at the editor window width instead.