]> git.notmuchmail.org Git - notmuch/blob - quickstart.rst
609f42e18704e0e2e82c25cb61aa4ce337659ec9
[notmuch] / quickstart.rst
1 Quickstart and examples
2 =======================
3
4 .. todo:: write a nice introduction
5 .. todo:: improve the examples
6
7 Notmuch can be imported as::
8
9     import notmuch
10
11 or::
12
13     from notmuch import Query, Database
14
15     db = Database('path', create=True)
16     msgs = Query(db, 'from:myself').search_messages()
17
18     for msg in msgs:
19         print(msg)