mirror of
https://github.com/stalwartlabs/mail-server.git
synced 2026-03-28 13:18:18 +08:00
IMAP: Return ALREADYEXISTS code
Some checks failed
Scorecard supply-chain security / Scorecard analysis (push) Failing after 5s
Some checks failed
Scorecard supply-chain security / Scorecard analysis (push) Failing after 5s
This commit is contained in:
parent
8ab1a6779a
commit
5f5c2f8241
1 changed files with 2 additions and 1 deletions
|
|
@ -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));
|
||||
}
|
||||
|
||||
(
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue