Friday, February 10, 2012

Recovering your lost data

Now it would be easy here to use that old computing chestnut here, use your backups and restore from those.

The reality however is that for whatever reason most people don't have good backups, to make things even more serious many assume that the windows system restore will do it for them. Windows system restore is almost as likely to leave you will a non functional Thunderbird as it is to do anything.

Leaving aside my personal anger at the decision Microsoft made 10 years ago that home users just don't need backups, and subsequently excluded the backup program from the operating system you purchased.  You find yourself in the situation that your hard drive crashed, the nice person at the computer store has put your old hard drive into an external case you install Thunderbird and all your mail is simply not there. To recover from this situation, you need to role your sleaves up and get into the nity gritty of the file system on your old had disk.

I am going to talk here primarily of windows, as Linus and mac actually have build in backup programs and in the case of iCLoud, a nice secure place to store it.

Under Windows Thunderbird profile data is stored in a collection of folders in a Hidden windows folder called Application Data.  You will find all sorts of references on the web telling you to use the %appdata% windows environment variable to locate this folder, but that will only work on the current operating system, not your old hard disk. So to start with there are some changes you need to make to windows.

First you have to tell windows to show hidden files and folders.

Windows XP
Vista
Windows 7

I have linked to Microsoft here, as it is their operating system. If their explanation of how is not enough for you, please ask Microsoft.

Now we need to locate the Application Data folder, but first a convention [username] means your login name to the computer.

Windows XP the folder is usually C:\documents and settings/[username]\application data
Windows vista it is usually C:\users\[username]/appdata or C:\users\[username]\appdata\roaming
Windows 7 is is usually C;\users\[username]\appdata\roaming

Hopefully this image I stole from the Microsoft site will explain a little

Once you locate the application data folder, it is simple to then locate the Thunderbird folder it contains.

The Thunderbird folder contains a file called profiles.ini.  This file actually containsa couple of thing that we need to note.  One is the location of the actual profile folder.  So open the file in wordpad.  Wordpad will format it nicely, notepad will make a a long string of gobbldy gook


[General]
StartWithLastProfile=1

[Profile0]
Name=default
IsRelative=1
Path=Profiles/it39phn2.default
Default=1

[Profile1]
Name=tester
IsRelative=1
Path=Profiles/zwldg1rp.tester


The two things of interest are the IsRelative and Path.

IsRelative =1 means the profile is located further down the Thunderbird folder tree. if it is not =1 then the folder will be located absolutely at the location pointed to in Path=

Unless you have changed defaults, IsRelative will equal 1 and you need to navigate down the folders until you locate to place pointed to in the path= line.

You have now located your old profile folder.  The question arises,  do you just want some of the information out of it, or do you want it all as a replacement for what you have.  The latter option is by far the easiest.

Simply replace the files in your new profile folder with the ones in your old profile folder and start Thunderbird and all will be back as it was before.

If replacement is not an option, I would suggest you install the Import / Export tools to Thunderbird and export the new mail you have in your new profile as EML files.  Replace the files as above and use the Import Export tools to re-import the new mail..


Hidden / Lost Menu and Toolbar

There has been something of a rash of people loosing either the toolbar or the menu bar in Thunderbird.  This is probably only going to get worse as the intention is to hide the menu bar on windows 7 machines, so here are the simple instructions to fix the hidden things.

Application Menu:  With the release of Thunderbird 17 there is an application menu entry on the Toolbar that is shown below.  Clicking the application menu will provide access to most of Thunderbirds menu options.  Most support articles on the web however do not refer to this application men, but to the Full menu bar




Full Menu bar:  Pressing Alt will show it long enough to enter some key strokes.  Pressing F10 will make it visible for a longer time..

Toolbar:  Once you have the menu bar visible, selecting the view menu item and then toolbars will show the list of toolbars you can have visible.

For the main Thunderbird windows, the options are as shown above

The Mail Toolbar is the main toolbar with Icons on it.
Menu bar is the application menu. This can be made visible either by holding the ALT key or pressing F10
Status bar is at the bottom of the screen
Quick filter bar has the same effect as clicking the magnifying glass icon on the toolbar or Tab bar (Up to V11)


If you are in the compose window the options are shown above.  It is only from the composition window (click write or reply etc). that the toolbars shown in that windows can be set.

