Posts Tagged ‘thunderbird’

Rebuilding inbox to fix hung imap command

Wednesday, July 14th, 2010

Every year I like to move my previous year email messages into a different folder, which often results in running into my quota limit.  This year, I managed to get the imap move command to keep trying and failing after running out of disk space.  To resolve it, I had to do the following:

  1. Right-click on the problem Inbox.
  2. Browse to the General Information tab.
  3. Click on Rebuild Index

The move command stopped and I was able to receive mail again.

Thunderbird 3 and Message Synchronization

Friday, April 23rd, 2010

I’ve been working with Thunderbird 3 in preparation for a deployment at DGP and found an interesting quirk – the message synchronization feature basically turns imap into a cached set of files on the local drive.  Since we have quotas on the network space where is data is kept, the file sizes are a big problem (it filled my quota before syncing all the messages).  It can be configured through the gui, but I want to change the installer to change this by default.

The best option I’ve seen so far is to change the default preferences file, but I’ll need to get it into the executable installer or change it after the installation.  To that end, I created a .cmd file which does a silent install:

ECHO.
ECHO installing thunderbird
ECHO PLEASE WAIT
start /wait \\Wood\SW\Thunderbird\”Thunderbird Setup 3.0.4.exe” -ms
\\Wood\SW\DGPSWscripts\sleep.exe 5

set option=pref(“mail.server.default.autosync_offline_stores”, false);

ECHO.
ECHO installing thunderbird
ECHO PLEASE WAIT
start /wait \\Wood\SW\Thunderbird\”Thunderbird Setup 3.0.4.exe” -ms
\\Wood\SW\DGPSWscripts\sleep.exe 5

set option=pref^(“mail.server.default.autosync_offline_stores”, false)^;

IF %PROCESSOR_ARCHITECTURE%==AMD64 echo %option% >> “%PROGRAMFILES(x86)%\Mozilla Thunderbird\defaults\pref\all-l10n.js”

IF %PROCESSOR_ARCHITECTURE%==x86 echo %option% >> “%PROGRAMFILES%\Mozilla Thunderbird\defaults\pref\all-l10n.js

  • The SLEEP program is from the Windows server 2003 toolkit.  The start /wait means that the command window will pause on the installation and then edit the pref file to disable mail sync.
  • The file is in two different location depending on whether it is a 64 bit or 32 bit version of windows (the brackets cause an IF ELSE statement to fail