Enable Thunderbird logging

Date: 29 Nov, 2012
Posted by: admin
In: hints & tips|internet, web design & development|linux, open source & software

Bookmark and Share

Thunderbird interaction log

Record HTTP, IMAP and SMTP connection details

Simple one-liner (well 3 in 1) to enable logging for Mozilla Thunderbird on Linux (I’m using Kubuntu 12.10 Quantal at the moment):

export NSPR_LOG_MODULES=timestamp,imap:5,smtp:5,nsHttp:5,nsHostResolver:5; export NSPR_LOG_FILE=~/tmp/imap$(date +%s).log; thunderbird

This works for me on Thunderbird 16.0 creating logs in my /home/user/tmp/ folder named imapXXXXXXX.log where the X’s are replaced by a date indicator (see “man date” for details). For debugging connection errors you probably don’t need the “nsHttp:5,” part and will most likely get more useful logs without it!?

Official log info

See for example https://developer.mozilla.org/en-US/docs/HTTP_Logging, https://wiki.mozilla.org/MailNews:Logging and http://www.mozilla.org/projects/nspr/reference/html/prlog.html for pertinent details and logging options.

Sorry, comments are closed.


Flapjacktastic is just a random collection of musings, hints&tips, notes, information ... a collection of stuff really that's overflowed from the brain of this husband, father, potter, business-man, geek ...

past posts