Christian Krause
45a8fcf27e
Add note about server greeting to Client::new
2020-06-22 08:03:56 +02:00
Jon Gjengset
24ca28703f
Merge pull request #169 from jonhoo/ci-fixes
...
Make CI pass on `master` again
2020-06-21 15:05:22 -04:00
Jon Gjengset
f0ebe4b568
Update remote CI deps
2020-06-21 13:23:57 -04:00
Jon Gjengset
e6268cbc47
Bump MSRV
2020-06-21 13:21:16 -04:00
Jon Gjengset
008dfdccfa
Merge pull request #165 from rvuong/added-starttls-example
...
Added: STARTTLS example
2020-05-20 09:15:45 -04:00
Remy Vuong
1b38401878
Changed: description update, plus code formatting
2020-05-20 08:34:13 +02:00
Remy Vuong
e46b9dcfa1
Added: STARTTLS example
2020-05-19 18:24:08 +02:00
Jon Gjengset
aafdcfaceb
Merge pull request #164 from rvuong/fixes-a-minor-typo
...
Changed: a typo was fixed
2020-05-19 10:27:51 -04:00
Remy Vuong
d6a6592420
Changed: a typo was fixed
2020-05-19 10:41:38 +02:00
Jon Gjengset
fbdb5d3be4
Use type alias for better docs
2020-05-18 14:11:03 -04:00
Jon Gjengset
464c59e6c1
Expunge holds a Seq
2020-05-18 14:10:28 -04:00
Jon Gjengset
bba277b29d
Release with handling of unilateral FLAGS
2020-05-18 14:08:54 -04:00
Jon Gjengset
1c30076326
Merge pull request #162 from jonhoo/unilateral-flags
...
FLAGS can be sent as unilateral response
2020-05-18 14:08:16 -04:00
Jon Gjengset
b74bfa79c6
FLAGS can be sent as unilateral response
...
Fixes #161 (well, the side-issue in #161 ).
2020-05-18 14:03:16 -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
2639a1df63
Fix BSD ci
2020-05-12 08:41:12 -04:00
Jon Gjengset
c2062a5f07
Merge pull request #159 from mredaelli/master
...
Support timing out wait on IDLE
2020-05-12 08:40:39 -04:00
Massimo Redaelli
80a0aae69d
Support timing out wait on IDLE
2020-05-12 09:53:13 +02:00
Jon Gjengset
22f9ba0ddf
Bump version for Dovecot IDLE fix
2020-04-20 10:32:12 -04:00
Jon Gjengset
d6f6615935
Merge pull request #160 from mordak/idle-ok-still-here
...
Handle Dovecot's periodic IDLE notification messages ("OK Still here").
2020-04-20 10:31:33 -04:00
Todd Mortimer
746bdfe6b9
Handle Dovecot's periodic IDLE notification messages ("OK Still here").
...
These messages show up at an interval controlled by Dovecot's
imap_idle_notify_interval setting, which defaults to 2 minutes.
These messages were causing the IDLE loop to exit prematurely
because it looks like a notification response from the server.
2020-04-19 10:25:41 -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
f0908029c4
Merge pull request #158 from mordak/error-display
...
Make Display implementation independent of Error::description
2020-03-30 09:35:05 -04:00
Jon Gjengset
0961ffc1b8
Allow errors on nightly
2020-03-30 09:34:20 -04:00
Todd Mortimer
41c0eb91d6
Make Display implementation independent of deprecated Error::description.
...
Allow use of deprecated in existing Error::description implementation to
suppress warnings.
2020-03-29 19:27:07 -04:00
Jon Gjengset
94327c4e02
Merge pull request #156 from jonhoo/breaking-release
...
Prepare breaking release (2.0)
2020-02-20 13:06:48 -05: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
Jon Gjengset
3ee0952723
Merge pull request #154 from dmeijboom/master
...
When authenticating using SASL XAUTH2 with Gmail fails
2020-02-20 12:37:30 -05:00
Dillen Meijboom
391caf042a
Ignore server comments
2020-02-20 17:22:53 +01:00
Jon Gjengset
71b60dbb3a
Merge pull request #155 from jonhoo/fix-ci
...
Fix CI
2020-02-20 10:41:16 -05:00
Jon Gjengset
39f93ca05f
Fix up CI to use new fancy Azure Pipelines CI
2020-02-20 10:29:00 -05:00
Jon Gjengset
031233ab59
Merge pull request #153 from Celti/starttls
...
Add `imap::connect_starttls` convenience function
2019-11-30 11:22:17 -05:00
Celti Burroughs
a4b03568be
Add imap::connect_starttls convenience function
...
Add a `imap::connect_starttls` convenience function, with the same
syntax as `imap::connect`, to make STARTTLS connections as easily as
IMAPS.
PR#140 removed `imap::connect_insecure` with the stated goal of
encouraging users to connect securely. With that change, users are
forced to construct their own `TcpStream`s when interacting with
non-IMAPS servers.
This change may perversely incentivise the use of insecure connections,
instead of discouraging them, as users may blindly copy-paste code
involving `Client::new` and `TcpStream`s so things "just work", without
the visual indicator of `_insecure` suggesting something is wrong.
Tangentially, [RFC 2595] encourages using STARTTLS instead of raw SSL
sockets. Ideally, we should support both options equally well.
[RFC 2595]: https://tools.ietf.org/html/rfc2595#section-7
2019-11-30 05:18:05 -07:00
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