iqbalansari / mu4e-alert

Desktop notifications and modeline display for mu4e
GNU General Public License v3.0
155 stars 22 forks source link

Notifications are doubled #36

Open averter opened 4 years ago

averter commented 4 years ago

Hi,

For some reason mu4e-alert sends two notifications for each email I receive. I've timed it and the notifications are spread two minutes from each other. My setup is as follows

     (use-package mu4e-alert
       :ensure t
       :bind ("C-c q" . (lambda () (interactive) (message "Desktop notifications switched")(mu4e-alert-enable-notifications) (mu4e-alert-disable-notifications)))
       :after mu4e
       :hook ((after-init . mu4e-alert-enable-notifications)
          (after-init . mu4e-alert-enable-mode-line-display))
       :init
       ;; Choose the style you prefer for desktop notifications
       (mu4e-alert-set-default-style 'libnotify)
       (setq mu4e-alert-interesting-mail-query
         (concat
          "flag:unread"
          " AND NOT flag:trashed"))
       )   

Thanks for any help.

averter commented 4 years ago

I don't think that this is related with this issue, because the end-result is different (see below) image