scripts/shell/debug_tbird.sh
2024-03-20 11:28:46 -05:00

20 lines
515 B
Bash
Executable file

#!/usr/bin/env bash
#
# run thunderbird in debug mode
# modules: imap, ldap, smtp, nntp, pop3, mime, all
#
# SPDX-License-Identifier: MIT
TB_PATH=$(which thunderbird)
# or for MacOSX:
#TB_PATH="/Applications/Thunderbird.app/Contents/MacOS/thunderbird-bin"
MYDATE=$(date "+%Y%m%d_%H%M%S")
#NSPR_LOG_MODULES=imap:5,timestamp,sync
NSPR_LOG_MODULES=all:5,timestamp,sync
#NSPR_LOG_MODULES="ldap:5,timestamp,sync"
NSPR_LOG_FILE=/tmp/thunderbird_${MYDATE}.log
export NSPR_LOG_MODULES NSPR_LOG_FILE
"$TB_PATH" &
exit $?