Bugzilla@Mozdev – Bug 26043
Save Template and Load Template
Last modified: 2015-08-30 03:54:44
You need to log in before you can comment on or make changes to this bug.
Created an attachment (id=8062) [details] export and import like this. When I move to a new thunderbird, I have to reconfig my SmartTemplate4. Can you add export and import feature to avoid copy and paste?
Created an attachment (id=8069) [details] Moved the buttons down to preserve space Moving the buttons down and renaming to Save / Load. Account names can be a lot longer in Western languages and having them beside the drop down as you suggested might create some space issues. Save andf Load will still be bound to the currently selected account only and will include all templates (write / reply / forward) and their specific options. Global options or a complete backup of *all* ST4 settings will be considered out of scope for this bug.
*** Bug 25096 has been marked as a duplicate of this bug. ***
I have just coded a per-account save and load, which should make migration (and also backup) a little easier. I have added the buttons to the right of the account (as 16px toolbar icons only) as this was actually easier than having them down in the template deck area. Noth save & load will prompt for a file name + location using the standard file methods (depending on OS). Save will suggest a name related to the account name, with the extension .json (Javascript object notation) Load will load the selected file into the currently selected account settings, without any check whether it is the correct one. I have decided to do it this way for now so there is some flexibility when you are creating a new account: often we do not choose exactly the same account name so the name is a bad identifier; likewise I cannot use the account index number as the order in the new profile might be different - so the user has to make sure he loads the correct template file for the account. I will upload a test version shortly...
Created an attachment (id=8087) [details] 1.1 pre 70 Here is a try out version. Remember save / low is per identity there is no sanity check on identity when you load; so ST4 won't prevent you loading "common" settings over your favorite account. I suggest saving every account one by one first when testing!!
Created an attachment (id=8088) [details] 1.1 pre 76 Fixed a problem when saving "common" account - this didn't suggest a good name on non-English locales. Disabled the "Save" button if "Use common" is checked and none of the templates have any text. Next project will be localization, I think this feature is good enough for the next release.
Created an attachment (id=8089) [details] 1.1 pre 90 Added logic for disabling / enabling textboxes according to imported settings. Added Postbox compatibility. Saving and Loading files is entirely different with any Application that is pre-Gecko 9, so this was the usual "head-scratcher". I think I pulled it off sufficiently as I was able to save templates on Thunderbird and load the in Postbox.