Updated mutt wikipage, new addressbook script: notmuch-abook
Hello world, I'm using notmuch and mutt-kz flawlessly for over a year, and I'm really happy with them, so thank you guys for providing such great tools! So I updated the notmuchmail.org wikipage about mutt: http://notmuchmail.org/notmuch-mutt/ I also wanted to enable completion from within vim, so I extended the mutt_addresses.py script, so it creates and updates a cache of addresses in a sqlite3 database. It is available on pypi, so you can use it as a standalone CLI application: https://github.com/guyzmo/notmuch-abook/ About that one, I made the choice to use sqlite3 as backend, because it was an easy way to create fast queries of addresses, but I was wondering if it would not be more intelligent to integrate the addresses indexing in the xapian database directly? And finally, I have tried to compile the vala-notmuch addressbook, but the compilation is failing because of some change in the database_open call, and I don't have much time to understand Vala's API mappings to C. But I've been told it is lightning fast when querying notmuch directly. Has anyone patched that code, and still use it with latest notmuch? I'd give it a try to replace my sqlite3 backend in the script. Cheers, -- Guyzmo
funcmail.py: generate notmuch-tags based on headers
On Fri, Mar 22, 2013 at 12:14:00PM +, Patrick Totzke wrote: > Could this be integrated into "afew" as a custom filter? Probably yes, however I have no plans neither knowledge to do that atm. Regards Michal Vyskocil -- next part -- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 198 bytes Desc: Digital signature URL: <http://notmuchmail.org/pipermail/notmuch/attachments/20130322/391e9af4/attachment.pgp>
funcmail.py: generate notmuch-tags based on headers
Hi, because it seems that notmuch does not index all headers, I've written a simple, but quite usable tool, which goes through a maildir and generate an output for notmuch-tag --batch according a simple rules. I've borrowed the syntax from notmuch-tag --batch format, so it should be very easy for any notmuch user to configure. You can query the content of a paricular header # tags will be applied when string is in header +notmuch -inbox -- 'notmuch.notmuchmail.org' in 'List-Id' or in more than one header +notmuch -inbox -- 'notmuch.notmuchmail.org' in ('List-Id', 'X-Mailinglist') Or use the procmail-like grep, where a whole email will be searched for a pattern. # procmail-like rule, the whole email is searched for a pattern +notmuch -inbox -- 'List-Id.*notmuch.notmuchmail.org' Note the matchin rule is a normal Python expression, so everything Python interpreted can evaluate, should be used. I've ever wanted to learn about those parts of a Python, so this was a nice opportunity to learn. https://gist.github.com/mvyskocil/5220690 Regards Michal Vyskocil -- next part -- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 198 bytes Desc: Digital signature URL: <http://notmuchmail.org/pipermail/notmuch/attachments/20130322/db93a112/attachment.pgp>
funcmail.py: generate notmuch-tags based on headers
Could this be integrated into "afew" as a custom filter?
funcmail.py: generate notmuch-tags based on headers
Hi, because it seems that notmuch does not index all headers, I've written a simple, but quite usable tool, which goes through a maildir and generate an output for notmuch-tag --batch according a simple rules. I've borrowed the syntax from notmuch-tag --batch format, so it should be very easy for any notmuch user to configure. You can query the content of a paricular header # tags will be applied when string is in header +notmuch -inbox -- 'notmuch.notmuchmail.org' in 'List-Id' or in more than one header +notmuch -inbox -- 'notmuch.notmuchmail.org' in ('List-Id', 'X-Mailinglist') Or use the procmail-like grep, where a whole email will be searched for a pattern. # procmail-like rule, the whole email is searched for a pattern +notmuch -inbox -- 'List-Id.*notmuch.notmuchmail.org' Note the matchin rule is a normal Python expression, so everything Python interpreted can evaluate, should be used. I've ever wanted to learn about those parts of a Python, so this was a nice opportunity to learn. https://gist.github.com/mvyskocil/5220690 Regards Michal Vyskocil signature.asc Description: Digital signature ___ notmuch mailing list notmuch@notmuchmail.org http://notmuchmail.org/mailman/listinfo/notmuch
Re: funcmail.py: generate notmuch-tags based on headers
Could this be integrated into afew as a custom filter? ___ notmuch mailing list notmuch@notmuchmail.org http://notmuchmail.org/mailman/listinfo/notmuch
Re: funcmail.py: generate notmuch-tags based on headers
On Fri, Mar 22, 2013 at 12:14:00PM +, Patrick Totzke wrote: Could this be integrated into afew as a custom filter? Probably yes, however I have no plans neither knowledge to do that atm. Regards Michal Vyskocil signature.asc Description: Digital signature ___ notmuch mailing list notmuch@notmuchmail.org http://notmuchmail.org/mailman/listinfo/notmuch
Updated mutt wikipage, new addressbook script: notmuch-abook
Hello world, I'm using notmuch and mutt-kz flawlessly for over a year, and I'm really happy with them, so thank you guys for providing such great tools! So I updated the notmuchmail.org wikipage about mutt: http://notmuchmail.org/notmuch-mutt/ I also wanted to enable completion from within vim, so I extended the mutt_addresses.py script, so it creates and updates a cache of addresses in a sqlite3 database. It is available on pypi, so you can use it as a standalone CLI application: https://github.com/guyzmo/notmuch-abook/ About that one, I made the choice to use sqlite3 as backend, because it was an easy way to create fast queries of addresses, but I was wondering if it would not be more intelligent to integrate the addresses indexing in the xapian database directly? And finally, I have tried to compile the vala-notmuch addressbook, but the compilation is failing because of some change in the database_open call, and I don't have much time to understand Vala's API mappings to C. But I've been told it is lightning fast when querying notmuch directly. Has anyone patched that code, and still use it with latest notmuch? I'd give it a try to replace my sqlite3 backend in the script. Cheers, -- Guyzmo ___ notmuch mailing list notmuch@notmuchmail.org http://notmuchmail.org/mailman/listinfo/notmuch