search for: i_array_init

Displaying 9 results from an estimated 9 matches for "i_array_init".

Did you mean: t_array_init
2014 Jul 28
2
not able to compile deleted_to_trash Plugin
..._copy.mail_id); ^ /usr/include/dovecot/array.h:111:17: note: in definition of macro 'array_free' array_free_i(&(array)->arr) ^ deleted-to-trash-plugin.c:61:27: error: 'struct last_copy_info' has no member named 'mail_id' i_array_init(&last_copy.mail_id, TRASH_LIST_INITSIZE); ^ /usr/include/dovecot/array.h:103:19: note: in definition of macro 'array_create' array_create_i(&(array)->arr, pool, element_size, init_count) ^ /usr/include/dovecot/array.h:38:2: note: in...
2017 Aug 03
2
proxy-dict with tcp connection
...dr ip; + in_port_t port=0; unsigned int idle_msecs = DICT_CLIENT_DEFAULT_TIMEOUT_MSECS; unsigned int warn_slow_msecs = DICT_CLIENT_DEFAULT_WARN_SLOW_MSECS; @@ -772,7 +776,21 @@ client_dict_init(struct dict *driver, const char *uri, dict->warn_slow_msecs = warn_slow_msecs; i_array_init(&dict->cmds, 32); - if (uri[0] == ':') { + args = t_strsplit(uri, ":"); + for(argc=0; args[argc] != NULL; argc++); + + if (argc == 3) { /* host:ip:somewhere --> argc == 3 */ + if (net_addr2ip(args[0], &ip) < 0) { + *error_r = t_st...
2017 Aug 03
0
proxy-dict with tcp connection
...> unsigned int idle_msecs = DICT_CLIENT_DEFAULT_TIMEOUT_MSECS; > unsigned int warn_slow_msecs = DICT_CLIENT_DEFAULT_WARN_SLOW_MSECS; > > @@ -772,7 +776,21 @@ client_dict_init(struct dict *driver, const char *uri, > dict->warn_slow_msecs = warn_slow_msecs; > i_array_init(&dict->cmds, 32); > > - if (uri[0] == ':') { > + args = t_strsplit(uri, ":"); > + for(argc=0; args[argc] != NULL; argc++); > + > + if (argc == 3) { /* host:ip:somewhere --> argc == 3 */ > + if (net_addr2ip(args[0], &ip) &lt...
2019 Jan 12
2
Solr -> Xapian ?
I somehow fixed the folder issue. (seems some unix rights after too many tests) Getting back on the "fts_results" structure: I am trying: I_ARRAY_INIT(&(RESULT->DEFINITE_UIDS),R->SIZE); I_ARRAY_INIT(&(RESULT->MAYBE_UIDS),0); uint32_t uid; for(i=0;i<r->size;i++) { try { uid=atol(backend->dbr->get_document(r->data[i]).get_value(1).c_str()); i_warning("Rresult UID=%d",uid); ARRAY_ID...
2019 Jan 13
0
Solr -> Xapian ?
...date_set_mailbox with box == NULL. WHy so ? THank you On 2019-01-12 21:40, Joan Moreau via dovecot wrote: > I somehow fixed the folder issue. (seems some unix rights after too many tests) > > Getting back on the "fts_results" structure: > > I am trying: > > I_ARRAY_INIT(&(RESULT->DEFINITE_UIDS),R->SIZE); > I_ARRAY_INIT(&(RESULT->MAYBE_UIDS),0); > > uint32_t uid; > for(i=0;i<r->size;i++) > { > try > { > uid=atol(backend->dbr->get_document(r->data[i]).get_value(1).c_str()); > i_warning("Rresult UID=%d...
2020 Oct 31
3
v2.3.11.3 solr plugin search via MUA fails to match accented ascii characters; cmd line exec of `doveadm fts lookup` PANICs (assertion failed)
On 10/18/20 10:28 PM, Aki Tuomi wrote: >> doveadm(myuser at example.com): Panic: file mail-storage.c: line 2112 (mailbox_get_open_status): assertion failed: (box->opened) ... > I can reproduce your problem with the `fts lookup` command. Luckily it's equivalent to running `doveadm search`. I'll open a bug about this. Can you provide any status on the bug/fix? Thanks.
2019 Jan 12
2
Solr -> Xapian ?
THank you Now, for the results I see the member of fts_result is : ARRAY_TYPE(seq_range) definite_uids; I have the UID as a aray of uint32_t * How to put my UIDs into this "definite_uids" ? Obviously this is not a simple array/pointer. How to say someting similar to result->definite_uids[1]=my_uid ? On 2019-01-12 10:25, Timo Sirainen wrote: > On 11 Jan 2019, at 21.23,
2020 Oct 31
0
v2.3.11.3 solr plugin search via MUA fails to match accented ascii characters; cmd line exec of `doveadm fts lookup` PANICs (assertion failed) [proposed patch]
...g/src/plugins/fts/doveadm-fts.c dovecot-2.3.11.3-patch/src/plugins/fts/doveadm-fts.c --- dovecot-2.3.11.3-orig/src/plugins/fts/doveadm-fts.c??? 2020-08-12 14:20:41.000000000 +0200 +++ dovecot-2.3.11.3-patch/src/plugins/fts/doveadm-fts.c??? 2020-10-31 17:52:09.019388695 +0100 @@ -47,6 +47,14 @@ ???? i_array_init(&result.scores, 16); ? ???? box = mailbox_alloc(info->ns->list, info->vname, 0); +??? mailbox_set_reason(box,"fts search"); +??? if (mailbox_open(box) < 0) { +??? ??? i_error("Couldn't open mailbox: %s", +??? ??? ??? mailbox_get_last_internal_error(box, NULL)...
2008 Mar 18
5
xexec and dovecot 1.1
...before 'char' As I understand, it is because of (from changelog) Replaced ARRAY_CREATE() macro with [ipt]_array_init() macros. The macro has no side effects so it might as well be lowercased. I have look at the array.h, but can't find appropriate function in list of array_create,i_array_init,p_array_init,t_array_init. Should I just forget about it, until someone adapts code for dovecot 1.1, or maybe it no so complex, as looks? Thank you.