Cleanup and remove useless imports
This commit is contained in:
parent
9ef069923b
commit
733c59ed80
8 changed files with 7 additions and 30 deletions
|
@ -69,8 +69,6 @@ impl<'a> AnonymousContext<'a> {
|
|||
Ok(c) => c,
|
||||
};
|
||||
|
||||
let s3_client = creds.s3_client();
|
||||
let k2v_client = creds.k2v_client();
|
||||
let user = User::new(u.clone(), creds)?;
|
||||
|
||||
tracing::info!(username=%u, "connected");
|
||||
|
|
|
@ -1,16 +1,13 @@
|
|||
use anyhow::{Error, Result};
|
||||
use boitalettres::proto::{res::body::Data as Body, Request, Response};
|
||||
use anyhow::Result;
|
||||
use boitalettres::proto::{Request, Response};
|
||||
use imap_codec::types::command::CommandBody;
|
||||
use imap_codec::types::core::Atom;
|
||||
use imap_codec::types::flag::Flag;
|
||||
use imap_codec::types::mailbox::{ListMailbox, Mailbox as MailboxCodec};
|
||||
use imap_codec::types::response::{Code, Data, Status};
|
||||
use imap_codec::types::response::Code;
|
||||
|
||||
use crate::imap::command::anonymous;
|
||||
use crate::imap::flow;
|
||||
use crate::imap::mailbox_view::MailboxView;
|
||||
|
||||
use crate::mail::mailbox::Mailbox;
|
||||
use crate::mail::user::User;
|
||||
|
||||
pub struct AuthenticatedContext<'a> {
|
||||
|
|
|
@ -11,7 +11,6 @@ use crate::imap::command::authenticated;
|
|||
use crate::imap::flow;
|
||||
use crate::imap::mailbox_view::MailboxView;
|
||||
|
||||
use crate::mail::mailbox::Mailbox;
|
||||
use crate::mail::user::User;
|
||||
|
||||
pub struct SelectedContext<'a> {
|
||||
|
|
|
@ -2,7 +2,6 @@ use std::error::Error as StdError;
|
|||
use std::fmt;
|
||||
|
||||
use crate::imap::mailbox_view::MailboxView;
|
||||
use crate::mail::mailbox::Mailbox;
|
||||
use crate::mail::user::User;
|
||||
|
||||
#[derive(Debug)]
|
||||
|
|
|
@ -1,11 +1,9 @@
|
|||
use std::sync::Arc;
|
||||
|
||||
use anyhow::{Error, Result};
|
||||
use boitalettres::proto::{res::body::Data as Body, Request, Response};
|
||||
use imap_codec::types::command::CommandBody;
|
||||
use boitalettres::proto::res::body::Data as Body;
|
||||
use imap_codec::types::core::Atom;
|
||||
use imap_codec::types::flag::Flag;
|
||||
use imap_codec::types::mailbox::{ListMailbox, Mailbox as MailboxCodec};
|
||||
use imap_codec::types::response::{Code, Data, Status};
|
||||
|
||||
use crate::mail::mailbox::Mailbox;
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
use std::convert::TryFrom;
|
||||
|
||||
use anyhow::Result;
|
||||
use k2v_client::K2vClient;
|
||||
use rusoto_s3::S3Client;
|
||||
|
|
|
@ -3,18 +3,6 @@ pub mod uidindex;
|
|||
pub mod unique_ident;
|
||||
pub mod user;
|
||||
|
||||
use std::convert::TryFrom;
|
||||
|
||||
use anyhow::Result;
|
||||
use k2v_client::K2vClient;
|
||||
use rusoto_s3::S3Client;
|
||||
|
||||
use crate::bayou::Bayou;
|
||||
use crate::cryptoblob::Key;
|
||||
use crate::login::Credentials;
|
||||
use crate::mail::uidindex::*;
|
||||
use crate::mail::unique_ident::*;
|
||||
|
||||
// Internet Message Format
|
||||
// aka RFC 822 - RFC 2822 - RFC 5322
|
||||
pub struct IMF<'a> {
|
||||
|
|
|
@ -65,17 +65,17 @@ impl User {
|
|||
}
|
||||
|
||||
/// Creates a new mailbox in the user's IMAP namespace.
|
||||
pub fn create_mailbox(&self, name: &str) -> Result<()> {
|
||||
pub fn create_mailbox(&self, _name: &str) -> Result<()> {
|
||||
unimplemented!()
|
||||
}
|
||||
|
||||
/// Deletes a mailbox in the user's IMAP namespace.
|
||||
pub fn delete_mailbox(&self, name: &str) -> Result<()> {
|
||||
pub fn delete_mailbox(&self, _name: &str) -> Result<()> {
|
||||
unimplemented!()
|
||||
}
|
||||
|
||||
/// Renames a mailbox in the user's IMAP namespace.
|
||||
pub fn rename_mailbox(&self, old_name: &str, new_name: &str) -> Result<()> {
|
||||
pub fn rename_mailbox(&self, _old_name: &str, _new_name: &str) -> Result<()> {
|
||||
unimplemented!()
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue