Commit graph

537 commits

Author SHA1 Message Date
Todd Mortimer
9126d3c15b Improve documentation around unhandled responses.
UnsolicitedResponse is not exhaustive, and open an issue if you find one
that isn't handled.
2021-04-06 21:54:52 -04:00
Jon Gjengset
4108917c58
Merge pull request #189 from alexwennerberg/master
Remove unused features from chrono, nom
2021-04-06 21:31:33 -04:00
alex wennerberg
bce16aae66 Remove default-features from nom 2021-04-05 23:48:35 -07:00
alex wennerberg
514735e920 Remove unused features from chrono 2021-04-05 23:36:20 -07:00
Todd Mortimer
ff39ebf58d Merge branch 'idle-responses' of github.com:mordak/rust-imap into idle-responses 2021-04-05 16:12:47 -04:00
Todd Mortimer
064c2e08dc Use drain() instead of reallocating. 2021-04-05 16:10:32 -04:00
Todd Mortimer
e1db863691 Add helper function to transform a vec of flag strings into a vec of Flags.
Also use it where we were previously iterating manually.
2021-04-05 15:59:12 -04:00
Todd Mortimer
b8bd1e4cc7 Reorder UnsolicitedResponse alphabetically so it is easier to follow. 2021-04-05 15:39:38 -04:00
Todd Mortimer
e8a7c918c0 Comment example where we turn on debugging. 2021-04-05 15:33:48 -04:00
Todd Mortimer
bb38142ab3 Change callback_stop to stop_on_any. 2021-04-05 15:29:56 -04:00
Todd Mortimer
bbff7d45b8 Remove deprecated wait_timeout() 2021-04-05 15:27:20 -04:00
Todd Mortimer
5e3f087007 Merge remote-tracking branch 'origin/master' into idle-responses 2021-04-05 15:23:50 -04:00
mordak
c9b7c0a3e6
Update src/extensions/idle.rs
Co-authored-by: Jon Gjengset <jon@thesquareplanet.com>
2021-04-05 07:03:06 -05:00
Jon Gjengset
2653c82768
Greenmail 1.6.3 everywhere
Fixes #187.
2021-03-31 21:21:39 -07:00
Jon Gjengset
cf658df38c
Merge pull request #188 from mordak/clippy_lines
Remove redundant slice.
2021-04-01 00:20:09 -04:00
Todd Mortimer
35ddb48d3b Remove redundant slice.
Thanks clippy.
2021-03-28 18:19:57 -04:00
Todd Mortimer
2874bfd933 Add IDLE example. 2021-03-28 15:27:39 -04:00
Todd Mortimer
529401a36d Implement a method to pass unilateral responses while IDLE.
While IDLE, the server sends unilateral responses to notify the client of
changes to the mailbox as they happen. Instead of always exiting the IDLE
on any change, allow the caller to pass a callback function which receives
the messages and returns an action to either Continue IDLE or Stop and exit.

For clients wishing to use the previous behaviour, a callback_stop convenience
function is provided that terminates the IDLE on any change to the mailbox.
2021-03-28 15:27:39 -04:00
Jon Gjengset
39a78fdea4
Merge pull request #184 from mordak/try_handle_unsolicited
Try handle unsolicited & clippy
2021-03-20 20:18:18 -04:00
Todd Mortimer
d0e61c73e9 Appease clippy. 2021-03-20 14:26:52 -04:00
Todd Mortimer
ec835d67e4 Rename handle_unilateral to try_handle_unilateral.
More accurately conveys that the function might not actually handle it.
2021-03-20 14:21:13 -04:00
Jon Gjengset
bd0a04567b
Bump imap-proto 2021-03-14 18:10:15 -07:00
Jon Gjengset
fa30a90827
Handle other MailboxDatum 2021-03-14 11:02:03 -07:00
Jon Gjengset
4e166fd8e2
Merge pull request #181 from deantvv/doc-docker
Doc: match image version from docker pull
2021-03-14 14:00:47 -04:00
Dean Li
8f9b5ee939 Doc: match image version from docker pull 2021-03-14 10:37:11 +08:00
Jon Gjengset
3b8c239984 Adopt newly released imap-proto changes 2021-03-08 18:00:00 -08:00
Jon Gjengset
dba3508c49 Reminder to self about changelog 2021-03-06 15:36:35 -08:00
Jon Gjengset
731c92cce3 Prepare for next alpha 2021-03-06 15:35:31 -08:00
Jon Gjengset
7860b14088 Revert "Release first 3.0.0 alpha"
This reverts commit 8490407d2e.
2021-03-06 15:35:00 -08:00
Jon Gjengset
8490407d2e Release first 3.0.0 alpha 2021-03-06 15:34:42 -08:00
Jon Gjengset
5b8e461eb6 Future-proof Flag for more variants 2021-03-06 15:30:23 -08:00
Jon Gjengset
a709e2714b Recommend newer greenmail 2021-03-06 15:24:49 -08:00
Jon Gjengset
9634fa9b4a envs -> env 2021-03-06 15:20:21 -08:00
Jon Gjengset
c06e018be3 Try harder for coverage 2021-03-06 15:15:39 -08:00
Jon Gjengset
6e19d3a6d9 Note looking for maintainers 2021-03-06 15:08:14 -08:00
Jon Gjengset
68931f9d37 Does coverage work again? 2021-03-06 15:05:20 -08:00
Jon Gjengset
ef842b7f08 Re-generate README 2021-03-06 15:04:33 -08:00
Jon Gjengset
18ca65dd3f Expose mailbox read-only flag 2021-03-06 15:02:48 -08:00
Jon Gjengset
9b78550394 Adopt latest imap_proto and expose error status codes 2021-03-06 14:53:14 -08:00
Jon Gjengset
d543993062 Fix CI link 2021-03-06 10:56:33 -08:00
Jon Gjengset
abf820bfb9 Much better metadata docs 2021-03-06 10:54:22 -08:00
Jon Gjengset
6fbbcb88f3 Fix up metadata depth enum 2021-03-06 09:51:18 -08:00
Jon Gjengset
9a24ca4125 Fix compile with newer imap_proto 2021-03-06 09:48:11 -08:00
Jon Gjengset
3cf13d2260 cargo fmt 2021-03-06 09:44:56 -08:00
Jon Gjengset
076d7ae274
Merge pull request #149 from open-xchange/metadata-merge
Adding METADATA support
2021-03-06 12:44:08 -05:00
Jon Gjengset
a466e947bd
Merge branch 'master' into metadata-merge 2021-03-06 12:43:43 -05:00
Jon Gjengset
17055d02a5
Merge pull request #172 from mordak/mod_seq_vanished
Support HIGHESTMODSEQ and VANISHED
2021-03-06 12:40:39 -05:00
Jon Gjengset
137f3de14f
Merge branch 'master' into mod_seq_vanished 2021-03-06 12:40:30 -05:00
Jon Gjengset
0a2f7407f2
Merge pull request #175 from mblarsen/refactor/squash-append-cmd
refactor: squash append command
2021-03-06 12:39:29 -05:00
Jon Gjengset
37ef477e4a
Merge pull request #163 from jonhoo/more-unilaterals
More unilaterals
2021-03-06 12:38:18 -05:00