MU4E check messages and play sound reminders regularly

Source: Internet
Author: User

The following configuration is in Init.el:

(setq   Mu4e-get-mail-command "Offlineimap"   ;; or Fetchmail, or ...   mu4e-update-interval);             update every 5 minutes (Add-hook ' Mu4e-index-updated-hook (  defun new-mail-sound ()    (shell-command "Aplay ~/music/open.wav&")))

The previous configuration will let mu4e start and check messages every 300 seconds and rebuild the index.

The latter section of the configuration makes the mu4e index update, using the command Aplay to play a WAV file to remind.


One drawback is that when I send a message, the index is updated, but it doesn't mean that a new message arrives. No other hooks have been found, so when I send an e-mail I hear a reminder that I'm not going to read the email.


MU4E check messages and play sound reminders regularly

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.