Did mu4e receive a notification icon in its more recent releases? I used to use mu4e-alert before.

54 views
Skip to first unread message

Zoltán Király

unread,
Aug 7, 2023, 12:22:55 PM8/7/23
to mu-discuss
I've noticed this mailbox icon in doom-modeline that displays the count of unread messages, but it seems to be inaccurate for me. Since I'm using Gmail, I'm only interested in seeing the unread messages from the INBOX, not unread message from the Trash as shown in the image.

a.jpg

I previously used mu4e-alert like so:

(use-package mu4e-alert
  :after mu4e
  :custom
  ;; Notify only of unread emails in the inbox
  (mu4e-alert-interesting-mail-query "flag:unread maildir:/INBOX/")
  :config
  (mu4e-alert-enable-mode-line-display)
  (mu4e-alert-set-default-style 'libnotify))

and it worked fine. 

What steps should I take now? Is there a method to deactivate the appearing mailbox icon? Or should I consider using it instead of mu4e-alert?

Dirk-Jan C. Binnema

unread,
Aug 7, 2023, 4:28:09 PM8/7/23
to mu-di...@googlegroups.com

On Monday Aug 07 2023, Zoltán Király wrote:

> I've noticed this mailbox icon in doom-modeline that displays the count of
> unread messages, but it seems to be inaccurate for me. Since I'm using
> Gmail, I'm only interested in seeing the unread messages from the INBOX,
> not unread message from the Trash as shown in the image.

> What steps should I take now? Is there a method to deactivate the appearing
> mailbox icon? Or should I consider using it instead of mu4e-alert?

I'd recommend using the built-in system, it's explained in the manual,
and you can tweak it to your needs.

See:
https://www.djcbsoftware.nl/code/mu/mu4e/Bookmarks-and-Maildirs.html
and the section on the mode-line.

Kind regards,
Dirk.

--
Dirk-Jan C. Binnema Helsinki, Finland
e:dj...@djcbsoftware.nl w:www.djcbsoftware.nl
gpg: 6987 9CED 1745 9375 0F14 DA98 11DD FEA9 DCC4 A036

Zoltán Király

unread,
Aug 7, 2023, 5:39:11 PM8/7/23
to mu-discuss
Thank you.
I removed the line (setq doom-modeline-mu4e t) that enabled Doom-modeline's integration with mu4e. However, considering your mention that mu4e has its own modeline settings, I believe I no longer require it. Interestingly, the mu4e spiral icon continues to appear in the doom modeline even without the (doom-modeline-mu4e t) option. Do you think the (setq doom-modeline-mu4e t) is still needed?

Best regards,
Zoltan

Dirk-Jan C. Binnema

unread,
Aug 8, 2023, 2:13:36 AM8/8/23
to mu-di...@googlegroups.com

On Monday Aug 07 2023, Zoltán Király wrote:

> Thank you.
> I removed the line (setq doom-modeline-mu4e t) that enabled Doom-modeline's
> integration with mu4e. However, considering your mention that mu4e has its
> own modeline settings, I believe I no longer require it. Interestingly, the
> mu4e spiral icon continues to appear in the doom modeline even without the
> (doom-modeline-mu4e t) option. Do you think the (setq doom-modeline-mu4e t)
> is still needed?

I don't use Doom, but I know it does a bit of a mu4e "remix" with fairly
extensive (and fragile..) changes. I don't know if/to what extent mu4e's
modeline setup (1.10.x) is integrated with doom. Best ask in some
Doom-specific forum I guess.

Zoltán Király

unread,
Aug 8, 2023, 6:01:31 AM8/8/23
to mu-discuss
Thank you. I'm using only the Doom modeline, but my setup is vanilla Emacs. Sorry I wasn't clear before.

To have Gmail show only inbox messages, I need to use this query flag in mu4e-bookmarks: "flag:unread maildir:/INBOX/". It's not like the default which uses "AND NOT flag:trashed", but it does the job effectively. The default still shows the trashed stuff.

Dirk-Jan C. Binnema

unread,
Aug 8, 2023, 7:20:44 AM8/8/23
to mu-di...@googlegroups.com

On Tuesday Aug 08 2023, Zoltán Király wrote:

> Thank you. I'm using only the Doom modeline, but my setup is vanilla Emacs.
> Sorry I wasn't clear before.
>
> To have Gmail show only inbox messages, I need to use this query flag in
> mu4e-bookmarks: "flag:unread maildir:/INBOX/". It's not like the default
> which uses "AND NOT flag:trashed", but it does the job effectively. The
> default still shows the trashed stuff.

You can mark one of your bookmarks as the ":favorite", and that's one
used in the modeline; see the docstring for mu4e-bookmarks.
Reply all
Reply to author
Forward
0 new messages