Commit graph

32 commits

Author SHA1 Message Date
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
bce4831ccb
Clippy clean 2018-11-22 14:27:07 -05: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
Kim Minh Kaplan
c2c7e2a3f7 In Authenticator::process change the challenge from a Vec<u8> to a &[u8] 2018-11-10 08:54:46 +00:00
Kim Minh Kaplan
892fe49a68 Decode the Base64 AUTHENTICATE challenge 2018-11-09 22:35:22 +00:00
Kim Minh Kaplan
1dd55ff066 Move Authenticator to returning an AsRef<u8>. 2018-11-09 22:35:12 +00:00
Johannes Schilling
515d574742 src/lib.rs: sync code in doc-comment with examples/basic.rs
is there some way to include the code directly from examples/basic.rs?
2018-08-29 17:37:57 +02:00
Johannes Schilling
abad1f4171 adjust examples to the latest changes 2018-08-29 16:08:53 +02:00
Johannes Schilling
3d6dd58f19 adjust examples to Client/UnauthenticatedClient splitup 2018-08-11 13:41:48 +02:00
Shaun Savage
a11c4e5673 TlsConnector::build() unwrap() not needed 2018-06-26 20:10:11 +00:00
Jon Gjengset
1d4d6288c1
rustfmt 2018-04-03 13:01:35 -04:00
Curtis McEnroe
6b4461eb07
Borrow TlsConnector
TlsConnector is meant to be reusable and there is no reason to take
ownership over one.
2018-03-18 22:18:15 -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
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
e65bbe1006
rustfmt. fixes #29 2017-09-30 17:58:30 -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
Matt McCoy
3b6816b732 Updating version 2017-05-02 21:57:45 -04:00
drevilt
89a8d0eaf3 update to openssl 0.9 (#31) 2017-05-01 15:39:12 -04:00
Matt McCoy
04bbb957ef Add comment to reference secure gmail connection 2016-07-14 16:32:44 -04:00
Matt McCoy
ed03acf07d Fixing formatting for gmail_oauth2 example 2016-06-29 19:38:55 -04:00
Matt McCoy
c8f4437ee0 Fixing the example README.md 2016-06-29 18:57:46 -04:00
Matt McCoy
b593d943ef Updating README.md and the basic example 2016-06-29 18:53:23 -04:00
Matt McCoy
4b8a294689 Fixing examples README.md 2016-06-29 18:48:50 -04:00
Matt McCoy
8d39bfd343 Hardening the oauth2 example for gmail 2016-06-28 22:29:55 -04:00
Matt McCoy
8a1162ada4 Initial testing for authentication 2016-06-28 21:48:25 -04:00
Matt McCoy
8418983253 Adding README.md to examples 2016-06-24 20:56:11 -04:00
Matt McCoy
bf5031e8c4 Removing complicated printing of mailbox 2016-06-24 20:51:42 -04:00
Matt McCoy
5dec8b79ac Cleaning up more of the basic example 2016-06-24 20:42:40 -04:00
Matt McCoy
964d7c99ef Making the basic example more readable 2016-06-24 20:40:56 -04:00
Matt McCoy
080bcebfb8 Moving basic example into examples directory 2016-06-21 23:31:31 -04:00