Menu bar is the menu for the composition window only. This can be made visible either by holding the ALT key or pressing F10
Composition Toolbar is the main window toolbar with send on it
Formatting bar is the bar that has formatting information on it like font name and size
Status bar is the footer at the bottom of the screen. Used for feedback and by add-ons. In my case I can access a translation add-on there.


Tabs and toolbars:
From Thunderbird version 11 toolbars will be under the tabs, and the toolbar that appears will be dependent on the 'context' of the tab.  What this means is that the mail toolbar will not be visible unless the tab is a mail tab. Lightning will have a Calendar toolbar, and some other tabs will have no toolbar at all.  This change is I am told in preparation for bringing compose in a tab and address book in a tab to fruition.  For those that are interested these Thunderbird bugs refer to the change and the request I made to provide an option to opt out of the change.

In response to customer complaints about the change, the Rise of the Tools add-on was born to reverse the layout changes and put the toolbar and menu back on top.

Backups

This is a perennial question, and it does not really have a one size fits all answer.

Thunderbird does not natively have a profile backup option, nor is it likely to have one.  The arguments here can get complex, but the bottom line is that it is not just your email you should be backing up so Mozilla has left backup in the realm of Third party providers.

I am not going to get into the mine field of backup options other than to say that Microsoft has left most people high and dry with their decision to only include backup tools in Business versions of windows.  That is not to say that there are not many excellent backup solutions on the market and a quick search of Google will almost deluge you in offerings.

Having said that there are some specific and free Mozilla backup options around

Perhaps the oldest of these is Mozbackup.this independently developed program is only available for windows, but it does offer some very fine grained options when backing up.  Then there is the backup tool provided in the excellent  Import/Export tools add-on.  The author of this tool has been writing add-ons for Thunderbird for a very long time, and I would recommend a visit to the Kaosmos web site to all. There are some very useful tools there.

The import export tools offers a backup from it's options which appear in the tools menu of Thunderbird.  The only complaint I would have here is that it does not offer a time of day to do the backup, but otherwise a very good start.

The developers of the Mozilla Stand alone profile manager have also included a profile backup option.  This is in Beta and has been for quite some time.  I have used it and found it to be quite stable and user friendly.  but there a three caveats that I must mention. 

  • There is no installer. You must download the zip file and unzip it to a location of your choice. 
  • The program works with Firefox by default and the target for the shortcut you create must be modified to include ‘profilemanager thunderbird’ rather than the ‘profilemanager' that a default short cut will have.
  • It does not include the Visual C++ runtime needed.  This can be downloaded here. 

Sunday, November 6, 2011

Thunderbird and Exchange / OWA

Thunderbird does not work natively with Exchange/OWA.  That is the short answer I have been giving people for a long time.  In the past few days I have stumbled upon some software that is designed to sit between you and the exchange server and act as an interpreter.  That would be DavMail.  DavMail is not new, and like Thunderbird is an open source project so there are no licences to buy.   You simply download it and install it.

How does this affect the situation of using Thunderbird with Exchange servers?  It changes everything!

Until now we have been able (on some occasions) to convince the exchange server admin that turning on IMAP on exchange was a good idea, but for every success there have been probably a dozen failures and out of the box Exchange is totally inaccessible to standards compliant mail programs.  Evolution, Thunderbird, even the OSX Mail program can all benefit from this software because it make exchange 'just another mail server'.  The real beauty of this is that it does it's magic  from your computer so you don't need to go cap in hand to some system admin to ask them please do something, you simply install it an go from there.

When I installed the software it was simple, painless and just worked.  What is different is the way you set up accounts in Thunderbird.  Because you have put all he remote locations into DavMail, the server names you use are not the ones you would expect from the information provided by the Exchange administrator.  The server names for Thunderbird are simply localhost.  The user names are Domainname/username and will be the same as you use for OWA.

The instructions given for setting up mail accounts on the web site are only for version 2 of Thunderbird.
To setup in Thunderbird 6 and latter do the following.
Give the account setup wizard your mail address and your correct password and click next. it will look for settings and fail.

Once you get to the unable to detect your settings, manually edit the entries in the dialog as shown below. Remember to put your OWA signon in to the box at the bottom.


When you click the Re-test button, Thunderbird will show it has found your account settings and proceeds to allow you to create the account.

You are done, you have your Exchange/OWA account in Thunderbird. You can now add calendars and address books as shown on the MailDav web site.

 For those using Linux there are instructions on UBUNTU here 

ExQuilla

