You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
composeCase: [string] simplified compose case, used by SmartTemplates. This is broken down to 3 different states, depending on composeType. Depending on this the appropriate account templates are used. Possible values:
"new"// write - generally used for new mails."rsp"// reply / reply all / reply list etc."fwd"// forward
The text was updated successfully, but these errors were encountered:
RealRaven2000
changed the title
new functions composer.composeCase and composer.composeType
new functions composer.composeCase and composer.composeTypeFeb 9, 2025
In order to use these values in a sandbox script, you can use the following syntax:
<p>
%{%
(async () => {
let t = await composer_composeType();
let c = await composer_composeCase();
switch(t) {
case "ForwardAsAttachment":
return "Please find attached the files:"
case "ReplyAll":
return "To whom it may concern."
}
})()
%}%
</p>
The new functions composer.composeCase and composer.composeType are designed to retrieve the particular compose type from composer:
composeType
: [strings] build in compose type from nsIMsgCompType.Possible return values:
composeCase
: [string] simplified compose case, used by SmartTemplates. This is broken down to 3 different states, depending oncomposeType
. Depending on this the appropriate account templates are used. Possible values:The text was updated successfully, but these errors were encountered: