diff options
| author | Jameson Rollins <jrollins@finestructure.net> | 2010-09-12 13:22:30 -0400 |
|---|---|---|
| committer | Jameson Rollins <jrollins@finestructure.net> | 2010-09-12 13:22:30 -0400 |
| commit | 849b5df14e24d4e4b7215575315b7ad515326943 (patch) | |
| tree | 6196e2a9af71ad356967318e21e77f8d07c184a3 | |
| parent | 540b2879f1b505155b807bd6fcc23025b6e31297 (diff) | |
howto: fix some formatting
| -rw-r--r-- | howto.mdwn | 25 |
1 files changed, 16 insertions, 9 deletions
@@ -1,18 +1,25 @@ [[!img notmuch-logo.png alt="Notmuch logo" class="left"]] #How to... -* <span id="print_filenames">.. print only filenames of a search</span> +Some tips about how to do some useful things with notmuch, and the +various "third party" notmuch utilities. -Given you have the python bindings installed (or simply set your PYTHONPATH environment variable to point to the .../bindings/python directory), this script will print the filenames of a matching search: +* <span id="print_filenames">Print only filenames of a search</span> - #!/usr/bin/env python - import sys - import notmuch - - q = notmuch.Database().create_query(" ".join(sys.argv[1:])) - for m in q.search_messages(): print m.get_filename() + Given you have the python bindings installed (or simply set your + PYTHONPATH environment variable to point to the .../bindings/python + directory), this script will print the filenames of a matching + search: -* <span id="sync_maildir_flags">.. sync notmuch tags and maildir flags</span> + #!/usr/bin/env python + import sys + import notmuch + search = " ".join(sys.argv[1:]) + q = notmuch.Database().create_query(search) + for m in q.search_messages(): + print m.get_filename() + +* <span id="sync_maildir_flags">Sync notmuch tags and maildir flags</span> Some IMAP users rely on maildir flags that convey the status "seen", "replied", "trashed", in order to synchronize the status of their |
