From 849b5df14e24d4e4b7215575315b7ad515326943 Mon Sep 17 00:00:00 2001 From: Jameson Rollins Date: Sun, 12 Sep 2010 13:22:30 -0400 Subject: [PATCH] howto: fix some formatting --- howto.mdwn | 25 ++++++++++++++++--------- 1 file changed, 16 insertions(+), 9 deletions(-) diff --git a/howto.mdwn b/howto.mdwn index 58868c6..c62409f 100644 --- a/howto.mdwn +++ b/howto.mdwn @@ -1,18 +1,25 @@ [[!img notmuch-logo.png alt="Notmuch logo" class="left"]] #How to... -* .. print only filenames of a search +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: +* Print only filenames of a search - #!/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: -* .. sync notmuch tags and maildir flags + #!/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() + +* Sync notmuch tags and maildir flags Some IMAP users rely on maildir flags that convey the status "seen", "replied", "trashed", in order to synchronize the status of their -- 2.43.0