Commit graph

323 commits

Author SHA1 Message Date
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
1c51fbe3ac
Make clippy happy again 2019-09-02 23:44:18 +10:00
avitex
1c348a4ffa
Make has_str input generic 2019-09-02 23:02:51 +10:00
avitex
ff8e638591
Fix dyn warnings 2019-09-02 23:01:40 +10:00
Lucas
3a5c2e9d91
Implemented new enumerated Capabilities from imap-proto crate. 2019-09-02 23:00:40 +10:00
Jon Gjengset
0250e3e2b2
Make clippy happy again 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
466c06c1f2
Avoid unnecessary import 2019-04-29 12:07:04 -04:00
Niklas Claesson
b35823da7c Fix quoting issue in LIST command 2019-04-28 21:59:55 +02:00
Jon Gjengset
c0e1fbba0c
Avoid duplicating unilateral response handling 2019-03-18 21:43:30 -04:00
Jon Gjengset
b0ac079c30
rustfmt 2019-03-18 21:37:39 -04:00
Jon Gjengset
a7a2798bf1
Merge pull request #110 from Emm54321/fix-noop
Handle unsolicited responses in noop.
2019-03-18 21:35:43 -04:00
Jon Gjengset
85d34f3735
Move to travis-ci.com 2019-03-17 12:46:14 -04:00
Jon Gjengset
5577fa678e
for old Rust too 2019-03-17 12:43:11 -04:00
Jon Gjengset
1dd4b31fa2
clippy 2019-03-17 12:39:29 -04:00
Emmanuel Lesueur
5df0759446 Handle unsolicited responses in noop. 2019-03-16 13:31:52 +01:00
Seo Sanghyeon
d01eb40de0 Fix uid_fetch doc 2019-02-22 01:48:50 +09:00
Jon Gjengset
ead7d2173b
rustfmt beta 2018-12-10 10:14:09 -05: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
1b086d40de
Prep for 2018 edition [skip ci] 2018-11-28 09:44:01 -05:00
Jon Gjengset
86d4da84d7
Note that we support older stable versions
[skip ci]
2018-11-24 15:16:29 -05:00
Jon Gjengset
b6e9ea080b
Make crate compile on Rust 1.26.2+ 2018-11-24 14:17:15 -05:00
Jon Gjengset
a610283861
Fix nightly clippy warning 2018-11-24 12:45:07 -05:00
Jon Gjengset
5dc51ac6b1
Show example of how to use store to delete 2018-11-22 17:57:56 -05:00
Jon Gjengset
357603b15f
Empty string != "" 2018-11-22 17:57:41 -05:00
Jon Gjengset
2b17bc0538
Make all public methods generic over str ref 2018-11-22 17:57:05 -05:00
Jon Gjengset
bce4831ccb
Clippy clean 2018-11-22 14:27:07 -05:00
Jon Gjengset
fc935bf884
Simplify fetch a little 2018-11-22 14:03:29 -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
de5a38366c [BUGFIX] Expect a space after the "+" in Client::authenticate.
RFC 3501: A continue-req from the server starts with "+" SP.
2018-11-17 07:37:33 +00:00
Kim Minh Kaplan
033c23ef11 Document that Authenticator does the Base64 encoding and decoding. 2018-11-10 09:15:23 +00: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
9e0a5d7c8a Escape '+' character in regexp. 2018-11-09 22:35:22 +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
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
Jon Gjengset
b45beb88ed
Fix #93; why doesn't this fail for me or CI? 2018-11-03 16:03:32 -04:00
Johannes Schilling
8d7b527331 more tests and more handling for unsolicited responses 2018-11-01 21:49:14 +01:00
Johannes Schilling
930bd86dbf pass unsolicited responses channel by reference
as suggested in
https://github.com/mattnenterprise/rust-imap/pull/91#issuecomment-434055085
2018-11-01 21:47:50 +01:00
Johannes Schilling
f98398aecf send unsolicited responses to a channel instead of discarding them
notes

  * i tried to avoid the term "async", because that term is very
    overloaded and we're not using e.g. tokio/async-io here
  * i'm a little unhappy having to string the channel through the
    parser, because that seems rather a part of the client logic than
    parsing. on the other hand it's better than passing the whole
    client, so there's that at least.
2018-11-01 21:46:49 +01:00
Jon Gjengset
5c91f4c1bb
Move to new nom + tokio-proto 2018-10-31 21:15:19 -04:00
Jon Gjengset
e68d61a1e2
rustfmt 2018-10-31 21:15:13 -04:00
Jon Gjengset
510dab9604
Merge pull request #87 from mtorromeo/feature-uid_expunge
client: Add UID EXPUNGE support
2018-10-08 12:19:37 -04:00
Jon Gjengset
a9e993f98b
Merge pull request #88 from mtorromeo/feature-move
client: Add MOVE and UID MOVE support
2018-10-06 12:14:52 -04:00
Massimiliano Torromeo
201269423d
Renamed uid_move to uid_mv 2018-10-06 10:02:10 +02:00
Jon Gjengset
20d3ce0277
Fix compiler warning 2018-10-05 14:53:31 -04:00
Jon Gjengset
a10769feba
Tidy up search a little
There's no reason to carry around a ZeroCopy here, since we own all the
values.
2018-10-05 14:53:12 -04:00
Massimiliano Torromeo
11e666ea91
Use imap_proto to parse the search responses into a HashSet of ids 2018-10-05 18:20:59 +02:00