Debug Thunderbird on Windows
Thunderbird Logging (POP3, SMTP)
To configure logging via a Thunderbird Preference, you must create a hidden Thunderbird preference, not an environment variable. In Thunderbird:
- From the main menu go to Settings > General
- Type
config editorin the Find in Settings search bar - Click the
Config Editorbutton in the search results - In the search field at the top paste or type the preference name for the service you wish to log:
- POP3 -
mailnews.pop3.loglevel - SMTP -
mailnews.smtp.loglevel
- POP3 -
- If you are presented with choices of Boolean, Number, String
- choose String
- click the
+(plus sign) to add the preference
- Click the edit icon next to the preference that appears
- Change the value to
All(case-sensitive; often set toWarnby default) - Click the tick button to save the new configuration setting
Logging will be on until you reset or delete the preference again. You do not need to restart Thunderbird as logging starts immediately.
To view the logging output:
- Main menu > Tools > Developer Tools > Error Console (or press Ctrl+Shift+J)
- Expose the timestamp for each entry by clicking the gear icon in the top-right of the Console and turning on Show Timestamps
- Perform the task/s that you want to log (e.g. sending email (SMTP), receiving email (POP3))
- The logging information will appear in the console
Once you have performed the task that you want to log, you can save the logging output by right-clicking any of the console messages and choosing Save all messages to file.
If asking Farbyte for support with an issue, attach this log to your Farbyte support ticket.
Gecko Logging (IMAP)
IMAP uses Gecko logging, which requires environment variables and must be started from a batch file:
- Create a text file on your Desktop and rename it to
imap_log.bat - Open the file in Notepad and paste these lines:
set MOZ_LOG=IMAP:5,timestamp
set MOZ_LOG_FILE=%USERPROFILE%\Desktop\imap_log
"%ProgramFiles(x86)%\Mozilla Thunderbird\thunderbird.exe"
- Save and close the file
- Right-click
imap_log.batand select Run as administrator (UAC requires administrator privileges or the log file will not be created) - Thunderbird will launch
- Perform the IMAP actions you want to log (e.g., receiving email, syncing folders)
- Close Thunderbird completely
- The log file
imap_log.moz_logwill be on your Desktop
Note: For Windows XP or Vista, change %ProgramFiles(x86)% to %ProgramFiles% in the batch file.
If asking Farbyte for support with an IMAP issue, attach the imap_log.moz_log file to your support ticket.