mirror of
https://github.com/mailscope/kumomta.git
synced 2026-10-30 10:06:52 +00:00
The CI flakes I've been running down are due to this:
```json
{"type":"TransientFailure","queue":"maildir","response":{"code":400,"enhanced_code":null,
"content":"failed to write to maildir: creating dirs for maildir /tmp/.tmpBi1p8H/maildir in queue maildir: File exists (os error 17)"}
```
which sounds like a race condition when multiple threads are trying
to create that maildir directory structure from scratch at the same
time.
This commit adds some error handling to catch and deal with this
appropriately.
maildir
A simple library to deal with maildir folders
API
The primary entry point for this library is the Maildir structure, which can be created from a path, like so:
let maildir = Maildir::from("path/to/maildir");
The Maildir structure then has functions that can be used to access and modify mail files.
Documentation
See the rustdoc at docs.rs.
Support maildir
If you want to support development of maildir, please do so by donating your money, time, and/or energy to fighting climate change.
A quick and easy way is to send a donation to Replant.ca Environmental, where every dollar gets a tree planted!