search for: mailbox_open_or_create_synced

Displaying 2 results from an estimated 2 matches for "mailbox_open_or_create_synced".

2008 Sep 01
2
Autocreating INBOX only
...ils addressed to user+some_strange_name at domain.com, but nevertheless automatically create INBOX for new users. I'm not sure whether a new option like -M or -m -m would be appropriate, i.e., whether anyone needs the current -m behaviour. It looks to me like one would need to change mailbox_open_or_create_synced() if (box != NULL || no_mailbox_autocreate) return box; to something like (assuming an enum mailbox_autocreate {_never,_inbox,_always} if (box != NULL) return box; if (mailbox_autocreate == mailbox_autocreate_never || strcasecmp (mailbox, &q...
2006 Oct 04
1
fix: LDA logging
...----------- next part -------------- --- deliver.c.rc7+ 2006-09-25 10:36:59.885645000 +0100 +++ deliver.c 2006-10-04 18:01:31.910181000 +0100 @@ -103,12 +103,15 @@ struct mailbox *box; struct mailbox_transaction_context *t; struct mail_keywords *kw; + const char *str; int ret = 0; box = mailbox_open_or_create_synced(storage, mailbox); if (box == NULL) return -1; + str = mail_get_first_header(mail, "Message-ID"); + t = mailbox_transaction_begin(box, MAILBOX_TRANSACTION_FLAG_EXTERNAL); kw = strarray_length(keywords) == 0 ? NULL : @@ -117,10 +120,14 @@ ret = -1; mailbox_keywords_free(t...