[RFC PATCH 11/14] notmuch-new: pull out useful bits of add_files_recursive

2012-06-26 Thread Ethan Glasser-Camp
This is part of notmuch-new refactor phase 1: make add_files stuff safe for other backends. add_files_recursive is essentially a maildir-crawling function that periodically adds files to the database or adds filenames to remove_files or remove_directory lists. I don't see an easy way to adapt

[RFC PATCH 11/14] notmuch-new: pull out useful bits of add_files_recursive

2012-06-25 Thread Ethan Glasser-Camp
This is part of notmuch-new refactor phase 1: make add_files stuff safe for other backends. add_files_recursive is essentially a maildir-crawling function that periodically adds files to the database or adds filenames to remove_files or remove_directory lists. I don't see an easy way to adapt