patches to mutt-notmuch

classic Classic list List threaded Threaded
1 message Options
Scott Barker Scott Barker
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

patches to mutt-notmuch

I have recently switched from using mutt + maildir-utils (mu) for searching
my email to using mutt + notmuch. I made use of the mutt-notmuch perl script
by Stefano Zacchiroli to integrate mutt and notmuch. You can find it at:
http://upsilon.cc/~zack/blog/posts/2011/01/how_to_use_Notmuch_with_Mutt

I have written a few patches (attached to this email) to extend the
functionality of Stefano's script, as follows:

  mutt-notmuch-readline.diffs
    This patch makes mutt-notmuch use Term::ReadLine::GNU instead of reading
    directly from STDIN.

  mutt-notmuch-prompt-and-commandline-search-params.diffs
    This patch uses the readline PREPUT functionality to pre-populate the
    readline string with any search terms from the command line.

  mutt-notmuch-mutt-folder-cleanup.diffs
    This patch just removes the "=" from folder names as used in mutt, so
    that the following can be made to work:

      folder-hook . 'set my_oldrecord=$record; set record=^; set my_folder=$record; set record=$my_oldrecord; macro index <F7> "<enter-command>unset wait_key<enter><shell-escape>~/bin/mutt-notmuch --prompt search folder:$my_folder<enter><change-folder-readonly>~/.cache/mutt_results<enter>" "search $my_folder (using notmuch)"'

Hopefully other people will find these patches of use as well.

PS - any word on whether mutt-notmuch will be included with notmuch, as
mentioned in Debian bug # 628018?
(see http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=628018)

--
Scott Barker
Linux Consultant
[hidden email]
http://www.mostlylinux.ca

_______________________________________________
notmuch mailing list
[hidden email]
http://notmuchmail.org/mailman/listinfo/notmuch

mutt-notmuch-readline.diffs (1K) Download Attachment
mutt-notmuch-prompt-and-commandline-search-params.diffs (960 bytes) Download Attachment
mutt-notmuch-mutt-folder-cleanup.diffs (449 bytes) Download Attachment
Loading...