Commit graph

50 commits

Author SHA1 Message Date
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
8d4f50e3f6 Renamed server to receiver, client to sender 2023-05-24 02:07:41 -04:00
Nathan Fisher
c3891cb485 Add doc comment and example for host module 2023-05-23 19:09:17 -04:00
7bbdb1381d Add Store, Verifier and Fingerprint types for handling
certificates
2023-05-22 20:47:20 -04:00
8d6c21325f Add LICENSE.md, run cargo fmt 2023-05-22 18:11:14 -04:00
c68b539af5 Add tests for Request; Fix some errors revealed in testing; Fix some
clippy lints;
2023-05-22 15:45:34 -04:00
f87299ad34 Request: handle empty fields as errors 2023-05-22 10:29:39 -04:00
6d66bf9664 Finish Request struct trait impl's; TODO: write tests 2023-05-22 10:25:49 -04:00
30f78990b1 Add Host struct with tests; Add Request struct (unfinished); 2023-05-22 10:12:28 -04:00
62eeb9d627 Add Response struct and tests 2023-05-22 01:29:03 -04:00
399d567c62 Implement to/from numerical status codes for Status enum and add tests 2023-05-22 00:45:43 -04:00
Nathan Fisher
26062171cc Initial commit 2023-05-21 23:27:49 -04:00