File tree Expand file tree Collapse file tree 3 files changed +5
-4
lines changed Expand file tree Collapse file tree 3 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ is-it-maintained-open-issues = { repository = "async-email/async-imap" }
22
22
default = []
23
23
24
24
[dependencies ]
25
- imap-proto = " 0.10 "
25
+ imap-proto = " 0.11 "
26
26
nom = " 5.0"
27
27
base64 = " 0.12"
28
28
chrono = " 0.4"
Original file line number Diff line number Diff line change @@ -111,7 +111,7 @@ impl<R: Read + Write + Unpin> ImapStream<R> {
111
111
let res = ResponseData :: try_new ( block, |buf| {
112
112
let buf = & buf[ ..self . buffer . used ( ) ] ;
113
113
log:: trace!( "decode: input: {:?}" , std:: str :: from_utf8( buf) ) ;
114
- match imap_proto:: parse_response ( buf) {
114
+ match imap_proto:: parser :: parse_response ( buf) {
115
115
Ok ( ( remaining, response) ) => {
116
116
// TODO: figure out if we can use a minimum required size for a response.
117
117
self . decode_needs = None ;
Original file line number Diff line number Diff line change @@ -239,6 +239,7 @@ pub(crate) async fn parse_mailbox<T: Stream<Item = io::Result<ResponseData>> + U
239
239
MailboxDatum :: List { .. } => { }
240
240
MailboxDatum :: MetadataSolicited { .. } => { }
241
241
MailboxDatum :: MetadataUnsolicited { .. } => { }
242
+ MailboxDatum :: Search { .. } => { }
242
243
} ,
243
244
_ => {
244
245
handle_unilateral ( resp, unsolicited. clone ( ) ) . await ;
@@ -263,7 +264,7 @@ pub(crate) async fn parse_ids<T: Stream<Item = io::Result<ResponseData>> + Unpin
263
264
{
264
265
let resp = resp?;
265
266
match resp. parsed ( ) {
266
- Response :: IDs ( cs ) => {
267
+ Response :: MailboxData ( MailboxDatum :: Search ( cs ) ) => {
267
268
for c in cs {
268
269
ids. insert ( * c) ;
269
270
}
@@ -333,7 +334,7 @@ mod tests {
333
334
let mut block = crate :: imap_stream:: POOL . alloc ( line. as_bytes ( ) . len ( ) ) ;
334
335
block. copy_from_slice ( line. as_bytes ( ) ) ;
335
336
ResponseData :: try_new ( block, |bytes| -> io:: Result < _ > {
336
- let ( remaining, response) = imap_proto:: parse_response ( bytes) . unwrap ( ) ;
337
+ let ( remaining, response) = imap_proto:: parser :: parse_response ( bytes) . unwrap ( ) ;
337
338
assert_eq ! ( remaining. len( ) , 0 ) ;
338
339
Ok ( response)
339
340
} )
You can’t perform that action at this time.
0 commit comments