Re: get subject and from on wl-biff-notify-hook function

Kazuhiro Ito <[email protected]> Thu, 01 Aug 2019 19:51:30 +0900
Newsgroups gmane.mail.wanderlust.general.japanese
Message-ID <[email protected]>
> I have modified a little bit your emacs lisp snippet:
(snip)
> As You can see unread is not filled. Any idea about the cause?

Probably you need to open the folder.

(let* ((folder ".~/Maildir-gm/garbage")
       (elmo-folder (wl-folder-get-elmo-folder folder))
              unread msgdb result)
  (elmo-folder-open elmo-folder)
  (setq unread (cadr (elmo-list-diff
		      (elmo-folder-list-messages elmo-folder t t)
		      (elmo-folder-list-messages elmo-folder t nil)))
	msgdb (elmo-folder-msgdb-create elmo-folder unread nil))
  (elmo-folder-msgdb-create elmo-folder unread nil)
  (dolist (number (elmo-msgdb-list-messages msgdb))
    (setq result (cons (elmo-msgdb-overview-entity-get-subject
			(elmo-msgdb-message-entity msgdb number))
		       result)))
  result)

-- 
Kazuhiro Ito