Re: get subject and from on wl-biff-notify-hook function
andrés ramírez <[email protected]> Fri, 26 Jul 2019 23:04:11 +0000
| Newsgroups | gmane.mail.wanderlust.general |
|---|---|
| Organization | bien.comun.org |
| Message-ID | <[email protected]> |
Hi Kazuhiro San. Kazuhiro> Basically Wanderlust is very old software and does not much Kazuhiro> care recent Emacs's feature. If you use concurrency in Kazuhiro> Emacs Lisp, I guess there may be more complex problems to be Kazuhiro> resolved, for example mutual exclusion between user Kazuhiro> operarion and biff. Well my wl-biff timeout is 180 seconds. And I believe the search at most is going to take one second. But I am going to keep that in mind. Kazuhiro> FYI, Wanderlust's biff runs wl-biff-new-mail-hook when new Kazuhiro> mails are available, so you could use it. But the mutual Kazuhiro> exclusion also should be considered. I have been trying to follow this path. And I have found this function: --8<---------------cut here---------------start------------->8--- wl-folder-get-elmo-folder --8<---------------cut here---------------end--------------->8--- I am going to keep working at this tonight. the QUESTION is if I have got an elmo-folder. "How could I iterate all the messages for getting just the new messages?" I am going to iterate all the folders in --8<---------------cut here---------------start------------->8--- wl-biff-check-folder-list --8<---------------cut here---------------end--------------->8--- so after wl-biff-notify-hook or wl-biff-new-mail-hook . I am going to do the same as wl-biff does for filling a list of just all the new messages for doing my notification. I am thinking just right now after re-reading this email that perhaps I just need to modify the wl-biff-launch-handler for doing what I want which is "filling a list with just the new messages" and a way for locating the complete message when necessary (as when I press Space key on Summary buffer but programatically). Based on that list. AR. ps: "wanderlust is very old software". I think emacs is very old software. But I think on my use case emacs just frezzes when opening a news folder. I shoul try to prefetch the news for avoiding that delay. Until a month ago I have been using 2 emacs sessions (one for work and another one just for wl). Now Just one. :). And I am enjoying It.