First Last Prev Next    No search results available
Details
: Save Template and Load Template
Bug#: 26043
: smarttemplate4
: General
Status: ASSIGNED
Resolution:
: PC
: Windows NT
: unspecified
: P3
: enhancement
: ---

:
:
:
:
:
  Show dependency tree - Show dependency graph
People
Reporter: HaoJian <haodut@126.com>
Assigned To: Axel Grude <axel.grude@gmail.com>
:

Attachments
export and import like this. (101.11 KB, image/png)
2015-06-19 00:04, HaoJian
no flags Details
Moved the buttons down to preserve space (54.86 KB, image/png)
2015-07-09 01:59, Axel Grude
no flags Details
1.1 pre 70 (370.51 KB, application/x-xpinstall)
2015-08-28 03:46, Axel Grude
no flags Details
1.1 pre 76 (370.56 KB, application/x-xpinstall)
2015-08-28 07:32, Axel Grude
no flags Details
1.1 pre 90 (372.22 KB, application/x-xpinstall)
2015-08-30 03:54, Axel Grude
no flags Details


Note

You need to log in before you can comment on or make changes to this bug.

Related actions


Description:   Opened: 2015-06-19 00:04
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?
------- Comment #1 From Axel Grude 2015-07-09 01:59:45 -------
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.
------- Comment #2 From Axel Grude 2015-07-09 04:47:56 -------
*** Bug 25096 has been marked as a duplicate of this bug. ***
------- Comment #3 From Axel Grude 2015-08-28 00:41:10 -------
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...
------- Comment #4 From Axel Grude 2015-08-28 03:46:36 -------
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!!
------- Comment #5 From Axel Grude 2015-08-28 07:32:24 -------
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.
------- Comment #6 From Axel Grude 2015-08-30 03:54:44 -------
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.

First Last Prev Next    No search results available