Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Branch: master
Commits on Jan 22, 2014
  1. Rename script

  2. Add

    - #4
  3. Merge pull request #3 from thiderman/speedup

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

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

    thiderman authored
    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)
Commits on Jul 9, 2013
  1. Merge pull request #2 from MichaelRevell/patch-1

    IO Errors
  2. @MichaelRevell

    IO Errors

    MichaelRevell authored
    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.
Commits on Sep 29, 2012
  1. Merge pull request #1 from sjl/master

    Add some options (backwards compatible)
  2. @sjl

    Make things more configurable.

    sjl authored
    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.
Commits on Sep 11, 2012
  1. Fix readme

  2. init

Something went wrong with that request. Please try again.