Commit Graph

3148 Commits

Author SHA1 Message Date
Matthias Beyer 0250a2c662 Add MailIter 2016-10-12 19:17:41 +02:00
Matthias Beyer af54e621a8 Add Mail::from_ref() 2016-10-12 19:17:41 +02:00
Matthias Beyer 80010f6043 Impl get_{from,to,subject,message_id,in_reply_to} 2016-10-12 19:17:41 +02:00
Matthias Beyer 5825022e5d Impl Mail::get_field() 2016-10-12 19:17:41 +02:00
Matthias Beyer 953f537670 Create internal file buffer when storing/loading 2016-10-12 19:17:41 +02:00
Matthias Beyer c7f890d0d4 Add error kind for ref handling errors 2016-10-12 19:17:40 +02:00
Matthias Beyer 662af88eb5 Impl Mail::open() 2016-10-12 19:17:40 +02:00
Matthias Beyer 042f286c34 Add fetch-error kinds 2016-10-12 19:17:40 +02:00
Matthias Beyer 3136060ecf Remove Mail::import_from_string() 2016-10-12 19:17:40 +02:00
Matthias Beyer d4be497d41 Add dep: libimagref 2016-10-12 19:17:40 +02:00
Matthias Beyer 5b8239e45e Impl Mail::import_from_path() 2016-10-12 19:17:40 +02:00
Matthias Beyer 03ae714970 Add MailHasher 2016-10-12 19:17:40 +02:00
Matthias Beyer 4d83ce8b6e Add error kind if ref could not be created 2016-10-12 19:17:40 +02:00
Matthias Beyer 3e63d65689 Add dependency: filters = 0.1.0 2016-10-12 19:17:40 +02:00
Matthias Beyer eec6ef0652 Add agnostic "RefHashingError"
to be used by implementors of Hasher.
2016-10-12 19:17:40 +02:00
Matthias Beyer 80a320d769 Add intermediate buffer type for abstracting away lifetime foo from mailparse 2016-10-12 19:17:40 +02:00
Matthias Beyer 50fbc38984 Initial import of codebase 2016-10-12 19:17:40 +02:00
Matthias Beyer b53f12c0a6 Add dependencies 2016-10-12 19:17:40 +02:00
Matthias Beyer 726a74e41c Initial import 2016-10-12 19:17:40 +02:00
Matthias Beyer 56c5b8c443 Merge pull request #698 from matthiasbeyer/libimagstore/store-tests
libimagstore: Add Store testing
2016-10-12 14:48:43 +02:00
Matthias Beyer bbdb86b1d0 Merge pull request #793 from matthiasbeyer/libimagstore/store-tests-integration
libimagstore/store-tests: integration
2016-10-12 12:30:04 +02:00
Matthias Beyer 7abf6cb44c Merge pull request #795 from matthiasbeyer/update-nix-deps
Add dep for pure nix build: which
2016-10-12 11:14:33 +02:00
Matthias Beyer 10b920a149 Merge branch 'libimagstore/store-tests' into libimagstore/store-tests-integration 2016-10-12 11:13:38 +02:00
Matthias Beyer 47bd71accb Merge pull request #794 from matthiasbeyer/libimagstore/store-tests-fix-poisonerror-panic
libimagstore/store-tests: fix poisonerror panic
2016-10-12 11:12:32 +02:00
Matthias Beyer 2cbcfa946c Merge branch 'master' into libimagstore/store-tests-integration
On master, we changed the Store::update() function to do nothing more
than calling Store::_update() and wrapping an error.

On the libimagstore/store-tests branch, we modified the
Store::_update() function to contain an additional flag in the
parameters, whether the File-Lock-Entry internal `precense`-value should
be updated.

