Re: get subject and from on wl-biff-notify-hook function
andrés ramírez <[email protected]> Thu, 25 Jul 2019 13:29:02 +0000
| Newsgroups | gmane.mail.wanderlust.general.japanese |
|---|---|
| Organization | bien.comun.org |
| Message-ID | <[email protected]> |
Hi Kazuhiro. >> I have a notification function that advertises me about new >> email. But I have more than one email account. I would like to be >> notified with the account, sender, and subject. Kazuhiro> Wanderlust's biff does not get details of new messages. Kazuhiro> Probably your notification function need to go into each Kazuhiro> folder and update msgdb to get details. Any example to start with? Or something similar to change Kazuhiro> But it takes much Kazuhiro> time and user has to wait while updating. Could I just launch an emacs-thread? I have just modified this function a little: --8<---------------cut here---------------start------------->8--- (defun wl-folder-check-all () "modified to do it async" (interactive) (wl-folder-check-entity-async wl-folder-entity)) --8<---------------cut here---------------end--------------->8--- And btw I also launch a thread for cheking nntp news: --8<---------------cut here---------------start------------->8--- (setq my-timer-check-news (run-with-timer 0 3600 'south/my-wl-check-folders-helper)) --8<---------------cut here---------------end--------------->8--- --8<---------------cut here---------------start------------->8--- (defun south/my-wl-check-folders-helper () "helper for running on thread and get the folder content" (interactive) (make-thread #'wl-folder-check-all) ) --8<---------------cut here---------------end--------------->8--- AR