aboutsummaryrefslogtreecommitdiff
path: root/src/mail
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2022-06-29 16:05:34 +0200
committerAlex Auvolat <alex@adnab.me>2022-06-29 16:05:34 +0200
commit733c59ed8060f8903d723635ed2e7c13ccca7974 (patch)
tree0090b72c1c347a7168a825341683481f0d1845cc /src/mail
parent9ef069923bbf7358caf1f2739befe20adbdca760 (diff)
downloadaerogramme-733c59ed8060f8903d723635ed2e7c13ccca7974.tar.gz
aerogramme-733c59ed8060f8903d723635ed2e7c13ccca7974.zip
Cleanup and remove useless imports
Diffstat (limited to 'src/mail')
-rw-r--r--src/mail/mailbox.rs2
-rw-r--r--src/mail/mod.rs12
-rw-r--r--src/mail/user.rs6
3 files changed, 3 insertions, 17 deletions
diff --git a/src/mail/mailbox.rs b/src/mail/mailbox.rs
index ca672da..0a4df57 100644
--- a/src/mail/mailbox.rs
+++ b/src/mail/mailbox.rs
@@ -1,5 +1,3 @@
-use std::convert::TryFrom;
-
use anyhow::Result;
use k2v_client::K2vClient;
use rusoto_s3::S3Client;
diff --git a/src/mail/mod.rs b/src/mail/mod.rs
index 7bee703..bbb553a 100644
--- a/src/mail/mod.rs
+++ b/src/mail/mod.rs
@@ -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> {
diff --git a/src/mail/user.rs b/src/mail/user.rs
index 7b51623..f1d0477 100644
--- a/src/mail/user.rs
+++ b/src/mail/user.rs
@@ -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!()
}
}