The ExQuilla add-on supports Microsoft Exchange 2007 and later and is now available in Beta from the Mozilla Addon site. When used in conjunction with the Exchange calender provider for lightning  most Exchange features are available directly within Thunderbird

Saturday, October 22, 2011

How do I Recall my Email.

This is one of those posts that really has no solution, but it is a question that is asked over and over again.

Email has no option to recall once it is send. So you can not put the cat back in the bag once it is let out.

Microsoft Exchange email server has an option to Recall an email, and this has led many people who work in corporate environments to think that it is a feature of email.  This is a feature of Exchange server, not email and there is a big difference.  Exchange can basically do what it likes, because all the mail in in the exchange database.  Once it leaves that exchange database and going out into the wild of the internet it is no longer under the control of the exchange server and can not be recalled at all. If the mail has been seen by the person it was sent to the recall does not work If the email is send outside the domain (that is to someone outside your business, the recall will not work.  For the full details you might read what Microsoft has to say about how their recall implementation works.

Google built a recall into their Gmail system as well, but again it is a fudge.  They simply delay the sending of the email for the time they give you to change your mind;.  So you get an undo option on the send, but it is not a real recall as the mail was never sent.

So Thunderbird does not have a recall option, simply becasue it is not a part of the mail RFC's which are the core of Thunderbird functionality.  So for those that want a similar option to change their mind, there is the send latter addon, which delays sending and provides the opportunity to change your mind and delete mail from the outbox before it is sent. 

But by far the simplest method is to make Thunderbird work off line (File > offline > work offline)  this means all messages will be stored locally and not sent until you repeat the process to go back on line, or press the get mail button.

Sunday, October 9, 2011

Can't delete EML files

This came up on the get satisfaction support site, and I thought it worth noting here for my own future reference.

Apparently windows search uses some sort of modified file properties to 'enhance the search experience'.  The references I have read all implicate Live mail in the installation of this enhancement, but it could just as well be a windows update or an Internet explorer update.

The side effect of the enhanced search experience is that any EML files you have saved into the file system from your mail client can't be dealt with as files and nothing you do to move or delete them works.  The solution is to change the registry key as shown below.   Once that key is set to Zero and you have rebooted you will be able to modify the EML files as normal.

[HKEY_CLASSES_ROOT\CLSID\{5FA29220-36A1-40f9-89C6-F4B384B7642E}\OverrideFileSystemProperties]
"System.SFGAOFlags"=dword:00000000

Wednesday, October 5, 2011

Folders can be confusing

The folders view in Thunderbird appear to cause some confusion, partly because of the may views available, and partly because the behaviour is different depending on where you create folders.

Thunderbird folder can be broadly separated into two groups.

IMAP folders and Local folders


IMAP folders are folder that are created within an IMAP mail account.  These folders are the same as those shown when you log into the server and are replicated with the server.  These folders must follow the limits and restrictions imposed by the server.  All IMAP server are not created equal, some have what appear to be rather strange restrictions on where a folder can and can not be created, and these restrictions are often times contradictory from one Server software package to another.

While we never really think about the program on the server we connect to to get our mail it does have relevance when creating folders for IMAP accounts.   Things like , there appears to be a 40 character limit in Gmail to total folder names, including parents.  On Other servers all folders have to be children of the inbox, other limit folder which have child folder to not actually containing mail.

These limits actually cause some problems as Thunderbird often does not know they exist and therefore will allow you to create a folder, which disappears almost immediately as it tries to replicate it to the server and fails.


Local folders

As the name implies, these folder are local to your computer.  They are not available if you access you mail account from a web browser, as mail in them is saved on the hard disk of your computer.

Thunderbirds local folders do not suffer from the limitations imposed by IMAP servers. You can have as many of them as you like and there can have as many levels as you need.  The total content of each local folder is currently limited to 4Gb of mail and attachments, but that is the only real limitation other than disk space on your computer.  This is also a good place to store your archive folder, as it frees space on your IMAP mail account.  While this is not all that relevant to Gmail users with their Gigabytes of storage, many mail server offer relatively small IMAP storage quotas and saving or archiving to local folders is a way to free space on the server while retaining a copy of the mail.

If a folder simply can't be foound, if you enter the following code into the error console in the Tools menu and click evaluate the entire folder tree will be opened out so that you can look without having to click a million time to open the folder.

Components.classes['@mozilla.org/appshell/window-mediator;1'].getService(Components.interfaces.nsIWindowMediator).getMostRecentWindow("mail:3pane").gFolderTreeView.mode= "all"