Install lastest stable Thunderbird

wget https://raw.githubusercontent.com/panticz/installit/master/install.thunderbird.sh -O - | bash -

#!/bin/bash

# TODO:
# install german spell check

# add repository if necessary
RELEASE=$(lsb_release -rs | tr -d ".")
if [ ${RELEASE} -le 1104 ]; then
  sudo add-apt-repository -y ppa:mozillateam/thunderbird-stable
  sudo apt-get update -qq
fi

# install thunderbird
sudo apt-get install -y thunderbird

# install language packs
sudo apt-get install -y thunderbird-locale-de thunderbird-locale-en hunspell-de-de hunspell-en-us

# do we need this?
#sudo apt-get install -y thunderbird-gnome-support

# install lightning
sudo apt-get install -y xul-ext-lightning

# set thunderbird as default email client
sudo gconftool-2 --direct --config-source xml:readwrite:/etc/gconf/gconf.xml.defaults/ -t string -s /desktop/gnome/url-handlers/mailto/command 'thunderbird "%s"'

#lightning
apt-get install xul-ext-lightning

# thunderbird
wget http://ovh.dl.sourceforge.net/project/ubuntuzilla/mozilla/apt/pool/main/t/thunderbird-mozilla-build/thunderbird-mozilla-build_3.1.3-0ubuntu1_i386.deb -P /tmp
sudo dpkg -i /tmp/thunderbird-mozilla-build_*_i386.deb

# thunderbird DE
wget http://mozilla.saudi.net.sa/thunderbird/releases/3.1.2/linux-i686/de/thunderbird-3.1.2.tar.bz2 -P /tmp
mv /usr/lib/thunderbird /usr/lib/thunderbird.old
tar xjf /tmp/thunderbird-3.1.2.tar.bz2 -C /usr/lib/
ln -sf /usr/lib/thunderbird/thunderbird /usr/bin/thunderbird
mv /usr/lib/thunderbird.old/extensions/* /usr/lib/extensions/

# german language
http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/3.1/linux-i686/xpi/de.xpi

Filter
~/.thunderbird/*.default/ImapMail/*/msgFilterRules.dat

Lightning
module name: {e2fda1a4-762b-4020-b5ad-a41df1933103}
https://addons.mozilla.org/de/thunderbird/addon/lightning/versions/
http://releases.mozilla.org/pub/mozilla.org/calendar/lightning/releases/1.0b2rc3/linux-i686/lightning.xpi

# lighting on 64 bit
https://help.ubuntu.com/community/ThunderbirdLightning
wget http://releases.mozilla.org/pub/mozilla.org/calendar/lightning/releases/1.0b2rc3/contrib/linux-x86_64/lightning.xpi

command line arguments
http://kb.mozillazine.org/Command_line_arguments_%28Thunderbird%29

# shortcuts
https://www.thunderbird-mail.de/wiki/Kurzbefehle

### OLD

# german speel check
https://addons.mozilla.org/de/thunderbird/addon/9361

# Lightning for Thunderbird 3
http://ftp.mozilla.org/pub/mozilla.org/calendar/lightning/nightly/linux-xpi/
http://ftp.mozilla.org/pub/mozilla.org/calendar/lightning/nightly/latest-comm-1.9.1/linux-xpi/lightning.xpi
https://addons.mozilla.org/de/thunderbird/downloads/file/75390/xpi/lightning-1.0b1-tb+sm-linux.xpi?src=addondetail

# add german language
#wget http://mozmirror01.true.nl/pub/mozilla.org//thunderbird/releases/3.0/linux-i686/de/thunderbird-3.0.tar.bz2 -P /tmp
wget ftp://ftp.mozilla.org/pub/thunderbird/releases/latest-3.1/linux-i686/de/thunderbird-3.1.2.tar.bz2 -P /tmp
tar xjf /tmp/thunderbird*.tar.bz2 -C /tmp
#cp /tmp/thunderbird/chrome/de.jar /usr/lib/thunderbird-3.0.1pre/chrome/
cp /tmp/thunderbird/chrome/de.* /usr/lib/thunderbird-3.1.1/chrome/

# calender file
local.sqlite
http://sqlitebrowser.sourceforge.net/ - browser for sqlite files

Open winmail.dat in thunderbird
LookOut - https://addons.mozilla.org/en-US/thunderbird/addons/policy/0/4433/33018

Send Email from command line
FILE=/tmp/file-$(date +'%Y%m%dT%H%M%S').json
thunderbird -compose "to='foo@example.com',cc='bar@example.com',subject='my_subject',body='my_text',attachment=${FILE}"

Links
http://egon.resonar.de/2010/07/20/thunderbird-3-1-1-ppa-fuer-ubuntu-maverick-lucid-karmic-jaunty-hardy/
ftp://ftp.mozilla.org/pub/thunderbird/releases/3.0b2/linux-i686/de/
https://wiki.mozilla.org/Thunderbird:Thunderbird3