[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

searching with wanderlust, mu



Hi,

Maybe interesting: someone figured out how to integrate the mu e-mail search
engine with Wanderlust; I blogged about it [1]. Also, I wrote 'mu'.

All that is needed:


--8<---------------cut here---------------start------------->8---
(require 'elmo-search)
(elmo-search-register-engine
    'mu 'local-file
    :prog "/usr/local/bin/mu" ;; or wherever you've installed it
    :args '("find" pattern "--fields" "l") :charset 'utf-8)

(setq elmo-search-default-engine 'mu)
;; for when you type "g" in folder or summary.
(setq wl-default-spec "[")
--8<---------------cut here---------------end--------------->8---


After that, you can search for specific messages by pressing 'g', and provide
some mu search expression.

Also, you can make virtual folders by adding them to your folders file, for
example:


--8<---------------cut here---------------start------------->8---
VFolders {
# message I received today
  [date:today..now]!mu  "Today"

# messages bigger than 1Mb  
  [size:1m..100m]!mu    "Big"

# signed messages i got in 2010 related to emacs
  [date:2010..2011 flag:signed emacs]!mu "Signed-Emacs2010"

# unread messages
  [not flag:seen]!mu    "Unread"
# or (for mu  >= 0.9.4):
# [flag:unread]! mu      "Unread"
}
--8<---------------cut here---------------end--------------->8---


Best wishes,
Dirk.


[1]
http://emacs-fu.blogspot.com/2011/03/searching-e-mails-with-wanderlust-and.html

-- 
Dirk-Jan C. Binnema                  Helsinki, Finland
e:djcb@djcbsoftware.nl           w:www.djcbsoftware.nl
pgp: D09C E664 897D 7D39 5047 A178 E96A C7A1 017D DA3C