~matthiasbeyer/maildir

ee1f8fce — Kartikaya Gupta 1 year, 11 months ago
Run cargo fmt
8847806c — Kartikaya Gupta 1 year, 11 months ago
Version bump to 0.3.2
cfdcd49b — Kartikaya Gupta 1 year, 11 months ago
Add a date() function
dd7e1903 — Kartikaya Gupta 1 year, 11 months ago
Version bump to 0.3.1

I screwed up 0.3.0 and yanked it, so this is 0.3.1
2d81deca — Kartikaya Gupta 1 year, 11 months ago
Add a delete function to remove mail files
d6adbf54 — William R. Fraser 2 years ago
add a function to move a message from new to cur and add flags as one operation
4bdf1108 — Kartikaya Gupta 2 years ago
Point docs to docs.rs
1dafbe93 — Kartikaya Gupta 2 years ago
Version bump to 0.2 and publish
1f5e605b — Andreas Rottmann 2 years ago
tests: Fix clippy warning

This does not really improve code quality, but does not make the code
worse, either.
dcc47b22 — Andreas Rottmann 2 years ago
Improve error handling in example

This makes the code a bit more modular, by leaving actual error
response up to `main`, and avoids calling `std::process::exit` from a
nested scope, which would prevent destructors from running.
aea65b8e — Andreas Rottmann 2 years ago
Bump `mailparse` and `nix` dependencies

Use the latest versions; no changes required.
a0a81150 — Dan Čermák 2 years ago
store_new and store_cur_with_flags now return the id of the inserted mail

Previously there was no trivial way how one could get the id of a freshly
inserted email. This commit modifies the return type of Maildir::store to
Result<String, MaildirError>, and returns the id on success.

The smoke test for store_new was modified to verify that the id is actually the
correct one.
4eedd817 — Dan Čermák 2 years ago
Correct TEST_MAIL_BODY (first characters of each line were missing)

This example email was probably yanked incorrectly in
3ace2c97e8eeaba3bd36d6b371d00850790bdd4e
This commit restores the previous state.
dcfe0747 — Kartikaya Gupta 2 years ago
Add license text

Fixes #10
a72f95dc — Andreas Rottmann 2 years ago
Make tests concurrency-safe

The tests now all operate on a temporary directory, potentially
containing the contents of the "testdata" directory. The contents is
not copied as-is, but destination filenames are derived via
percent-decoding from the source filenames.

This allows the tests to safely run concurrently, so the flags
enforcing single-threaded execution have been removed from the CI
config.

Extending the API slightly, this commit also adds a `Maildir::path`
method, which came handy when refactoring the tests.

Fixes #6.
3ace2c97 — Andreas Rottmann 2 years ago
Pull tests out to a separate file

The tests are all written against the public API, so let's put them in
their own file, so they will be compiled separately, enforcing the API
boundary.
ad3b3ce4 — Andreas Rottmann 2 years ago
Modernize `Error` trait implementations

Implement the newer, more flexible `source()` instead of
`cause()`. This also eliminates a deprecation warning regarding
missing `dyn` keywords on nightly.
4e8a7526 — Andreas Rottmann 2 years ago
Fix all clippy warnings

This fixes all warnings emitted by

    cargo clippy --all-features --all-targets -- -D warnings

It also adds a CI job to run clippy like that.
58dad32a — Andreas Rottmann 2 years ago
Switch to 2018 edition

Not much to see here, just the `extern crate` statements are gone.
9c14163b — Andreas Rottmann 2 years ago
Use the question mark instead of `try!`
Next