Commit graph

463 commits

Author SHA1 Message Date
Jon Gjengset
271599bb78
Merge pull request #150 from open-xchange/body-structure-exposure-merge
Add bodystructure exposing function to Fetch structure.
2019-10-29 09:54:42 -04:00
sergey
18526ffb61 Add bodystructure exposing function to Fetch structure. 2019-10-29 13:55:07 +02:00
Friedel Ziegelmayer
465481de88 fix(auth): handle single + response (#145) 2019-10-21 10:49:15 -04:00
Friedel Ziegelmayer
0e5aa5c004 feat: expose read_greeting (#144)
This is sometimes needed when manually using `Client::new()`.

We enforce that the greeting is read at most once.
2019-10-21 10:13:39 -04:00
Jon Gjengset
3eebdca788
Merge pull request #147 from Lem/fix_typ_status
Fix typo in documentation
2019-10-18 14:58:42 -04:00
Lem
39b8087b3c
Update src/client.rs
Fix typo in fix for typo.

It's not 'data_times' or 'data_itmes'. It should be 'data_items'!

Co-Authored-By: Jon Gjengset <jon@thesquareplanet.com>
2019-10-18 20:31:34 +02:00
Lemm
e41b235387 Fix typo in documentation
data_times should be data_items for
function "status"
2019-10-18 20:23:10 +02:00
Jon Gjengset
7aa5aa7edb
Merge pull request #140 from brycefisher/feat/cargo-feature-nativetls
(feature) Allow opt-out from `native_tls` crate
2019-09-24 19:20:34 -04:00
Bryce Fisher-Fleig
6fcc189d11 (nit) cargo fmt 2019-09-24 08:13:17 -07:00
Bryce Fisher-Fleig
97671062ee (doc) Explain how and why to opt out of native_tls
Also point out the examples/rustlts.rs file for pure Rust TLS goodness
2019-09-24 08:13:17 -07:00
Bryce Fisher-Fleig
29fece1221 (security) Remove connect_insecure
In order to discourage folks from connecting securely, we're removing the
convenience method imap::connect_insecure.

Fear not\! For those who manage security in another way (aka a private network
or similar measures), it is still possible to connect without TLS by using the
imap::Client::new() method. See that method for examples of how to do this.
2019-09-24 08:13:17 -07: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
Jon Gjengset
c8288ea19b
Merge pull request #138 from brycefisher/feat/rustls-support
(feat) Provide example integration with Rustls crate
2019-09-18 12:23:31 -04:00
Bryce Fisher-Fleig
76bcf02997 Remove unnecessary dotenv dependency 2019-09-18 09:04:01 -07:00
Bryce Fisher-Fleig
6f9b66b927 FIXUP - bump compiler version to support ring
The underlying Rust library for crypto `ring` using multiple
`#[cfg_attr()]` properties together which stabilized in rust 1.33.0:
https://github.com/rust-lang/rust/blob/stable/RELEASES.md#language-4

Previously, everything else in this could be compiled with rust 1.32.0,
so this may constitute a breaking change.
2019-09-17 22:21:09 -07:00
Bryce Fisher-Fleig
e3123476f5 (nit) Cargo fmt 2019-09-17 20:14:29 -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
Jon Gjengset
281d2eb8ab
Merge pull request #137 from link2xt/imap4rev1-case
Update imap-proto and test that "IMAP4REV1" capability is accepted
2019-09-04 11:23:19 -04: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
6c9611ff3a
Merge pull request #136 from avitex/master
Make capabilities has_str case insensitive
2019-09-04 09:23:09 -04:00
avitex
c5f4495be7
Make capabilities has_str case insensitive 2019-09-04 20:25:51 +10:00
Jon Gjengset
8ac9f8d079
Just comment it out 2019-09-03 12:16:36 -04:00
Jon Gjengset
5de7a70fc8
Don't run coverage for now
We need https://github.com/greenmail-mail-test/greenmail/issues/284 to
be resolved first, because native-tls uses an up-to-date openssl
version, which rejects Greenmail's cert
2019-09-03 12:14:37 -04:00
Jon Gjengset
533d2dd5f9
Move off of travis 2019-09-03 11:52:01 -04:00
Jon Gjengset
7fabf34c22
Move to Azure Pipelines 2019-09-03 11:51:46 -04:00
Jon Gjengset
f55674b522
Make it actually compile 2019-09-03 11:51:38 -04:00
Jon Gjengset
a1bc689504
Maybe make coverage tests work? 2019-09-03 11:48:59 -04:00
Jon Gjengset
fd5d76391d
YAML whitespace 2019-09-03 11:18:43 -04:00
Jon Gjengset
cd2c3a58c5
Not localhost from coverage container 2019-09-03 11:18:10 -04:00
Jon Gjengset
327eed8b97
Need to install beta/nightly too 2019-09-03 10:53:30 -04:00
Jon Gjengset
0778a38717
greenmail for coverage too 2019-09-03 10:52:44 -04:00
Jon Gjengset
23fc4dd947
Don't randomize ports 2019-09-03 10:47:47 -04:00
Jon Gjengset
5dd6991ba0
oops 2019-09-03 10:41:57 -04:00
Jon Gjengset
73a3587747
Add azure pipelines 2019-09-03 10:39:19 -04:00
Jon Gjengset
4bbf320e2e
Merge pull request #135 from avitex/improve-auth-parsing
Improve auth resp parsing
2019-09-03 10:11:10 -04:00
avitex
caf3990c10
Fix grammar 2019-09-03 23:41:58 +10: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
Jon Gjengset
31e2490d22
Merge pull request #133 from avitex/master
Capability enum changes from imap-proto
2019-09-02 10:39:24 -04:00
avitex
1c51fbe3ac
Make clippy happy again 2019-09-02 23:44:18 +10:00
avitex
1303618565
Update imap-proto dependency 2019-09-02 23:06:37 +10:00
avitex
1c348a4ffa
Make has_str input generic 2019-09-02 23:02:51 +10:00
avitex
ff8e638591
Fix dyn warnings 2019-09-02 23:01:40 +10:00
Lucas
3a5c2e9d91
Implemented new enumerated Capabilities from imap-proto crate. 2019-09-02 23:00:40 +10:00
Jon Gjengset
2ce63ef17d
Bump version for #113 2019-06-28 17:41:29 -04:00
Jon Gjengset
0250e3e2b2
Make clippy happy again 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
Jon Gjengset
466c06c1f2
Avoid unnecessary import 2019-04-29 12:07:04 -04:00
Jon Gjengset
7f3a83a50c
Bump min Rust for assoc trait items w/aliases 2019-04-29 11:46:57 -04:00