This small demo shows you how to inspect the various account the user has, and how to extract as much info as you can with just a little bit of code.
This one will show you how to get the inbox folder for a given accout, how to get a random message from the folder, and how to inspect its contents.
Here, you will find out how to perform a search accross all folders in Thunderbird. You will find messages according to their subject, and then, inspect the thread that contains the message. You will also have the option of displaying the message.