Commit graph

103 commits

Author SHA1 Message Date
Crispin Stichart
b22ce3a605 Add support for Gmail Labels 2022-04-12 11:33:02 -05:00
Jon Gjengset
afbc5118f2 Release alpha 6 2022-02-19 12:18:25 -08:00
Jon Gjengset
9fdff81d19 Bump to 2021 edition 2022-02-19 11:06:33 -08:00
Jon Gjengset
7b553fcb19 Bump dependencies 2022-02-19 11:05:35 -08:00
Jon Gjengset
7091cea742 Move CI to GitHub Actions 2022-02-19 10:59:01 -08:00
Todd Mortimer
3f2331423c Rework Name and Fetch to use ouroboros.
Use a helper function in `parse_many_into` to support parsing into
any container that implements Extend. Refactor Capabilities to use it.

Delete ZeroCopy and associated bits.

Move Flag into it's own module in types.
2021-07-17 16:32:26 -04:00
Todd Mortimer
c2d3aed978 Convert Capabilities to ouroboros. 2021-07-05 20:11:36 -04:00
mordak
b7a2641725
Change "tls" feature to "native-tls" (#201)
Change "tls" feature to "native-tls" for clarity and obvious distinction with rustls-tls.
2021-05-24 21:46:49 -04:00
Jon Gjengset
25801b3d65
Release 3.0-alpha.4 with new ClientBuilder 2021-05-10 19:40:51 -07:00
mordak
7204697dd9
Add ClientBuilder helper to make setting up TLS connections easy. (#197)
Also replaces connect() and connect_starttls() with ClientBuilder.
2021-05-10 22:39:46 -04:00
ValHeimer
18ebf56c0c
3.0.0-alpha.3: missing 'std' feature for 'chrono' (#195)
Hi,

Since the commit 514735e920 which remove the "default features" for the dependency 'chrono', I now have this error : 

```
imap-3.0.0-alpha.3/src/client.rs:202:37
    format!(" \"{}\"", date.format("%d-%h-%Y %T %z"))
                              ^^^^ method not found in `DateTime<FixedOffset>>` 
```

So I think we have to add back the 'std' feature to 'chrono'
```
chrono = {version = "0.4", default-features = false, features = ["std"]}
```

(I know that I could add this dependency to my project Cargo.toml (and I did), but I think this should be in rust-imap)
2021-04-21 09:42:42 -07:00
Jon Gjengset
400e80a104
Release 3.0 alpha.3 with new IDLE interface 2021-04-19 19:35:01 -07:00
Todd Mortimer
48db46106c Merge remote-tracking branch 'origin/master' into idle-responses 2021-04-19 20:51:43 -04:00
Todd Mortimer
1cabb3bb56 Promote Unexpected error from ParseError to Error. 2021-04-19 20:39:59 -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
2874bfd933 Add IDLE example. 2021-03-28 15:27:39 -04:00
Jon Gjengset
bd0a04567b
Bump imap-proto 2021-03-14 18:10:15 -07:00
Jon Gjengset
3b8c239984 Adopt newly released imap-proto changes 2021-03-08 18:00:00 -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
9b78550394 Adopt latest imap_proto and expose error status codes 2021-03-06 14:53:14 -08:00
Jon Gjengset
137f3de14f
Merge branch 'master' into mod_seq_vanished 2021-03-06 12:40:30 -05:00
Jon Gjengset
7e2ab19409 Prepare for 3.0.0 alpha 2021-03-06 09:36:43 -08:00
Jon Gjengset
bf9191527f
Release 2.4.1 2021-01-12 20:32:23 -08:00
Jon Gjengset
3386c26711
Bump version for append_with_date 2020-12-15 08:29:57 -08:00
Todd Mortimer
c49e78b4d0 Update imap-proto and nom dependencies.
Add support for HIGHESTMODSEQ (RFC 4551) and VANISHED (RFC 7162),
which allows users to quickly synchronize to a mailbox by fetching
only changes since the last known highest mod sequence.
2020-11-11 11:37:33 -05:00
Jon Gjengset
7868e312ff
Release 2.3.0 with append_with_flags 2020-08-23 12:11:57 -04:00
Jon Gjengset
6c43b19f60
Release 2.2.0 2020-07-27 09:33:49 -04:00
Jon Gjengset
fbdb5d3be4
Use type alias for better docs 2020-05-18 14:11:03 -04:00
Jon Gjengset
bba277b29d
Release with handling of unilateral FLAGS 2020-05-18 14:08:54 -04:00
Jon Gjengset
de796b2d39
Bump version for new, richer wait_with_timeout 2020-05-12 08:43:05 -04:00
Jon Gjengset
3db3e8b69e
Bump outdated dev-dep 2020-05-12 08:42:32 -04:00
Jon Gjengset
22f9ba0ddf
Bump version for Dovecot IDLE fix 2020-04-20 10:32:12 -04:00
Jon Gjengset
1b7ba0b0b1
Bump version for new Error impls (#158) 2020-03-30 09:37:17 -04:00
Jon Gjengset
e417c526b0
Bump dependencies 2020-03-30 09:36:36 -04:00
Jon Gjengset
3a594e1ce6
Bump version for breaking release
This includes the imap-proto 0.11 `&str` -> `&[u8]` change, and the
`Capability` changes in imap-proto 0.10 (and #133).
2020-02-20 12:50:22 -05:00
Jon Gjengset
949ea3bd6b
Bump dependencies
This also pulls in imap-proto 0.11, which exposes message envelopes as
`&[u8]` instead of `&str`. This directly affects our public API.
2020-02-20 12:49:25 -05:00
Bryce Fisher-Fleig
f15bdfb458 (feat) default feature for native_tls (aka openssl)
Establishes conditional compilation for all integration with the
native_tls crate in this crate. Since native_tls has been deeply
integrated into this crate for a long time, we want to maintain
backwards compatibility by making this feature part of the default.

For a consumer of this crate to "opt-out", including this in
cargo.toml:

```
[dependencies.imap]
version = 0.16.0        # Replace this with the correct version
default-features = false
```

See the conversation on Github for details on this approach:
https://github.com/jonhoo/rust-imap/issues/123
2019-09-24 08:13:17 -07:00
Bryce Fisher-Fleig
76bcf02997 Remove unnecessary dotenv dependency 2019-09-18 09:04:01 -07:00
Bryce Fisher-Fleig
beb41d2f52 (feat) Provide example integration with Rustls crate
By checking this code in as an example, we can prevent bitrot as we continuously test this
in CI. It also demonstrates how to setup TLS without relying on platform specific dependencies
via native_tls crate.
2019-09-17 12:51:38 -07:00
Alexander Krotov
2221cd2e18
Update imap-proto and test that "IMAP4REV1" capability is accepted
See issue https://github.com/djc/tokio-imap/issues/54
2019-09-04 18:08:12 +03:00
Jon Gjengset
7fabf34c22
Move to Azure Pipelines 2019-09-03 11:51:46 -04:00
avitex
ff48dc9755
Decrease alloc on auth resp parsing 2019-09-03 23:41:57 +10:00
Jon Gjengset
2aa8c87e35
Move to 2018 edition 2019-09-03 09:35:15 -04:00
avitex
1303618565
Update imap-proto dependency 2019-09-02 23:06:37 +10:00
Jon Gjengset
2ce63ef17d
Bump version for #113 2019-06-28 17:41:29 -04:00
Baudouin Feildel
e9f6a33bd5 Add Fetch.internal_date method (#113)
This method gives the parsed internal date from the FETCH answer.
2019-06-28 17:39:10 -04:00
Jon Gjengset
fec0fbae6e
Bump version for #119 2019-04-29 12:46:13 -04:00