Commit graph

92 commits

Author SHA1 Message Date
ca942d6e3e Fix deprecation warning, massage connection verifier function somewhat 2023-08-18 23:03:24 -04:00
317672991e Update deps, add some FreeBSD specific code 2023-08-18 22:52:07 -04:00
Nathan Fisher
67b7a2d0ea Client cert verifier: return error if name does not match 2023-08-18 19:06:38 -04:00
Nathan Fisher
8cc3c13389 Begin implementing client certificate validator 2023-08-18 19:01:14 -04:00
Nathan Fisher
8dcd8455d4 Integrate unique message id creation with message receipt; Add
appropriate error cases for new infra;
2023-06-26 18:56:14 -04:00
Nathan Fisher
49b6728c78 Remove debug print statement from previous commit 2023-06-26 12:49:55 -04:00
Nathan Fisher
68cccc840b Fix error introduced in previous commit, where days in month was not
being updated while creating a DateTime struct from a u64 timestamp
2023-06-26 12:47:55 -04:00
Nathan Fisher
af49f327ec Add Id type for creating unique message identifiers; Change DateTime
to only deal with instants after the Unix epoch and simplify the math.
2023-06-26 00:16:05 -04:00
Nathan Fisher
64b5051341 Fix permissions setting for new account folder creation in the
`Filesystem` storage backend
2023-06-23 18:47:44 -04:00
Nathan Fisher
c6675cb024 Create error type for Filesystem instead of using io::Error; Fix
creation of user account folder so that the entire directory has
the correct permissions, bot just the Inbox folder
2023-06-23 12:21:59 -04:00
f17bda9349 Added long doc comment for Filesystem storage type 2023-06-23 10:04:40 -04:00
Nathan Fisher
3a25914ec5 Added create_folder method to MailStore trait; Add code to set
restrictive permissions on mail account folders;
2023-06-23 00:13:56 -04:00
Nathan Fisher
dcb182e4d0 Merge branch 'odin' of codeberg.org:jeang3nie/Dory into odin 2023-06-22 19:07:38 -04:00
Nathan Fisher
e1239fea58 Partially implement ClientCertificateStore for Filesystem 2023-06-22 19:04:51 -04:00
3d0dd96f14 Added a lot of doc strings identifying various modules 2023-06-22 11:25:55 -04:00
Nathan Fisher
b957138048 Finished tests for Filesystem mailstore 2023-06-22 00:50:51 -04:00
Nathan Fisher
8af4a5bc39 Added some tests for Filestore 2023-06-21 02:17:09 -04:00
Nathan Fisher
12b10e382e Complete some functions marked as todo in mailstore module 2023-06-21 01:21:19 -04:00
2d3f5ab718 Fix error which crept in due to daylight savings and me trying to be
clever about it.
2023-06-13 11:39:36 -04:00
Nathan Fisher
8c6e15a0c3 Properly handle timezone offsets; Implement conversion to/from Unix
timestamps (i64);
2023-06-11 22:48:02 -04:00
03ac43b821 Remove two print debug statements 2023-06-11 01:48:05 -04:00
3dcb5b6991 Parse DateTime from Unix timestamp 2023-06-11 01:45:15 -04:00
c905e20b36 Miscellaneous cleanups 2023-06-11 00:18:28 -04:00
5c82b53a28 Use DateTime struct in GemtextNode::Timestamp 2023-06-10 10:21:26 -04:00
2bf74ecbab impl PartialOrd for DateTime 2023-06-10 01:13:52 -04:00
931d384e05 Added time::parser tests for basuc format 2023-06-10 00:28:37 -04:00
Nathan Fisher
de27339b73 Added some tests for time::Parser 2023-06-10 00:08:33 -04:00
Nathan Fisher
0bbd11aa03 Finish time::parser and begin adding tests 2023-06-09 19:05:43 -04:00
db1680d46f Rethink Time parser, iterating over characters 2023-06-09 10:31:58 -04:00
Nathan Fisher
230b8ac48a Progress on Time parser 2023-06-09 02:19:55 -04:00
Nathan Fisher
669fa0889b Add several parser methods for Time 2023-06-09 01:54:50 -04:00
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