search for: mail_storage_get_last_error

Displaying 6 results from an estimated 6 matches for "mail_storage_get_last_error".

2010 Nov 26
1
Mailbox Delete
...space_find(namespaces, &name); if (ns != NULL){ box = mailbox_alloc(ns->list, name, 0); if (mailbox_delete(box) < 0) { struct mail_storage *storage = mailbox_get_storage(box); i_error("Can't delete mailbox %s: %s", name,mail_storage_get_last_error(storage, NULL)); } if (mailbox_mark_index_deleted(box, TRUE) < 0){ struct mail_storage *storage = mailbox_get_storage(box); i_error("Can't delete INDEX %s: %s", name,mail_storage_get_last_error(storage, NULL)); }...
2007 Sep 25
1
deliver w/quotas - MDN after accept mail?
I'm testing deliver with sendmail and fs quotas. On an over quota condition, deliver accepts the mail, deletes it, then issues a MDN immediately. Is there a way to get deliver to soft fail like procmail does with a 400 error and queue the mail, then let sendmail handle the MDN, following it's "confTO_QUEUEWARN" and "confTO_QUEUERETURN" ? Thanks, Ken -- Ken
2014 Jul 22
1
Defer email via LMTP when there is 'no space left on device' instead of rejecting it
...;, if I read this part of method "static int client_deliver(struct client *client, const struct mail_recipient *rcpt, struct mail *src_mail, struct mail_deliver_session *session)" "lmtp/commands.c" correctly: --- cut --- [...] else if (storage != NULL) { error = mail_storage_get_last_error(storage, &mail_error); if (mail_error == MAIL_ERROR_NOSPACE) { client_send_line(client, "%s <%s> %s", dctx.set->quota_full_tempfail ? "452 4.2.2&quot...
2003 Apr 16
1
pop3 coredump
...einit = 0x804c800 <maildir_list_mailbox_deinit>, list_mailbox_next = 0x804cc48 <maildir_list_mailbox_next>, set_subscribed = 0x8064594 <subsfile_set_subscribed>, get_mailbox_name_status = 0x804bffc <maildir_get_mailbox_name_status>, get_last_error = 0x805455c <mail_storage_get_last_error>, dir = 0x8082100 "/users/48/user9/Maildir", inbox_file = 0x0, index_dir = 0x8082120 "/users/48/user9/Maildir", user = 0x808e050 "user9", error = 0x0, callbacks = 0x8082140, callback_context = 0x0, syntax_error = 0} (gdb) p ibox $6 = (struct index_mailbo...
2007 Sep 02
4
IMAP: Disconnected: BUG: Unknown internal error (Dovecot 1.0.3)
Hi, I am getting the following error in the server mail logfile: > Sep 2 18:39:44 h648123 dovecot: IMAP(<account>)(<PID>): Disconnected: BUG: Unknown internal error (mail_debug is on, but there is not really much context for this in the log file, ie. no log events for several minutes, and then it appears, all of a sudden). On the client side, it looks like this (with some
2010 Apr 09
4
Patch: support URLAUTH, BURL, CATENATE
...ufctx->cmd->client->output_squelch = FALSE; + + if (ufctx->failed) { + if (ufctx->cmd->client->output->closed) + client_disconnect(ufctx->cmd->client, "Disconnected"); + else { + const char *error_string; + enum mail_error error; + + error_string = mail_storage_get_last_error( + ufctx->storage, &error); + + /* We never want to reply NO to FETCH requests, + BYE is preferrable (see imap-ml for reasons). */ + client_disconnect_with_error(ufctx->cmd->client, + error_string); + } + } else { + client_send_line(ufctx->cmd->client, str_...