mirror of
https://github.com/stalwartlabs/stalwart.git
synced 2026-03-17 14:34:03 +00:00
IMAP: Return ALREADYEXISTS code
This commit is contained in:
@@ -228,7 +228,8 @@ impl<T: SessionStream> SessionData<T> {
|
||||
if account.mailbox_names.contains_key(&full_path) {
|
||||
return Err(trc::ImapEvent::Error
|
||||
.into_err()
|
||||
.details(format!("Mailbox '{}' already exists.", full_path)));
|
||||
.details(format!("Mailbox '{}' already exists.", full_path))
|
||||
.code(ResponseCode::AlreadyExists));
|
||||
}
|
||||
|
||||
(
|
||||
|
||||
Reference in New Issue
Block a user