toteph42 / identy_switch

This plugin allows users to switch between different accounts (and check for new mails) in a single Roundcube session.
GNU General Public License v3.0
7 stars 4 forks source link

Feature request: Add unread e-mail counter #22

Closed CodeShakingSheep closed 1 month ago

CodeShakingSheep commented 2 months ago

Hi @toteph42 , in my opinion it would be great to have an unread mail counter in the mail address dropdown, so that the user knows which mail addresses are worth checking.

image

Let me know if you think that this can be implemented.

toteph42 commented 2 months ago

This is already implemented. Depending on your mail check configuration it is automatically done in the back ground.

CodeShakingSheep commented 2 months ago

Can you elaborate on how it is supposed to work? I have these settings for an identity. image

I receive desktop notifications but there is no counter (as I drafted it in my screenshot). What am I missing?

toteph42 commented 2 months ago

Notification for desktop is

$labels['notify.msg'] = '%d for %s';

%d is number of new mails. %s is identity label

I don't know what else could be displayed.

CodeShakingSheep commented 2 months ago

I'm not talking about the desktop notification. That works fine.

I'm talking about an additional permanent way to display the number of unread mails. As the nature of the desktop notification is temporary (displayed between 10 and 60 seconds) you can easily miss it if you are afk for some time. So having a permanent way to display the number of unread mails would really be beneficial in my opinion. This feature has also been requested in the original repository, see https://bitbucket.org/BoresExpress/ident_switch/issues/21/new-mail-count-next-to-identity-label .

So, I appreciate if you can let me know whether you think you can implement this.

toteph42 commented 2 months ago

This is already implemented grafik I don't understand your request. Sorry.

CodeShakingSheep commented 2 months ago

Ah I see. For some reason it's not working for me. That's why I asked you how this is supposed to work and if I need to enable it in the settings or if it's enabled by default.

This is how it looks for me. I never see the counter although some of my mail addresses definitely do have unread mails. image

Do you have an idea what could be the reason? BTW, I'm on identy_switch version 1.0.29. Will update to the latest version tomorrow.

toteph42 commented 2 months ago

Check out new version - it work's faster displaying unread count than previous version

CodeShakingSheep commented 2 months ago

I just updated to the new version. Still, I don't see any counters beneath the labels although several of my accounts have unread mails in the inbox. As I also wrote you, I had never seen them in the past which is why I initially opened this issue for a feature request. Is there any way we can debug this together?

toteph42 commented 2 months ago

Yes, enable debugging in config file.

CodeShakingSheep commented 2 months ago

Yes, enable debugging in config file.

Just $config['debug_level']=1 in conf/config.inc.php or anything else?

toteph42 commented 2 months ago

Of course you need to post logs/identy_switch.log after approx. 5 minutes. Then disable debugging again.