You are here

[Fixed] Thunderbird Portable leaves Unread Mail key if it doesn't already exist

8 posts / 0 new
Last post
bc8307
Offline
Last seen: 12 years 11 months ago
Joined: 2008-07-30 13:00
[Fixed] Thunderbird Portable leaves Unread Mail key if it doesn't already exist

I was having trouble with unread mail messages being shown on the welcome screen of Windows XP after using Thunderbird Portable.

Two related forum articles are here and here.

I found that the launcher correctly backs up the UnreadMail key (HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\UnreadMail) and any subkeys it has unless the UnreadMail key itself does not exist. In that case Thunderbird Portable will leave data behind.

Please fix this. (This still happens with the latest version - 2.0.0.17).

[Subject modified by mod JTH]

Simeon
Simeon's picture
Offline
Last seen: 9 years 9 months ago
DeveloperTranslator
Joined: 2006-09-25 15:15
?

I think it backs the key up IF it exists so it doesn't mess with a possible local install. Thats the way it should work.

Just delete the key manually.

"What about Love?" - "Overrated. Biochemically no different than eating large quantities of chocolate." - Al Pacino in The Devils Advocate

bc8307
Offline
Last seen: 12 years 11 months ago
Joined: 2008-07-30 13:00
more...

When the launcher checks for the UnreadMail key at the start, it backs it up if it exists and restores it at the end, but if the UnreadMail key doesn't exist at the start then shouldn't the launcher delete it again at the end?

Otherwise, Thunderbird will create the UnreadMail key and and a subkey inside it and then just leave it there at the end. Then whenever you run Thunderbird after that, it will back up that data correctly.

The only reason this is a problem is because the public computers that I often use Thunderbird Portable on have never had an email client run on them before, so they don't have an UnreadMail key on them (I just checked) and it is kind of annoying to have to manually delete the subkey with my data each time I use one of the public computers.

Simeon
Simeon's picture
Offline
Last seen: 9 years 9 months ago
DeveloperTranslator
Joined: 2006-09-25 15:15
according

to the Launchers source code, it does delete the UnreadMail key.

"What about Love?" - "Overrated. Biochemically no different than eating large quantities of chocolate." - Al Pacino in The Devils Advocate

bc8307
Offline
Last seen: 12 years 11 months ago
Joined: 2008-07-30 13:00
then

Then I don't know what is going wrong for me. I know that I am using the latest version of Thunderbird Portable, I am using the launcher, Thunderbird never crashed while I was using it, the account I was using did have permission to read/write to the registry, but the key was still not getting deleted at the end (this happened on more than one computer too)
I'll post again if I find anything

bc8307
Offline
Last seen: 12 years 11 months ago
Joined: 2008-07-30 13:00
using

Using ProcMon, I monitored what the launcher was doing to the registry when I closed Thunderbird, 2 times - once when the UnreadMail key did not exist and once when the key did exist (with no subkeys)

When it didn't exist, just two events were logged - both attempts to read the HKCU\Software\Microsoft\Windows\CurrentVersion\UnreadMail-BackupByThunderbirdPortable key. Of course the result was name not found. Since the app logs failed read/write attempts as well as successful, it seems the launcher never tried to delete the UnreadMail key.

When it did exist, it also tried to read that key but was successful and then continued to restore the UnreadMail key from the backup key. (During the backup process, it does have to delete the UnreadMail key.)

Any ideas?

prapper
Offline
Last seen: 3 years 5 months ago
Developer
Joined: 2008-01-24 17:01
Yep, same here.

Yep, same here.

John T. Haller
John T. Haller's picture
Offline
Last seen: 1 hour 37 min ago
AdminDeveloperModeratorTranslator
Joined: 2005-11-28 22:21
Confirmed

I've confirmed this to be an issue on PCs where the UnreadMail key has somehow been deleted (according to a Microsoft doc I read at some point, it should be there by default). I'll adjust the next release to remove it even in this instance.

Sometimes, the impossible can become possible, if you're awesome!

Log in or register to post comments