導入
MailSearcher.alfredworkflowをダウンロードして,ダブルクリックすれば勝手にインポートされます.
- [Download](https://raw.github.com/zoncoen/alfred- workflow- mail- searcher/master/MailSearcher.alfredworkflow)
使い方
mls {query}で{query}を件名か本文に含むメールのリストを Alfred 上に表示,Enter を押すとそのメールを開きます.
| Operator | Definition | Examples |
|---|---|---|
| from: | Used to specify the sender. | Example: from:amyMeaning: Messages from Amy |
| to: | Used to specify a recipient. | Example: to:davidMeaning: All messages that were sent to David |
| subject: | Search for words in the subject line. | Example: subject:dinnerMeaning: Messages that have the word “dinner” in the subject |
| is:starredis:unreadis:read | Search for messages that are starred, unread, or read. | Example: is:read is:starred from:DavidMeaning: Messages from David that have been read and are marked with a star |
mls from:と入力するとアドレス一覧が出てくるなど,補完機能もついているので TAB で補完できます.
実装について
LIKE演算子でやってるのでデータが多いと結果が返ってくるのが遅い… FTS 3 + MeCab とか使ったらいいのでしょうが,DBへの変更は Mail.app がやるわけでどうするのが賢いのか思いついてない感じです.
そのうち何とかせねば…