julian-alarcon / prospect-mail

Prospect is an Outlook mail desktop client powered by Electron
MIT License
460 stars 66 forks source link

[Bug]: I don't receive any notifications #328

Open felipeleon73 opened 9 months ago

felipeleon73 commented 9 months ago

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):

felipeleon73 commented 9 months ago

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.

yermulnik commented 8 months ago

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.

darkstoneathome commented 7 months ago

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