Mercurial > dovecot > original-hg > dovecot-1.2
diff src/deliver/deliver.c @ 6023:56879cc53cec HEAD
mail_storage.create() now returns error message string. Also fixed handling
"/" and empty root paths.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Sun, 15 Jul 2007 15:30:00 +0300 |
parents | 28836909b3b0 |
children | cd0f9be6f8ad |
line wrap: on
line diff
--- a/src/deliver/deliver.c Sun Jul 15 15:27:58 2007 +0300 +++ b/src/deliver/deliver.c Sun Jul 15 15:30:00 2007 +0300 @@ -555,7 +555,7 @@ const char *envelope_sender = DEFAULT_ENVELOPE_SENDER; const char *mailbox = "INBOX"; const char *auth_socket; - const char *home, *destination, *user, *value; + const char *home, *destination, *user, *value, *error; struct mail_namespace *ns, *mbox_ns; struct mail_storage *storage; struct mailbox *box; @@ -738,8 +738,8 @@ mbox_ns = mail_namespaces_init_empty(namespace_pool); if (mail_storage_create(mbox_ns, "mbox", "/tmp", destination, - 0, FILE_LOCK_METHOD_FCNTL) < 0) - i_fatal("Couldn't create internal mbox storage"); + 0, FILE_LOCK_METHOD_FCNTL, &error) < 0) + i_fatal("Couldn't create internal mbox storage: %s", error); input = create_mbox_stream(0, envelope_sender); box = mailbox_open(mbox_ns->storage, "Dovecot Delivery Mail", input, MAILBOX_OPEN_NO_INDEX_FILES |