Skip to content
Commits on Apr 21, 2016
  1. Bump version

    committed Apr 21, 2016
  2. Merge pull request #8 from adamdoupe/patch-1

    mutt-notmuch-py crashes
    committed Apr 21, 2016
Commits on Apr 14, 2016
  1. @adamdoupe

    mutt-notmuch-py crashes

    mutt-notmuch-py will crash when given an input with shell special characters, such as:
    This fix calls the mkarg function from commands module (which is undocumented, but is apparently the only correct function to use in Python 2) on the user input, thus escaping it correctly for use in an command argument.
    adamdoupe committed Apr 14, 2016
Commits on Mar 22, 2016
  1. Update silly copyright notices

    committed Mar 22, 2016
  2. Add fedora to list of tested envs

    committed Mar 22, 2016
Commits on Oct 24, 2015
  1. Add badge

    committed Oct 24, 2015
  2. better readme

    committed Oct 24, 2015
  3. rst -> md

    committed Oct 24, 2015
  4. Merge pull request #7 from mvanbaak/filter-on-basedir

    Filter on basedir
    committed Oct 24, 2015
  5. Merge pull request #6 from mvanbaak/master

    Fix help output for -G
    committed Oct 24, 2015
  6. @mvanbaak

    Add option -p

    If -p is given the files linked to the output dir are limited to source
    files that have the path given with -p in the name.
    This is usefull if you have a couple of mail accounts, and want to
    search only one account.
    I have three email accounts I sync with offlineimap and index them all
    together with one notmuch index.
    To search globally, I run:
    $ mutt-notmuch -g ~/mail/temp/search
    To search only my work email, I run:
    $ mutt-notmuch -g -p 'mail/work' ~/mail/temp/search
    I know I could have done this with multiple notmuch databases but that
    was too much hassle with environment variables, especially with the
    combination of offlineimap, mutt, notmuch etc
    mvanbaak committed Oct 24, 2015
  7. @mvanbaak

    Fix help output for -G

    mvanbaak committed Oct 24, 2015
Commits on Jan 22, 2014
  1. Rename script

    committed Jan 22, 2014
  2. Add

    - #4
    committed Jan 22, 2014
  3. Merge pull request #3 from thiderman/speedup

    Improve speed by using os.symlink() rather than ln
    committed Jan 22, 2014
  4. @thiderman

    Improve speed by using os.symlink() rather than ln

    Shelling out to ln causes the script to take a hell of a long time, almost
    exponentially so when searching something that hits a lot of email.
    Non-scientific measurements report between 9x and 11x decrease of running time
    when using os.symlink().
    Also improved speed by using the slightly optimized defaultdict() for storing
    the email digests, and by dropping an extra iteration of the list returned by
    notmuch by moving filter exclusion into sha digest loop.
    Also did some minor cleanups:
    Changed print statement to a function for glorious Python 3 compatibility.
    Removed unnecessary use of global.
    Removed unused sys import.
    Removed redundant first mkdir -p call (the second one will create parent)
    thiderman committed Jan 22, 2014
Commits on Jul 9, 2013
  1. Merge pull request #2 from MichaelRevell/patch-1

    IO Errors
    committed Jul 9, 2013
  2. @MichaelRevell

    IO Errors

    We should handle these potential IO errors, otherwise it halts the program if we happened to have deleted a file and not yet synced with notmuch (which actually happens fairly often for me).
    Let me know if you'd prefer to handle these errors silently or with a different error message and I'll change that. Either way, I don't think we want the program to halt because of a deleted email. :P
    Also, if we want, we could just wrap the open command (in digest) in the try block, but I did it outside because I didn't want to add anything to the data array if the file doesn't exist.
    MichaelRevell committed Jul 8, 2013
Commits on Sep 29, 2012
  1. Merge pull request #1 from sjl/master

    Add some options (backwards compatible)
    committed Sep 29, 2012
  2. @sjl

    Make things more configurable.

    Allows a destination folder to be passed in (defaults to the one it was before,
    for backwards-compatibility).  Also allows a -G option to disable the
    gmail-specific stuff (but defaults to the dame as before).
    Also adds --help thanks to optparse.
    sjl committed Sep 29, 2012
Commits on Sep 11, 2012
  1. Fix readme

    committed Sep 10, 2012
  2. init

    committed Sep 10, 2012
Something went wrong with that request. Please try again.