Welcome to XDA

Search to go directly to your device's forum

Register an account

Unlock full posting privileges

Ask a question

No registration required
Post Reply

[Q] Calculate GMail unread messages

OP Bembel75

6th April 2014, 12:08 PM   |  #1  
OP Junior Member
Flag Frankfurt am Main
Thanks Meter: 0
 
3 posts
Join Date:Joined: Aug 2013
More
Hi,

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!

Cheers!
Last edited by Bembel75; 7th April 2014 at 11:48 AM.
10th April 2014, 10:13 PM   |  #2  
OP Junior Member
Flag Frankfurt am Main
Thanks Meter: 0
 
3 posts
Join Date:Joined: Aug 2013
More
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!

Cheers...
11th April 2014, 01:22 PM   |  #3  
OP Junior Member
Flag Frankfurt am Main
Thanks Meter: 0
 
3 posts
Join Date:Joined: Aug 2013
More
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?

Cheers!
Last edited by Bembel75; 11th April 2014 at 01:30 PM.
17th April 2014, 01:16 AM   |  #4  
jazzespresso's Avatar
Senior Member
Flag NYC, USA
Thanks Meter: 782
 
1,453 posts
Join Date:Joined: Jul 2012
I am, kind of, dealing the same issue...take a look at following link;

http://www.jagwar.de/en/show-notific...r-with-tasker/

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
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes