aboutsummaryrefslogtreecommitdiff
path: root/src/imap
diff options
context:
space:
mode:
authorQuentin Dufour <quentin@deuxfleurs.fr>2022-06-27 16:56:20 +0200
committerQuentin Dufour <quentin@deuxfleurs.fr>2022-06-27 16:56:20 +0200
commit390bad0ec451a571e119903054b581a9d9a00cbe (patch)
tree467fdf3ade0325b8c69ea8350a2f15fa181d8981 /src/imap
parentd3f8a6627ca13a020bac9936d1f40a18239b6d6d (diff)
downloadaerogramme-390bad0ec451a571e119903054b581a9d9a00cbe.tar.gz
aerogramme-390bad0ec451a571e119903054b581a9d9a00cbe.zip
Refactor files in a "mail" crate
Diffstat (limited to 'src/imap')
-rw-r--r--src/imap/command/authenticated.rs2
-rw-r--r--src/imap/command/selected.rs2
-rw-r--r--src/imap/flow.rs2
3 files changed, 3 insertions, 3 deletions
diff --git a/src/imap/command/authenticated.rs b/src/imap/command/authenticated.rs
index 5924f53..0b1f01e 100644
--- a/src/imap/command/authenticated.rs
+++ b/src/imap/command/authenticated.rs
@@ -9,7 +9,7 @@ use imap_codec::types::response::{Code, Data, Response as ImapRes, Status};
use crate::imap::command::anonymous;
use crate::imap::flow;
use crate::imap::session::InnerContext;
-use crate::mailbox::Mailbox;
+use crate::mail::Mailbox;
const DEFAULT_FLAGS: [Flag; 5] = [
Flag::Seen,
diff --git a/src/imap/command/selected.rs b/src/imap/command/selected.rs
index fb6a75d..e44bf36 100644
--- a/src/imap/command/selected.rs
+++ b/src/imap/command/selected.rs
@@ -9,7 +9,7 @@ use imap_codec::types::sequence::SequenceSet;
use crate::imap::command::authenticated;
use crate::imap::flow;
use crate::imap::session::InnerContext;
-use crate::mailbox::Mailbox;
+use crate::mail::Mailbox;
pub async fn dispatch<'a>(
inner: InnerContext<'a>,
diff --git a/src/imap/flow.rs b/src/imap/flow.rs
index f0ec7d1..bd4c484 100644
--- a/src/imap/flow.rs
+++ b/src/imap/flow.rs
@@ -2,7 +2,7 @@ use std::error::Error as StdError;
use std::fmt;
use crate::login::Credentials;
-use crate::mailbox::Mailbox;
+use crate::mail::Mailbox;
pub struct User {
pub name: String,