Revert "Release first 3.0.0 alpha"

This reverts commit 8490407d2e.
This commit is contained in:
Jon Gjengset 2021-03-06 15:35:00 -08:00
parent 8490407d2e
commit 7860b14088
4 changed files with 11 additions and 21 deletions

View file

@ -44,6 +44,6 @@ required-features = ["default"]
name = "imap_integration"
required-features = ["default"]
# [patch.crates-io]
# # https://github.com/djc/tokio-imap/pull/115
# imap-proto = { git = "https://github.com/jonhoo/tokio-imap.git", branch = "moo" }
[patch.crates-io]
# https://github.com/djc/tokio-imap/pull/115
imap-proto = { git = "https://github.com/jonhoo/tokio-imap.git", branch = "moo" }

View file

@ -1395,8 +1395,7 @@ impl<T: Read + Write> Connection<T> {
tag,
status,
information,
// TODO: https://github.com/djc/tokio-imap/pull/115
// code,
code,
..
},
)) => {
@ -1404,18 +1403,11 @@ impl<T: Read + Write> Connection<T> {
Some(match status {
Status::Bad | Status::No => Err((
status,
information.map(|v| v.to_string()),
// TODO: https://github.com/djc/tokio-imap/pull/115
// code.map(|v| v.into_owned()),
None,
information.map(|v| v.into_owned()),
code.map(|v| v.into_owned()),
)),
Status::Ok => Ok(()),
status => Err((
status, None,
// TODO: https://github.com/djc/tokio-imap/pull/115
// code.map(|v| v.into_owned()),
None,
)),
status => Err((status, None, code.map(|v| v.into_owned()))),
})
}
Ok((..)) => None,

View file

@ -14,7 +14,7 @@ use crate::client::*;
use crate::error::{Error, ParseError, Result};
use crate::parse::handle_unilateral;
use crate::types::*;
use imap_proto::types::{MailboxDatum, Metadata, Response};
use imap_proto::types::{MailboxDatum, Metadata, Response, ResponseCode};
use std::io::{Read, Write};
use std::sync::mpsc;
@ -200,8 +200,7 @@ impl<T: Read + Write> Session<T> {
{
match code {
None => None,
// TODO: https://github.com/djc/tokio-imap/pull/116
// Some(ResponseCode::MetadataLongEntries(v)) => Some(v),
Some(ResponseCode::MetadataLongEntries(v)) => Some(v),
Some(_) => None,
}
} else {

View file

@ -1,7 +1,6 @@
use imap_proto::{MailboxDatum, Response, ResponseCode};
use lazy_static::lazy_static;
use regex::Regex;
use std::borrow::Cow;
use std::collections::HashSet;
use std::sync::mpsc;
@ -81,8 +80,8 @@ pub fn parse_names(
name,
}) => Ok(MapOrNot::Map(Name {
attributes: flags.into_iter().map(NameAttribute::from).collect(),
delimiter: delimiter.map(Cow::Borrowed),
name: Cow::Borrowed(name),
delimiter,
name,
})),
resp => Ok(MapOrNot::Not(resp)),
};