Displaying 2 results from an estimated 2 matches for "strarray_length".
2006 Oct 04
1
fix: LDA logging
...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, &kw);
- if (ret < 0)
+ if (ret < 0) {
+ i_info("failed to deliver msgid=%s to %s", str, mailbox);
mailbox_transaction_rollback(&t);
- else
+ }
+ else {
+ i_info("delivered msgid...
2006 Feb 03
1
passwd-userdb with args
...wd_userdb_module *module;
+ const char *const *tmp, *key, *value;
+
+ module = p_new(auth_userdb->auth->pool, struct passwd_userdb_module, 1);
+
+ tmp = t_strsplit_spaces(args, " ");
+ ARRAY_CREATE(&module->template, auth_userdb->auth->pool,
+ const char *, strarray_length(tmp));
+
+ t_push();
+ for (; *tmp != NULL; tmp++) {
+ value = strchr(*tmp, '=');
+ if (value == NULL)
+ key = *tmp;
+ else {
+ key = t_strdup_until(*tmp, value);
+ value++;
+ }
+
+ key = p_strdup(auth_userdb->auth->pool, key);
+ value = p_strdup(auth_userdb-&...