Commit graph

32 commits

Author SHA1 Message Date
comex
55cd6465c7
Support parsing STATUS responses. (v2) (#192)
Fixes #185.
2021-05-16 18:12:16 -04: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
mordak
c443a3ab5d
Fix doc warnings. (#198) 2021-05-07 22:07:34 -04:00
Todd Mortimer
1cabb3bb56 Promote Unexpected error from ParseError to Error. 2021-04-19 20:39:59 -04:00
Jon Gjengset
9b78550394 Adopt latest imap_proto and expose error status codes 2021-03-06 14:53:14 -08:00
Jon Gjengset
abf820bfb9 Much better metadata docs 2021-03-06 10:54:22 -08:00
Todd Mortimer
b11b08954c Fix clippy manual_non_exhaustive lint. 2020-11-11 11:34:42 -05: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
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
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
avitex
ff8e638591
Fix dyn warnings 2019-09-02 23:01:40 +10:00
Jon Gjengset
5dd9dfe469
Even more doc updates 2018-11-22 14:00:58 -05:00
Jon Gjengset
f83742dc3d
A significant documentation upgrade
Fixes #77.
Touches on #74.
Fixes #70 through documentation (I think?)
Fixes #62.
2018-11-21 16:37:47 -05:00
Jon Gjengset
1d4d6288c1
rustfmt 2018-04-03 13:01:35 -04:00
Jon Gjengset
590b80e3a6 Add structured results for all values using imap-proto (#58)
* First stab at structured types (#28)

Tests currently fail due to djc/imap-proto#2.

LSUB is also broken due to djc/imap-proto#4 (but we don't have tests for
that atm).

* Also parse out RFC822 fetch responses

* Make all the things zero-copy

* Also delegate IntoIterator for ZeroCopy ref

* Fix UNSEEN and LSUB

All tests now pass

* Address @sanmai-NL comments

* Correctly handle incomplete parser responses

* No need for git dep anymore
2018-02-09 11:22:20 -05:00
Jon Gjengset
4332d09f0d
cargo fmt 2017-11-02 22:56:22 -04:00
rhn
5acf34c3b4 Ensures that some operations don't accept invalid data.
Invalid characters in input strings are \r and \n, according to RFC3501 section 4.3.
2017-11-02 21:15:48 +01:00
rhn
c899986685 Make Bad Response error print the actual response 2017-11-02 21:15:48 +01:00
Sander Maijers
0779d3b15e
Don’t panic on receiving data not encoded in UTF-8
Return a `Result` instead.
2017-10-30 20:57:06 -04:00
Jon Gjengset
7c95ae76d6 Swap openssl for native-tls (#43)
* Replace openssl with native-tls

* Add From<TlsError> to allow builder()?

* Update AppVeyor config

* No email since it's not configured
2017-10-01 19:53:03 -04:00
Jon Gjengset
8383b47f35 Use BufStream for better I/O handling (#39)
* Use bufstream for better read/write

* Read with length 0 == EOF

* Adapt read_delay test to write one chat at a time

* Add test for eof reads

* Neater interface for MockStream
2017-09-27 17:38:51 -04:00
Matt McCoy
86e1d46507 rustfmt the codebase (#36)
This will ensure that we are properly formatting this library code according to rust standards
2017-07-10 21:38:13 -04:00
Jos van den Oever
08c2b6847b Add APPEND call. (#30) 2017-05-02 22:08:24 -04:00
drevilt
dc3b4f92e6 update to openssl 0.8 and unspecify micro versions (#22) 2017-03-02 17:08:54 -05:00
Matt McCoy
8a1162ada4 Initial testing for authentication 2016-06-28 21:48:25 -04:00
Matt McCoy
8653a02b87 Adding initial work for authentication 2016-06-26 22:40:15 -04:00
Matt McCoy
378b4bbb96 Adding errors for parsing problems 2016-06-24 19:38:04 -04:00
Matt McCoy
56edd6c46b Adding some comments and cleaning up imports 2016-06-24 09:54:03 -04:00
Matt McCoy
aa989ce0e5 Fixing some extra imports 2016-06-23 22:56:22 -04:00
Matt McCoy
6c826625fd Initial work for adding errors 2016-06-23 22:44:12 -04:00