1 [[!img notmuch-logo.png alt="Notmuch logo" class="left"]]
4 ##<span id="print_filenames">.. print only filenames of a search</span>
6 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:
12 q = notmuch.Database().create_query(" ".join(sys.argv[1:]))
13 for m in q.search_messages(): print m.get_filename()