[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Is there a way to know when new email arrived using mu4e-index-updat
From: |
stardiviner |
Subject: |
Re: Is there a way to know when new email arrived using mu4e-index-updated-hook? |
Date: |
Sun, 04 Oct 2015 21:05:14 +0800 |
If you're using maildir formats. You can find some solution with Google.
Because maildir use structure Mailbox/{new,cur,tmp}. All new emails are in
Mailbox/new/. So you can detect them with some function.
Hugo M <ham1988@gmail.com> writes:
> I have this:
>
> (defun ham-email-arrived-notif ()
> (notifications-notify
> :title "Emails actualizados, m'hijo"
> :body "Quizás tengas un email"
> ;; :app-icon "~/.emacs.d/icons/mail.png"
> :urgency 'low)
> )
> (add-hook 'mu4e-index-updated-hook #'ham-email-arrived-notif)
>
> But it always alerts me when index is updated, even if I have no new email
> (yes, I noticed the hook's name).
>
> Is there a way to check if there's any unread email in the mu4e index? (or to
> ask mu4e to retrieve all emails with "unread" flag)
>
> Thanks!
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: Is there a way to know when new email arrived using mu4e-index-updated-hook?,
stardiviner <=