diff options
author | Quentin Dufour <quentin@deuxfleurs.fr> | 2024-01-08 07:52:45 +0100 |
---|---|---|
committer | Quentin Dufour <quentin@deuxfleurs.fr> | 2024-01-08 07:52:45 +0100 |
commit | 35fd24ee46d8162cffe3aebcb32d0db1f35bd220 (patch) | |
tree | fc26e99207f7b4eded035cf0d54a0001c92e714c /src/mail/user.rs | |
parent | 1d84b0ffd006b895aeb15c621fcd0ced826a0599 (diff) | |
download | aerogramme-35fd24ee46d8162cffe3aebcb32d0db1f35bd220.tar.gz aerogramme-35fd24ee46d8162cffe3aebcb32d0db1f35bd220.zip |
Add the ENABLE capability, reduce wild loggingfeat/search
Diffstat (limited to 'src/mail/user.rs')
-rw-r--r-- | src/mail/user.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mail/user.rs b/src/mail/user.rs index da0d509..5af86d0 100644 --- a/src/mail/user.rs +++ b/src/mail/user.rs @@ -71,10 +71,15 @@ impl User { /// Opens an existing mailbox given its IMAP name. pub async fn open_mailbox(&self, name: &str) -> Result<Option<Arc<Mailbox>>> { let (mut list, ct) = self.load_mailbox_list().await?; + + //@FIXME it could be a trace or an opentelemtry trace thing. + // Be careful to not leak sensible data + /* eprintln!("List of mailboxes:"); for ent in list.0.iter() { eprintln!(" - {:?}", ent); } + */ if let Some((uidvalidity, Some(mbid))) = list.get_mailbox(name) { let mb = self.open_mailbox_by_id(mbid, uidvalidity).await?; |