Remove All Ads from XDA
Honor View 10

[Q] Calculate GMail unread messages

3 posts
Thanks Meter: 0
By Bembel75, Junior Member on 6th April 2014, 12:08 PM
Post Reply Email Thread

I have been using Zooper pro for the last few months on my stock Nexus 5 with Apex launcher and still have not managed to show a unread messages count from three different GMail "folders". While it seems to be working in general, displaying the resulting number of all unread messages count in a single number won't work:

[c=#FF0000][tl]$(#SUG#+#SUG^sq_ig_i_notification#+#SUG^sq_ig_i_so cial#)=1?1 E-Mail$$(#SUG#+#SUG^sq_ig_i_notification#+#SUG^sq_ig _i_social#)>1?(#SUG#+#SUG^sq_ig_i_notification#+#S UG^sq_ig_i_social#) E-Mails$$#SMCALLS#=1? #SMCALLS# Anruf$$#SMCALLS#>1? #SMCALLS# Anrufe$$#SUSMS#>0? #SUSMS# SMS$[/tl][/c]

Whenever there are more than one (1) unread messages - I had like 160 e-mails the other day - "(6+64+89) E-Mails" instead of "159 E-Mals". I tried to Google it and tested various formats but I could not find out how to display the sum...

Thanks so much in advance!

10th April 2014, 10:13 PM |#2  
OP Junior Member
Flag Frankfurt am Main
Thanks Meter: 0
I invested another few hours on this and found out that using this calculation to display the value as in

$(#SUG#+#SUG^sq_ig_i_notification#+#SUG^sq_ig_i_so cial#)$

works pefectly returning a single number of unread e-mails, but if used in a conditional

1.) greater/equal or else expression results are wrong
2.) displaying the string above just displays "(0+1+1)" depending on the unread message counts

Does anyon know how to add the three variables and use the result in a conditional? Or is it possibe to assign the result of the calculation to a variable which I then use for the conditional?

Thanks so much in advance!

11th April 2014, 01:22 PM |#3  
OP Junior Member
Flag Frankfurt am Main
Thanks Meter: 0
Because I could not stop looking for a solution I changed from a calculation of folders to the use of #SUG^all# instead.
Downside was/is the way GMail calculates "all" e-mails, I had to delete/mark all GMails read I had ever just deleted and I need to mark them as read from now on before I delete them - but now I have the time to chase this without being annoyed by brackets whenever I got more than one unread GMail.

So still - why does Zooper treat calculations differently in a conditional compared to a simple calculation?

17th April 2014, 01:16 AM |#4  
jazzespresso's Avatar
Senior Member
Thanks Meter: 1,616
Donate to Me
I am, kind of, dealing the same issue...take a look at following link;

I know this uses Tasker as additional tool, but still whenever I have more than 1 email, email count always shows 1.

if you figure out, drop me a line!
Post Reply Subscribe to Thread

Guest Quick Reply (no urls or BBcode)
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes