Commit graph

61 commits

Author SHA1 Message Date
Nathan Fisher
5daa6ca377 Merge branch 'odin' of git.hitchhiker-linux.org:jeang3nie/dory into odin 2023-06-09 01:26:00 -04:00
Nathan Fisher
0fcfb6db47 Add Time module for storing ISO-8601 time and converting to and from
a string
2023-06-09 01:23:35 -04:00
ef67fe7aa1 Finished tests on the gemtext parser, revealing yet another bug which
was also fixed.
2023-06-08 10:20:08 -04:00
608d63def9 Add a bunch of files to the test/mailstore directory for runnings tests
against; Partially write tests for Gemtext parser
2023-06-07 22:11:07 -04:00
22972ed43d Added testing for message::Parser 2023-06-07 16:32:51 -04:00
676c7b34dc Status - complete test coverage 2023-06-07 16:00:03 -04:00
4642443d37 Wrote message parser 2023-06-07 13:49:19 -04:00
ff96b5b56b Fix stack overflow when converting status enum back to u8
TODO: Add more test coverage!
2023-06-06 14:00:31 -04:00
bad5a230cc crate::message - add tests (two failing due to not being implemented) 2023-06-05 11:23:15 -04:00
98c8d2ac6e Add FromStr for Recipients 2023-06-05 11:10:53 -04:00
4b43b283dd Parser - fix for pushing wrong line type when leaving preformatted block 2023-06-02 11:13:22 -04:00
c36009db46 Handle leaving quote mode properly; 2023-06-02 11:09:39 -04:00
5113775933 Parser - implement preformatted mode 2023-06-02 10:27:45 -04:00
1dd66684bf Parser: add "title" field and set it with the first heading found 2023-06-02 10:03:02 -04:00
a9fcab7006 Implement a little more of the Gemtext parser 2023-06-02 09:55:10 -04:00
200dd8b451 Progress on the Gemtext parser 2023-06-02 00:26:19 -04:00
60a8e74af3 Merge branch 'odin' of git.hitchhiker-linux.org:jeang3nie/dory into odin 2023-06-01 23:35:19 -04:00
805e5cdd14 Some work towards the gemtext parser 2023-06-01 23:34:36 -04:00
Nathan Fisher
5ab89f74db Add FingerPrintStore trait for fetching a known mailuser via a client
certificate fingerprint;
2023-06-01 19:07:08 -04:00
8b0af76b8f Remove generics for Link and Message 2023-06-01 10:41:00 -04:00
42afaf4e6a Add message::link using generic "T: Display + PartialEq", provide impl's
for "&'a str" and String
2023-05-31 11:20:02 -04:00
477de69ca3 Added Connection and connection::Builder; Fixed a lot of Clippy lints; 2023-05-29 11:33:36 -04:00
c9eb30f4e7 Implemented more trait functions for Filesystem 2023-05-29 01:18:36 -04:00
179b8ad100 Tweak MailStore and MultiDomain traits to add Error types 2023-05-29 00:56:15 -04:00
Nathan Fisher
4f2f151173 Fleshed out some methods in the Filesystem mail store 2023-05-28 23:32:52 -04:00
Nathan Fisher
0a30c49d49 Merge branch 'odin' of git.hitchhiker-linux.org:jeang3nie/dory into odin 2023-05-28 19:27:37 -04:00
Nathan Fisher
72c1dbf016 Add Filesystem mail store and MultiDomain trait 2023-05-28 19:22:58 -04:00
e3b9db4572 Fix some issues with Sender, add Multisender 2023-05-28 12:23:05 -04:00
b7378dba78 Fix some logic errors in Sender::send, as before it was sending to the
sender rather than the recipient
2023-05-28 11:02:54 -04:00
50644d2d68 Some tweaks to MailStore trait 2023-05-28 00:18:15 -04:00
Nathan Fisher
2afbede154 Add Account, Domain, MultiDomain structs and MailStore trait 2023-05-27 23:38:41 -04:00
c7ed63a260 Adjust dependency specs in Cargo.toml to allow patch version upgrades 2023-05-27 11:13:48 -04:00
46d04405ad Send client certs if they exist in ClientCertificateStore; Impl
TryFrom<Vec<u8>> for Response; Adjust error types to fit all new cases;
2023-05-27 10:58:14 -04:00
54a099bb44 Add Certificate struct and ClientCertificateStore trait 2023-05-27 01:18:30 -04:00
Nathan Fisher
680ca4e9b9 Flesh out most of sender functionality 2023-05-27 00:10:41 -04:00
Nathan Fisher
887ab8e085 Added docs for CertificateStore 2023-05-26 19:04:31 -04:00
Nathan Fisher
799ff9ef17 Added two tests for Verifier, covering Tofu success cases.
TODO: implement failing tests and check that the proper errors are
returned.
2023-05-26 18:58:38 -04:00
6e5ba46c26 Added currently failing test for Verifier. Can't satisfy the function
signature for the rustls provided api.
2023-05-26 11:19:55 -04:00
54fb9e79ab Add methods to get recipients, senders and timestamp from Request;
Add Mailuser type; Use Mailuser instead of String and Host in Request to
represent the sender;
2023-05-26 01:34:29 -04:00
Nathan Fisher
b2f60c61ec Add Mailbox, Message, Lines, Recipients types 2023-05-25 23:35:24 -04:00
Nathan Fisher
c57bb83c5c Merge branch 'odin' of git.hitchhiker-linux.org:jeang3nie/dory into odin 2023-05-25 18:52:08 -04:00
102130eb75 Run cargo fmt; Remove an unused import (verifier.rs) 2023-05-25 10:24:32 -04:00
2b7119610c Add handling of certs with multiple common names; Check certs for
validity against current date;
2023-05-25 10:22:26 -04:00
0d15b8d24b Finish implementing TOFU for Verifier;
TODO: additional checks for certificate validity;
2023-05-24 17:37:44 -04:00
ac5f2c21eb Add optional serde support; Remove Clone from most error types; 2023-05-24 15:59:15 -04:00
73375abec3 Add doc comments for all status subcodes 2023-05-24 13:22:47 -04:00
4a40603efc Finish refactor and add a number of doc comments 2023-05-24 13:14:14 -04:00
02de655640 Verifier: wrap self.store in Arc<Mutex<T>>;
Refactoring:
* Add prelude
* Move some error types into modules
* make most modules private and re-export their items
2023-05-24 12:07:18 -04:00
d2802ced83 Ran cargo fmt 2023-05-24 03:15:26 -04:00
e25ebfa353 Add Sender struct 2023-05-24 03:13:49 -04:00