Displaying 6 results from an estimated 6 matches for "mailbox_get_storag".
Did you mean:
mailbox_get_storage
2010 Nov 26
1
Mailbox Delete
...ces, const char
*name)
{
struct mail_namespace *ns;
struct mailbox *box;
ns = mail_namespace_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...
2010 May 20
1
Patch for logging variables
....2.11.orig/src/imap/cmd-close.c
dovecot-1.2.11/src/imap/cmd-close.c
*** dovecot-1.2.11.orig/src/imap/cmd-close.c 2010-01-24 16:14:17.000000000 -0700
--- dovecot-1.2.11/src/imap/cmd-close.c 2010-05-19 16:26:31.529833893 -0600
***************
*** 18,24 ****
client->mailbox = NULL;
storage = mailbox_get_storage(mailbox);
! if ((ret = imap_expunge(mailbox, NULL)) < 0)
client_send_untagged_storage_error(client, storage);
if (mailbox_sync(mailbox, 0, 0, NULL) < 0)
client_send_untagged_storage_error(client, storage);
--- 18,24 ----
client->mailbox = NULL;
storage = mailbox_get_sto...
2010 May 19
1
logging
I am looking through the logging options and wondering if there are a
couple of things that we can do
1. Logouts don't seem to show the IP address of the logout, we
typically see multiple sessions at a time and wondering if there is a
way to tie the logouts to an IP
2. POP logouts show the number of messages retrieved/deleted but I
don't see a way to do this with IMAP, is there a logout
2010 Jul 16
2
lda with sieve crash
Hi,
my colleague found a crash in dovecot, while he was experimenting with
configuration for using dovecot with fetchmail. Backtrace can be found here:
http://pastebin.com/XQZqYBpH
Let me know if you need any other info.
Michal
# doveconf -n
# 20100716 (26936bdd3801+): /etc/dovecot/dovecot.conf
# OS: Linux 2.6.32
auth_debug = yes
auth_verbose = yes
info_log_path = /var/log/dovecot-info.log
2006 Oct 09
1
patch: mailboxcasecmp()
...e_keywords(struct mailbox
return TRUE;
}
-bool mailbox_equals(struct mailbox *box1, struct mail_storage *storage2,
- const char *name2)
+static bool _mailbox_equals(struct mailbox *box1, struct mail_storage *storage2,
+ const char *name2, int ci)
{
struct mail_storage *storage1 = mailbox_get_storage(box1);
const char *name1;
@@ -338,13 +338,36 @@ bool mailbox_equals(struct mailbox *box1
return FALSE;
name1 = mailbox_get_name(box1);
- if (strcmp(name1, name2) == 0)
- return TRUE;
+ if (ci) {
+ if (strcasecmp(name1, name2) == 0)
+ return TRUE;
+ } else {
+ if (strcmp(name1,...
2006 Feb 03
0
rquotad (NFS) quota plugin
...;pool = quota->pool;
+ root->state = RQUOTAD_UNKNOWN;
+ }
+
+ static struct quota_root_iter *
+ rquotad_quota_root_iter_init(struct quota *quota,
+ struct mailbox *box)
+ {
+ struct rquotad_quota_root_iter *iter;
+ struct statfs statbuf;
+
+ if (statfs(((struct index_storage *)(mailbox_get_storage(box)))->dir, &statbuf) < 0) {
+ return NULL;
+ }
+
+ debugmsg("getting quota for %s (%s)", box->name,
+ mailbox_get_storage(box)->name);
+ iter = i_new(struct rquotad_quota_root_iter, 1);
+ iter->iter.quota = quota;
+ strncpy(iter->boxfs, statbuf.f_mntonn...