Closed frasertweedale closed 5 years ago
@romanofski here it is, but I still need to update docs and CI because our libnotmuch minimum support version increases. You might be able to start paying with this as-is, though.
w00t - let me try it out
Just so to let you know. I've just started building the purebred integration side in order to get the mails indexed and tagged.
If you're keen merge ho :)
I've tried it in my current branch and it works nicely. The only thing I've noticed is that removing the mail from the index is called removeFile
. Basically the same as we use for removing a file from the file system.
I'll remove the mail from the index and remove the file from the file system in purebred. It did feel a bit weird. Anyway, everything else seems to work as intended. Good stuff!
Current WIP is at: https://github.com/purebred-mua/purebred/tree/feature/119DraftsInSecureDirectory
I've tried it in my current branch and it works nicely. The only thing I've noticed is that removing the mail from the index is called
removeFile
. Basically the same as we use for removing a file from the file system.
Yeah I'm just following the naming convention from libnotmuch. It makes sense when you understand that the primary behaviour is dissociating a file from a message (which may have multiple files associated with it), with the message itself being unindexed as a seconary behaviour only when the last file association is removed.
I don't care if there's a name conflict, can always qualify the import :)
@romanofski thanks for reviewing. I'll try and polish this off this weekend or sometime next week.
@frasertweedale sweet! Let me know when you bumped the version so the builds don't fail on the purebred side :)
@romanofski I added the path sanity checking. Please test it and if you're happy, we can merge. Then I'll bump version and cut a release.
I've updated and ran the tests and while there is a test failure when it comes to left over mails in the Drafts
folder, I think it works and can be merged. If you want, let me have a closer look at the single failure tonight but seems your changes are not the problem.
Looking good: https://travis-ci.org/purebred-mua/purebred/jobs/542682578 Merge away!
Also a few minor drive-by fixes.