Mercurial > dovecot > original-hg > dovecot-1.2
diff src/imap/cmd-append.c @ 4041:9d7420b0e1ef HEAD
Make life easier for plugins:
- Added MAILBOX_OPEN_SAVEONLY flag for mailbox_open(), which is set when mailbox is opened only for append/copy
- Added a couple of MAIL_STORAGE_ERR_* string defines that should be used when giving visible errors to clients
- Added failed-flag for mailbox_list_context, which plugins can directly set to make mail_storage_mailbox_list_deinit() return failure
- Added mail_storage_get_mailbox_path() and mail_storage_get_mailbox_control_dir() to return locations for mailbox directories
Also be more strict when validating mailbox names.
author | Timo Sirainen <timo.sirainen@movial.fi> |
---|---|
date | Wed, 22 Feb 2006 16:52:11 +0200 |
parents | 7d7b0f427d68 |
children | da1d65e064f8 |
line wrap: on
line diff
--- a/src/imap/cmd-append.c Wed Feb 22 15:58:43 2006 +0200 +++ b/src/imap/cmd-append.c Wed Feb 22 16:52:11 2006 +0200 @@ -365,8 +365,8 @@ mailbox_equals(cmd->client->mailbox, storage, name)) return cmd->client->mailbox; - box = mailbox_open(storage, name, NULL, MAILBOX_OPEN_FAST | - MAILBOX_OPEN_KEEP_RECENT); + box = mailbox_open(storage, name, NULL, MAILBOX_OPEN_SAVEONLY | + MAILBOX_OPEN_FAST | MAILBOX_OPEN_KEEP_RECENT); if (box == NULL) { client_send_storage_error(cmd, storage); return NULL;