thsmi / sieve

Sieve Script Editor
GNU Affero General Public License v3.0
729 stars 56 forks source link

Windows App not Importing configuration from Thunderbird #891

Open TonyGravagno opened 1 year ago

TonyGravagno commented 1 year ago

Challenge: After using sieve addon in Thunderbird, I wanted to try the Windows standalone Electron app.

On Home tab, Add or Import, click "Import from Thunderbird". Expected to see sieve accounts/configs setup in Thunderbird. Actual : No effect whatsoever, doesn't look like the button click event processed. Clicking Add Server, and Import from File : Dialogs open, buttons work, but I don't want that functionality.

Environment: Windows 10, Thunderbird 102.10.1, Sieve add-on v 0.6.1 from #763 (contribution) Windows Standalone Sieve App, most recent Successful nightly build #20230331.2 No logs available?

Tried all combinations of running sieve app and Thunderbird As Administrator, without Admin privs, and with/without Thunderbird running. When closed, Thunderbird is not running in background. Tried running app before and after Thunderbird was started in case there is a file lock conflict, but this did not appear to make a difference.

Checked all DLL and EXE file properties, but none are Blocked by Windows security.

I did not load a more recent build because they are flagged as failed builds. I did not try any other prior/successful builds of the app, and did not try another Thunderbird release.

I don't know what else to check or if there is a log that can be generated.

Do we need to Export from Thunderbird to Import with the App?

I'm happy to try/test a new build of any component if required, or to do other testing/reporting.

Thanks!

stale[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

TonyGravagno commented 1 year ago

Please review to avoid auto-stale.

timwhite commented 11 months ago

I have the same issue on Linux with the sieve-0.6.1-linux-x64 standalone download.

TonyGravagno commented 6 months ago

Still not working with Latest build from 13-Dec-2023

I'm trying to use the Windows app again to get around current issues with TB 115+ #893

This is not an issue with Windows security and blocked files - I unblocked the zip before extraction and files are not blocked.

It would help if someone would post where the .json config file is, how to export the data from Thunderbird, or just how to replicate the Thunderbird info, maybe extract it from somewhere so that we can manually create the required .json file. I'd rather not have to manually recreate all new connections, but if that's the only way to get the App to work, OK.

thsmi commented 6 months ago

please provide logs and traces or a working crystal ball. Without the providing at least the very basic information it is impossible to help you. To make it more difficult, what you are writing is a really really confusing mixture of completely unrelated stuff.

I added more detailed instructions how to access the logs and traces to the wiki: https://github.com/thsmi/sieve/wiki/FAQ---Application#app-logging-and-debugging

All the Thunderbird import does looking for a "profile.ini" at Thunderbird's default profile location. Then it extracts the location of the default profile. Thunderbird preferences are stored in the "prefs.js" in you profile. Within this file it enumerates all accounts and extracts for each account the server's name, hostname and username. These three pieces of information are the only thing which is imported.

This is rather fragile. It will fail in case your Thunderbird profile is in a non standard location, in case it is for some reason inconsistent, you are lacking of a default profile... basically everything which is non standard can make it fail.

The json file you are referring to is not related at all to Thunderbird. The application can export the account settings so that they can be imported on a different system e.g. when switching you computer.