This merge commit resolves that conflict.
2016-10-12 08:53:11 +02:00
Matthias Beyer b4d2f5c1a6 Each test should test with a unique test file name 2016-10-12 08:38:07 +02:00
Matthias Beyer 600059be82 Add error output 2016-10-12 08:38:07 +02:00
Matthias Beyer 27e816fc69 Do not simply unwrap, but return error in case of error 2016-10-12 08:38:07 +02:00
Matthias Beyer 08a93288d7 Add dep for pure nix build: which 2016-10-11 20:13:56 +02:00
Matthias Beyer 006db707fa Merge pull request #789 from matthiasbeyer/warning-cleanup
Warning cleanup
2016-10-11 19:57:17 +02:00
Matthias Beyer d2b4b523c4 Remove unused imports 2016-10-11 18:35:34 +02:00
Matthias Beyer ac1af164e9 Merge pull request #775 from matthiasbeyer/libimaginteraction/readline
libimaginteraction: readline support
2016-10-11 18:22:41 +02:00
Matthias Beyer 906e26df6f Merge pull request #759 from matthiasbeyer/libimagstorestdhook/git-commit-on-drop
libimagstorestdhook/git: commit on drop
2016-10-11 18:14:28 +02:00
Matthias Beyer 9bb21e6a19 imag-bookmark: Rewrite add() with iterator helpers 2016-10-11 11:20:38 +02:00
Matthias Beyer 17fba2c47f Merge pull request #790 from matthiasbeyer/libimagstore/store-tests-allowed-erroring-hooks
libimagstore/store: tests allowed erroring hooks
2016-10-11 11:06:55 +02:00
Matthias Beyer 9a8a2f1c29 Add hook tests for hooks that error with an error that does not abort the action 2016-10-09 18:26:16 +02:00
Matthias Beyer 7050067675 Merge pull request #761 from matthiasbeyer/libimagstore/store-tests-more-succeeding-hook-tests
libimagstore/store-tests: more succeeding hook tests
2016-10-09 13:29:48 +02:00
Matthias Beyer 8709e53f0f Merge pull request #786 from matthiasbeyer/libimagstore/store-tests-erroring-hooks
libimagstore/store: tests erroring hooks
2016-10-09 13:28:36 +02:00
Matthias Beyer dd5928c1b5 Merge pull request #788 from matthiasbeyer/fix-787
Fix missing [[ on travis
2016-10-08 01:33:23 +02:00
Matthias Beyer 49b054aeda Deny warnings 2016-10-08 00:57:22 +02:00
Matthias Beyer 8f26d5b9c3 Use unused results 2016-10-08 00:57:04 +02:00
Matthias Beyer f73c407e75 Remove unused imports 2016-10-08 00:56:57 +02:00
Matthias Beyer 0a069a401b Remove unused variable 2016-10-08 00:53:52 +02:00
Matthias Beyer 47ca51b895 Remove unused variable 2016-10-08 00:53:44 +02:00
Matthias Beyer 18f575ebe5 Remove unused function 2016-10-08 00:53:29 +02:00
Matthias Beyer 99d34d019b Deny warnings 2016-10-08 00:51:47 +02:00
Matthias Beyer 02d0dfa084 Use unused result 2016-10-08 00:51:42 +02:00
Matthias Beyer 9384f53447 Remove unused imports 2016-10-08 00:51:34 +02:00
Matthias Beyer a9deb488b3 Fix missing [[ on travis 2016-10-08 00:34:38 +02:00
Matthias Beyer 5202c5112a Add flag for _update() whether precense should be modified
This is a bugfix for an very particular issue.

Here's what happens:

If we create() an FileLockEntry and then update() it, we are running
into a problem because update() calls _update() which changes the
precense status of a FileLockEntry.

Because update() is _consuming_, the FileLockEntry gets drop()ed
afterwards. This _again_ causes _update() to be called, but with a new
presence status, which is not true in this moment (as the FileLockEntry
is still borrowed, but we already marked it as present).

This patch is a short-term fix. The real problem is, that our Store
interface is consuming. If the Store interface would be non-consuming,
this issue wouldn't happen, as the drop() call would not happen.

I'm rather sure that this patch will not be reverted in the process of
rewriting the Store interface to be non-consuming. But we never know.
2016-10-07 21:59:37 +02:00