Yeah, that would be the cause. Use your OP code and replace your [mEmail] with:[&msEmail:GetData("(count)")] is outputing not just a number but also includes hidden formatting like #CRLF# which I think is the source of all my issues.
I have no clue how to clean the output or the variable.
Code:
[mEmail]Measure=StringString=[&msEmail:GetData("(count)")]RegExpSubstitute=1Substitute="\R":""OnUpdateAction=[!SetVariable NumberOfEmails [mEmail]]UpdateDivider=#emailDiv#DynamicVariables=1
As for the Substitute, since you didn't specify exactly how the output looks like, I only added removing the newline characters aka \R in regular expression (also called regex or regexp) syntax, but you can add to it or replace it with a regex pattern more appropriate to what you want to remove from your [&msEmail:GetData("(count)")] output:
https://docs.rainmeter.net/manual/measures/general-options/substitute/
Despite their scary look, regular expressions are just patterns made of normal / literal characters and various symbols, which are used to find or replace parts of a string. More information about it at:
https://en.wikipedia.org/wiki/Regular_expression
https://www.regular-expressions.info/
Or, if you want to test and play with them:
https://regex101.com/
https://regexr.com/
By the way, Rainmeter uses the PCRE flavor of the regular expressions, so this flavor must be chosen in the testing sites (the buttons at top left for regex101.com and top right for regexr.com) to get the results that you'd get in Rainmeter. Also, you can check what various symbols or patterns mean on both regex101.com and regexr.com (on the latter by using the RegEx Reference button from the sidebar on the left side of the page).
Statistics: Posted by Yincognito — Today, 4:50 pm