julian-alarcon / prospect-mail

Prospect is an Outlook mail desktop client powered by Electron

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[Bug]: I don't receive any notifications

felipeleon73 opened this issue · comments

Describe the bug
I don't receive any notifications when an email arrives.
If I understand correctly, a badge should appear on the icon and the desktop notification should appear, but I don't see any of this.
Maybe I need some custom settings

To Reproduce
Receive a mail

Expected behavior
A badge should appear on the task icon and the desktop notification should appear

Desktop (please complete the following information):

  • OS: Ubuntu 23.10

  • Installation source: Snapstore

  • Version 0.5.3

  • OS: Arch linux (KDE)

  • Installation source: Snapstore/aur

  • Version 0.5.0/0.5.2/0.5.3

I did a little research into why it doesn't work and was able to figure out why.
My HTML page has slightly different classes than expected, perhaps due to company customization.
The selector for unread emails, in fact, is
.C2IG3.ORnNd.oTkSL.iDEcr .o03Ce .BptzE.e0wpX.Idtcl .Idtcl.Mt2TB
instead of
.C2IG3.LPIso.oTkSL.iDEcr .o03Ce .BptzE.e0wpX.WIYG1 .WIYG1.Mt2TB.

Could we give the option to specify the selector in the settings?

I also implemented (modified) the workaround provided by @gtoniolo for #325.
Here is my working code github.

I have no badge on new emails too. Might be the same selector things as company applies ui customization as well (company logo, so on).
Would appreciate if this gets implemented.

@julian-alarcon Could you adapt the code of @felipeleon73 ?