Auto-update at launch

4 views
Skip to first unread message

Khalid Rafi

unread,
Dec 6, 2025, 6:01:02 AM (11 days ago) Dec 6
to mu-di...@googlegroups.com

How to run (mu4e-update-mail-and-index) when mu4e is launched? I tried
this: (add-hook 'mu4e-main-mode-hook 'mu4e-update-mail-and-index). But,
it breaks mu4e-main-mode. It becomes blank.

--
Khalid Rafi
Sent with Emacs

Dirk-Jan C. Binnema

unread,
Dec 6, 2025, 8:15:38 AM (10 days ago) Dec 6
to mu-di...@googlegroups.com
On Saturday Dec 06 2025, Khalid Rafi wrote:

> How to run (mu4e-update-mail-and-index) when mu4e is launched? I tried
> this: (add-hook 'mu4e-main-mode-hook 'mu4e-update-mail-and-index). But,
> it breaks mu4e-main-mode. It becomes blank.

It should run automatically when you start, so the hook is unnecessary.

If it doesn't work, likely there's something not quite working with the
retrieval process; you can check e.g. the *mu4e-last-update* buffer,
and/or run M-x mu4e-update-mail-and-index and carefully check for any
errors.

Good luck!
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
Reply all
Reply to author
Forward
0 new messages