How work getCount() function?

F.e.:

i get 10 news email.

i read 2 email and 8 news again.

It arrive 2 new email and i have again 10 new email.

I check email XN return new email also if it is again 10 or not?

tobwithu's picture

getCount() returns 'unread' mail counts.

When you have 10 new mails - getCount() returns 10.

If you read 2 mails - getCount() returns 8.

If you have 2 new mails again - getCount() returns 10.

Excuse my poor english.

1 - i check and have 10 email unread.extensions.xnotifier.accounts.[....].count = 10;

2 - i read 2 email, i not check and have 8 email unread.
extensions.xnotifier.accounts.[....].count = 10;

3 - I receive 2 new email, I not check email and have 10 email unread.
extensions.xnotifier.accounts.[....].count = 10;

4 - I check email and have 10 email unread.
extensions.xnotifier.accounts.[....].count = 10;

When i check i have every 10 unread but in fact I have received new email.
XN notify new email?

If you go to X-Notifier, Options... to the 'General' tab, at the top...
...is "Reset counter when opening messages" -checkmarked-??

tobwithu's picture

extensions.xnotifier.accounts.[....].count is used to 'reset counter'.
If you have 10 unread mails and click X-notifier icon, extensions.xnotifier.accounts.[....].count is set to 10.
X-notifier displays unread count as 0(10-10).

If you read 2 mails and X-notifier check mail count, extensions.xnotifier.accounts.[....].count is set to 8.

If you have 2 new mails and X-notifier check mail count, X-notifier displays unread count as 2(10-8).

In this process, if you read 2 mails and get 2 new mails before X-notifier check it,
You cannot get notification for the 2 new mails.

In this process, if you read 2 mails and get 2 new mails before X-notifier check it,
You cannot get notification for the 2 new mails.

I had this doubt.

So there is a possibility that they are not notified of new emails?or "Reset counter when opening messages" solve this problem?

tobwithu's picture

If you want to solve this problem, uncheck "Reset counter when opening messages".