Commit graph

67 commits

Author SHA1 Message Date
Jon Gjengset
e417c526b0
Bump dependencies 2020-03-30 09:36:36 -04: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
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
Bryce Fisher-Fleig
76bcf02997 Remove unnecessary dotenv dependency 2019-09-18 09:04:01 -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
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
7fabf34c22
Move to Azure Pipelines 2019-09-03 11:51:46 -04: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
1303618565
Update imap-proto dependency 2019-09-02 23:06:37 +10:00
Jon Gjengset
2ce63ef17d
Bump version for #113 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
ba09886e3b
Release 0.10.1 as 1.0.0
We're stable enough at this point that a 1.0 is warranted.
2019-03-18 22:29:26 -04:00
Jon Gjengset
ac526f4db2
Release 0.10.1 2019-03-18 22:28:21 -04:00
Jon Gjengset
eaa9426578
Use newly released upstream lettre 0.9 2019-03-17 12:12:54 -04:00
Jon Gjengset
67ee2f5175
Bump version for imap-proto fixes
- A `NIL` hierarchy delimiter in a `Name` is now properly parsed and exposed as `None`
 - `RFC822.TEXT` responses are now returned by `Fetch::text()`.
2018-12-07 16:34:57 -05:00
Jon Gjengset
30079d8b9b
Release 0.9.5 2018-11-24 15:22:53 -05:00
Jon Gjengset
a2b0773622
Remove AppVeyor now that Travis does Windows
[skip ci]
2018-11-24 14:17:30 -05:00
Jon Gjengset
e7e20c08e9
Merge branch 'integration-testing' 2018-11-23 13:55:57 -05:00
Jon Gjengset
6aa7c30167
Quick'n'dirty fix for missing lettre release 2018-11-23 13:55:36 -05:00
Jon Gjengset
c7a6a72ed7
Add is-it-maintained badges
[skip ci]
2018-11-22 22:02:21 -05:00
Jon Gjengset
c393fd7162
Add Travis integration testing
This uses [GreenMail's Docker
image](http://www.icegreen.com/greenmail/#deploy_docker_standalone) to
spin up a real SMTP+IMAP server on Travis, and then runs a series of
integration tests against it by sending e-mails using
[`lettre`](https://crates.io/crates/lettre) and checking that we can
receive them correctly.

A start on #101.
2018-11-22 20:56:41 -05:00
Jon Gjengset
8299a6be9d
Bump version for repository move 2018-11-22 20:55:25 -05:00
Jon Gjengset
3fbf52ef54
Bump version for string changes and "" fix 2018-11-22 17:58:38 -05:00
Jon Gjengset
35acfeb108
Fix up README 2018-11-22 14:46:31 -05:00
Jon Gjengset
bce4831ccb
Clippy clean 2018-11-22 14:27:07 -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
28e4201eb3
Merge pull request #97 from kmkaplan/issue-95-authenticate-base64
imap::client::Client::authenticate: Base64 encode the result of the A…
2018-11-10 16:56:44 -05:00
Kim Minh Kaplan
93d032181d imap::client::Client::authenticate: Base64 encode the result of the Authenticator.
Fixes issue #95.
2018-11-07 11:05:48 +00:00
Dom Corvasce
2bbae94573
Update native-tls requested version 2018-11-01 11:25:35 +01:00
Jon Gjengset
5c91f4c1bb
Move to new nom + tokio-proto 2018-10-31 21:15:19 -04:00
Victor Koenders
bbd3c085af Updated references 2018-08-26 14:43:04 +02: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
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
Matt McCoy
8bcd2d2d28 Bumping version from 0.5.0 -> 0.6.0
Bumping the version because openssl was swapped for native-tls
in #43.
2017-10-01 19:54:00 -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
ba2eb75ddd
Bump base64 dev-dependency; 0.2 is old 2017-09-30 21:32:39 -04:00
Matt McCoy
8a97392cb3 Bumping version from 0.4.1 -> 0.5.0
Bumping version because of updates to the IDLE
API made in #41
2017-09-29 22:38:47 -04:00
Jon Gjengset
50b6267a35 Add more info to Cargo.toml (#42)
crates.io also requires a version change for this to be made visible.
2017-09-29 22:26:49 -04:00
Jon Gjengset
300cfc04f8 Use docs.rs for documentation (#40)
* Use docs.rs for documentation

This would also allow deleting the `gh-pages` branch (which is pretty large).
I'd also recommend adding `badges` and `categories` to make the crates.io page more useful (see [this](http://www.integer32.com/2017/01/20/categories-and-ci-badges.html)), but I'll leave that up to you.

* Remove more references to old docs
2017-09-28 17:19:54 -04:00
Matt McCoy
6a2aed4054 Bumping version from 0.3.3 -> 0.4.0
Bumping version because of change to use BufStream for
better I/O handling.
2017-09-27 17:47:35 -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
3e017da4af Bump version from 0.3.2 -> 0.3.3 2017-07-12 20:59:31 -04:00
Matt McCoy
62cef4a773 Bumping version from 0.3.1 -> 0.3.2 after fixing readline bug 2017-06-20 19:16:23 -04:00