Nixser.com


Nixser.com

Debian, Internet, Blog, Tech Tips, and my craps.

Thunderbird: Enable Logging for Multiple Protocols How-To.

Often you will find yourself in situation that needs a little bit of debugging. I am today, something in my Icedove mail client(thunderbird) is not right, keeps connecting to the server with 15 - 30 connections at the same time, so I wanted to know what’s going on. I figured maybe there will be some options available in the program, however, it’s not there.

Surprisingly, logging of Thunderbird has to be done outside the program. Here’s how I did it, on both Debian and Windows machine.

On Debian

All you need to do is prepare a shell script on your desktop, double click it to run Thunderbird instead of your previous desktop icon. Name the file runTB.sh, or any name you prefer.

Codes:

#!/bin/sh

MYDATE=`date ”+%Y%m%d_%H%M%S”`
NSPR_LOG_MODULES=POP3:4,SMTP:4
NSPR_LOG_FILE=~/Desktop/icedove_${MYDATE}.log
export NSPR_LOG_MODULES NSPR_LOG_FILE

/usr/bin/icedove &
exit $?


more... »

Tue, July 24 2007 » Open Source, Softwares, Tips » No Comments