Commit graph

349 commits

Author SHA1 Message Date
Jon Gjengset
61ffb00811
Merge pull request #85 from VictorKoenders/master
Updated cargo references
2018-08-26 11:42:58 -04:00
Victor Koenders
bbd3c085af Updated references 2018-08-26 14:43:04 +02:00
Johannes Schilling
3d6dd58f19 adjust examples to Client/UnauthenticatedClient splitup 2018-08-11 13:41:48 +02:00
Johannes Schilling
820d1eccf7 client: separate out UnauthenticatedClient, InnerClient
fixes #80 (client separation)
2018-08-11 12:38:50 +02:00
Jon Gjengset
72925cf1d8
Handle unilateral server responses
Fixes #81.
2018-07-21 12:29:50 -04:00
Jon Gjengset
4c4fd89232
rustfmt 2018-07-21 12:29:34 -04:00
Jon Gjengset
dea9398e08
Don't crash when parsing empty result
Partial fix for #81.
2018-07-18 16:14:35 -04:00
Jon Gjengset
c095ee2aa0
Merge pull request #76 from greenpdx/master
Add passing back the email in [u8]
2018-06-28 12:49:29 -04:00
Shaun Savage
0cfa46d896 changed email to body 2018-06-28 16:39:12 +00:00
Shaun Savage
4bdfe96915 changed email to body 2018-06-28 16:36:07 +00:00
Shaun Savage
adb35b5a54
Merge pull request #1 from greenpdx/body
Added passing email with fetch
2018-06-28 09:23:05 -07:00
Jon Gjengset
72ee4aabe3
Merge pull request #75 from greenpdx/master
changed try! to ?
2018-06-28 12:19:48 -04:00
Shaun Savage
7fcb920bd7 fixed unused var warning 2018-06-28 16:09:35 +00:00
Shaun Savage
e81f26e39d added accessor 2018-06-28 16:06:13 +00:00
Shaun Savage
4a855720e4 added passing back the email data 2018-06-28 15:53:37 +00:00
Shaun Savage
ba8afa7918 changed try! to ? 2018-06-27 23:17:49 +00:00
Jon Gjengset
d1ed629676
Merge pull request #73 from greenpdx/master
update native-tls version
2018-06-27 11:14:04 -04:00
Shaun Savage
923e01279a remove unwrap() 2018-06-26 20:23:11 +00:00
Shaun Savage
a11c4e5673 TlsConnector::build() unwrap() not needed 2018-06-26 20:10:11 +00:00
Shaun Savage
0f8f83e641 update native-tls version 2018-06-26 18:47:53 +00:00
Jon Gjengset
d132de4834
New imap-proto 2018-04-27 16:27:38 -04:00
Jon Gjengset
c28d08851c
Bump version for new imap-proto 2018-04-27 10:56:03 -04:00
Matt McCoy
0bf8e5dd10 Bump version from 0.7.0 -> 0.8.0 2018-04-03 20:57:17 -04:00
Jon Gjengset
210a12b791
Used wrong doc badge link 2018-04-03 13:04:44 -04:00
Jon Gjengset
6888dda451
Check all things in CI (inc. examples) 2018-04-03 13:03:51 -04:00
Jon Gjengset
73c8d0ddc2
Move README example into src/lib.rs
This way it'll be run as a doctest and we'll know if it breaks (again).

Fixes #67.
2018-04-03 13:01:59 -04:00
Jon Gjengset
1d4d6288c1
rustfmt 2018-04-03 13:01:35 -04:00
Jon Gjengset
6e47ceb171
Merge pull request #66 from programble/fix/borrow-tls
Borrow TlsConnector
2018-03-19 11:58:22 -05: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
804f1c724a
Merge pull request #65 from mordak/fix-debug
Fix debug output when Client.debug = true
2018-02-24 17:48:29 -05:00
todd
a2df6fffd8 When printing debug info, slice from the start of the line to the CRLF 2018-02-24 16:06:37 -05:00
Matt McCoy
9031caf677 Bump for new changes 2018-02-09 11:25:18 -05: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
dc21eae428
Workaround for travis-ci/travis-ci#9061 2018-01-22 19:55:38 -05:00
Jon Gjengset
4332d09f0d
cargo fmt 2017-11-02 22:56:22 -04:00
Jon Gjengset
bf53267149
Merge pull request #57 from rhn/validation
Validation of input strings
2017-11-02 20:22:39 -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
Jon Gjengset
d9caeccc57
Merge pull request #56 from rhn/quote-password
Escape password and other astring tokens
2017-11-02 16:09:53 -04:00
rhn
ed47ae34b7 Replace tabs with 4-spaces 2017-11-02 21:06:13 +01:00
rhn
61485c9036 Quotes various astring tokens as per RFC 3501
Some notable exceptions: messagebox names are defined as `INBOX / astring`, but with this change, INBOX is also quoted.
The `list-mailbox` token is not quoted, as it is not `astring`.
2017-11-02 21:05:29 +01:00
rhn
13316f33b8 Uses raw string for quote!, and adds qoute! tests. 2017-11-02 20:43:12 +01:00
Giulio Collura
1ad1f1f847 Escape password according to RFC3501
Rebased by rhn <gihu.rhn@porcupinefactory.org>
2017-11-02 20:42:08 +01:00
Jon Gjengset
542ee159a4
Remove questionable Ord derives 2017-10-30 20:57:26 -04:00
Sander Maijers
dc7ad26ac1
Make types eagerly implement common traits
See https://rust-lang-nursery.github.io/api-guidelines/interoperability.html#types-eagerly-implement-common-traits-c-common-traits
2017-10-30 20:57:06 -04: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
Greizgh
a29874d41b
Update readme to use native_tls 2017-10-30 20:57:06 -04:00
Matt McCoy
c7a1fa647e Add OSX build on Travis CI
Just to make sure we can build on OSX.
2017-10-04 20:13:31 -04:00
Matt McCoy
9ff36c3bef Update and add badges to README (#47)
Adding badges for the number of crate downloads
and license. Also updating the crate badge to
be retreived from img.shields.io.
2017-10-04 20:06:57 -04:00
Jon Gjengset
f72c28aab7 Use cargo-tarpaulin instead of kcov/cargo-travis (#46) 2017-10-04 19:47:31 -04:00