wangvisual / autoarchive

A Thunderbird extension that can move or archive your mails based on rules.
GNU General Public License v3.0
41 stars 13 forks source link

Problem while copying folders with hierarchy from IMAP to local folders #24

Closed moorti closed 10 years ago

moorti commented 10 years ago

Hi, when I'm trying to copy folders from my IMAP server to local servers on my PC with whole hierarchy I'm receiving some errors. In version 0.4 it was one error and the add-on was stopping working after copying only one folder (it was ignoring the rest of the folders), now in version 0.5 after the first run it was many more. Also it didn't even tried to go the first run. Also I'm not moving those messages to the default local folders, I'm trying to move to folders created with "LocalFolder" add-on on NAS in my local network.

The rule is set almost identical to this: przechwytywanie

"Exception Caught Excpetion NS_ERROR_FILE_ACCESS_DENIED: Component returned failure code: 0X80520015 (NS_ERROR_FILE_ACCESS_DENIED) [nsIMsgFolder.offlineStoreInputStream] JS frame :: chrome://awsomeautoarchive/content/autoArchiveService.jsm :: :: line 449"

Thunderbird version: 24.4.0 OS: Windows 7 Professional 32-bit beztytuu

wangvisual commented 10 years ago

For 0.5 version, the error message here is just a warning, I can suppress them in the later version.

However, the issue seems to be a LocalFolder addon issue, I checked the comments for that addon, the author & users suggested to restart TB after create the folder, you can try that.

BTW, for 0.5 version, after the error happens, can the copy continue to run? Another question is, can you manually copy messages from IMAP folder to the target folder?

Thanks.

moorti commented 10 years ago

Hi, sorry for the late answer.

I have figured it out somehow on my own that there could be a problem with the "LocalFolder" add-on so I ditched it on my PC to check it. With that add-on it downloaded only the main folder and then was stopping. After manually changing the built-in local folder location to a different one everything seems to work fine. As long it is on local PC. After changing to a network folder it downloaded half of the folders after the first run but restarting Thunderbird seems to do the trick and the rest of the folders have downloaded afterwards.

Not sure still how it will handle almost 60 000 messages on the other IMAP account, but with about 800 messages and 10 folders it works absolutely and almost perfectly fine.

Suppressing those error messages would be nice. But rather completely better would be giving the user the ability to choose if they wanted to see them or not. Or giving them a name, that would suggest that you can ignore them.

moorti commented 10 years ago

Hi, I managed to find another bug. Maybe it is connected with the previous one or it's just maybe Thunderbird problem.

When I change the location of the local folders from the default location in AppData to a location on the same PC but in different place (for example to Desktop or "My Documents") the add-on needs two runs to copy/move everything keeping the hierarchy.

BUT when I move the location of the local folders to a network location (still doing it only by changing the location in Thunderbird settings, no extra add-ons) then the add-on stops working properly. For example it copies 85% of the e-mails from the main folder and stops. Second run and all next runs - nothing done. It keeps saying that all messages have been moved but I can clearly see that there are some old message in the folders that are under the INBOX. It doesn't create the hierarchy and move the rest of the e-mails that it should.

wangvisual commented 10 years ago

In advanced settings of this addon, you can enable the 'show verbose information in error console', after that, you can bring out the error console in tools menu or 'Ctrl + Shift + J'. Run again and see what's in the error console, it will say something like: Total 100 messages hit 80 messages already exists in target folder 20 moved

moorti commented 10 years ago

I've got few messages like this: "Błąd naruszenia bezpieczeństwa: Treść zawarta pod adresem moz-nullprincipal:{9926e3a2-3afd-4afc-a467-696f8b458540} nie może zostać wczytana lub powiązana z mailbox:///B:/Test/Kopia.sbd/Odebrane.sbd/test.sbd/test2?number=12106273&header=filter&emitter=js&part=1.2&filename=graycol.gif."

przechwytywanie_5

and lots of exceptions like this one: "Czas: 2014-04-22 21:23:07 Ostrzeżenie: Nieznana własność „mso-style-priority”. Deklaracja opuszczona. Plik źródłowy: about:blank Wiersz: 69, Kolumna: 20 Kod źródłowy: {mso-style-priority:9;"

Also I should received this kind of hierarchy in the local folders: przechwytywanie przechwytywanie_2 przechwytywanie_3 przechwytywanie_4

wangvisual commented 10 years ago

21:27:31.263 Creating folder ... => 'test3' This action failed thus the rule aborted. You filter the log by 'information' level only, so I can't see the detail error for why create folder failed, but seems it the similar issue with the original one.

wangvisual commented 10 years ago

Please try the latest beta https://github.com/wangvisual/autoarchive/blob/master/beta/awsomeAutoArchive-0.6-tb.xpi to see if still has this kind of issue.

wangvisual commented 10 years ago

closed for now, please reopen or create a new one if still have issue.