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
{{ message }}
Repository navigation
Issue with Escaped Commas - using header.append with clipboard #386
I just tested your script, not sure where these backslashes come from. They are clearly not in the clipboard, so they must be generated during header.append...
looks like a bug to me - not sure if there is a workaround. Let me investigate!
Thank you. No rush. In the meantime, I’ve removed those commas from the template.
I remember the template was working correctly when I was still using Thunderbird 128 ESR. I started noticing the issue after upgrading to 140 ESR. I’m not sure if it’s related, though.
I think escaping the commas from clipboard was a precaution to avoid wrong processing downstream. There would be a (really ugly) workaround, breaking it up into multiple calls for header.append, but it would require calling dateformat multiple times. Let me rather fix the code.
Activity
RealRaven2000 commentedon Aug 1, 2025
I just tested your script, not sure where these backslashes come from. They are clearly not in the clipboard, so they must be generated during
header.append...looks like a bug to me - not sure if there is a workaround. Let me investigate!
infinitelyintrigued commentedon Aug 1, 2025
Thank you. No rush. In the meantime, I’ve removed those commas from the template.
I remember the template was working correctly when I was still using Thunderbird 128 ESR. I started noticing the issue after upgrading to 140 ESR. I’m not sure if it’s related, though.
RealRaven2000 commentedon Aug 1, 2025
Apparently all commas coming from clipboard must be escaped due to issue #344.
here is the code in the modifyHeader function, smartTemplate-overlay.js line 2571:
removing that code might have other side effects, but I am not quite sure why I would encode it in this particular place. Could be a regression...
RealRaven2000 commentedon Aug 1, 2025
Ok I know now why #344 was implemented: to support multiple arguments, such as:
%header.append(subject,"[test]",clipboard,"[test2]")%I think escaping the commas from clipboard was a precaution to avoid wrong processing downstream. There would be a (really ugly) workaround, breaking it up into multiple calls for header.append, but it would require calling dateformat multiple times. Let me rather fix the code.
[-]Issue with Escaped Commas[/-][+]Issue with Escaped Commas - using `header.append` with `clipboard`[/+]RealRaven2000 commentedon Aug 1, 2025
Can you test this version:
smartTemplate-fx-4.13.1pre6.zip
So you can now also write:
%header.append(subject,"read: ",clipboard)%To try out this version, download the zip file and then drag it into Thunderbird Add-ons Manager (without extracting)
infinitelyintrigued commentedon Aug 1, 2025
It's working!
RealRaven2000 commentedon Aug 31, 2025
Fixed in 4.14 - Published 30/08/2025