Skip to content

Regression: Scripts don't work anymore (v3.16, Pro license) #229

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
steelsnake opened this issue Mar 15, 2023 · 5 comments
Closed

Regression: Scripts don't work anymore (v3.16, Pro license) #229

steelsnake opened this issue Mar 15, 2023 · 5 comments
Assignees
Labels

Comments

@steelsnake
Copy link

extensions.smartTemplate4.allowScripts = true

Scripts like:

%{% 
    ( () => {
        var date = new Date();
        if (date.getHours() < 10)    {return "Good morning";}
        else                         {return "Hi";}
    } )() 
%}%

...get inserted into the email verbatim without getting parsed. Tested for new/reply/forwarded emails. SmartTemplates Pro v3.16, updated today.

@RealRaven2000
Copy link
Owner

ok, sorry about that. hopefully it should be easy to fix.

@RealRaven2000
Copy link
Owner

Can you try the version below?

smartTemplate-fx-3.16.1pre1.zip

you also have to make sure the config setting extensions.smartTemplate4.sandbox=true is set.

@RealRaven2000
Copy link
Owner

PS: to install the test version (3.16.1 prerelease 1) just download the zip file and drag into Thunderbird Add-ons Manager (no extracting necessary) - github doesn't allow attaching "xpi" files.

@RealRaven2000 RealRaven2000 self-assigned this Mar 15, 2023
@steelsnake
Copy link
Author

That fixed it! Thanks for the prompt reply and fix, very much appreciated.

RealRaven2000 added a commit that referenced this issue Mar 21, 2023
@RealRaven2000
Copy link
Owner

Fixed in release 3.16.1 - published 21/03/2023

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants