]> git.cworth.org Git - notmuch-wiki/commitdiff
howto: fix some formatting
authorJameson Rollins <jrollins@finestructure.net>
Sun, 12 Sep 2010 17:22:30 +0000 (13:22 -0400)
committerJameson Rollins <jrollins@finestructure.net>
Sun, 12 Sep 2010 17:22:30 +0000 (13:22 -0400)
howto.mdwn

index 58868c6e474b546a33b43b95b8fda471f35b82ba..c62409fc9b35a2b243717202afacfd059f0afc0f 100644 (file)
@@ -1,18 +1,25 @@
 [[!img notmuch-logo.png alt="Notmuch logo" class="left"]]
 #How to...
 
 [[!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
 
   Some IMAP users rely on maildir flags that convey the status "seen",
   "replied", "trashed", in order to synchronize the status of their