Displaying 6 results from an estimated 6 matches for "dict_data_type_str".
2009 Feb 03
1
Segfault in deliver server
...ql_pool_new (pool=0x80f9470, db_driver=0x80dd498 "sqlite", connect_string=0x810ad78 "/kolab/var/dovecot/lib/metadata-dict.sqlite")
at sql-pool.c:97
#3 0x0805bb3c in sql_dict_init (driver=0x80f9ae0, uri=0xbfce9f76 "/kolab/etc/dovecot/metadata-dict.conf", value_type=DICT_DATA_TYPE_STRING,
username=0x80fb910 "4 at burlywood3.rgb") at dict-sql.c:86
#4 0x0805c9ca in dict_init (uri=0xbfce9f6f "sqlite:/kolab/etc/dovecot/metadata-dict.conf", value_type=DICT_DATA_TYPE_STRING,
username=0x80fb910 "4 at burlywood3.rgb") at dict.c:87
#5 0x0805a1b1...
2013 Aug 21
1
Dovecot antispam plugin for 2.2
...ersion > dovecot-version.h
CC antispam-storage.o
In file included from antispam-storage-2.2.c:20:0,
from antispam-storage.c:3:
antispam-plugin.h: In function ?string_dict_init?:
antispam-plugin.h:288:2: error: too few arguments to function ?dict_init?
return dict_init(uri, DICT_DATA_TYPE_STRING, username, NULL);
^
In file included from antispam-plugin.h:13:0,
from antispam-storage-2.2.c:20,
from antispam-storage.c:3:
/usr/include/dovecot/dict.h:34:5: note: declared here
int dict_init(const char *uri, enum dict_data_type value_type,
^
micah
2016 Oct 17
1
Dict proxy client returning empty string instead of multiline string
...uce, I was able to trigger
the same bug with the following code:
struct dict *dict;
char* dict_uri = "proxy::sieve";
char* key = "priv/key";
char* username = "admin at domain.tld";
char* value, error;
dict_drivers_register_builtin();
dict_init(dict_uri, DICT_DATA_TYPE_STRING, username,
doveadm_settings->base_dir, &dict, &error);
dict_lookup(dict, pool_datastack_create(), key, &value);
printf(">%s\n", value); // outputs an empty string
dict_deinit(&dict);
I trimmed it to the bare minimal string manipulation functions involve...
2016 Oct 17
2
Dict proxy client returning empty string instead of multiline string
...ruct dict *dict;
> > char* dict_uri = "proxy::sieve";
> > char* key = "priv/key";
> > char* username = "admin at domain.tld";
> > char* value, error;
> >
> > dict_drivers_register_builtin();
> > dict_init(dict_uri, DICT_DATA_TYPE_STRING, username,
> > doveadm_settings->base_dir, &dict, &error);
> > dict_lookup(dict, pool_datastack_create(), key, &value);
> > printf(">%s\n", value); // outputs an empty string
> > dict_deinit(&dict);
> >
> > I trimmed...
2016 Oct 17
2
Dict proxy client returning empty string instead of multiline string
Hi!
This does sound like a bug, we'll have look.
Aki
On 17.10.2016 01:26, Pierre Jaury wrote:
> I dived a little bit further into the rabbit hole, up to the point where
> debugging has become unpracticle but I still haven't found the root
> cause for sure.
>
> I read most of the code for "p_strdup" based on datastack memory pools
> (which are used for
2016 Oct 17
2
Dict proxy client returning empty string instead of multiline string
...quot;proxy::sieve";
> >>> char* key = "priv/key";
> >>> char* username = "admin at domain.tld";
> >>> char* value, error;
> >>>
> >>> dict_drivers_register_builtin();
> >>> dict_init(dict_uri, DICT_DATA_TYPE_STRING, username,
> >>> doveadm_settings->base_dir, &dict, &error);
> >>> dict_lookup(dict, pool_datastack_create(), key, &value);
> >>> printf(">%s\n", value); // outputs an empty string
> >>> dict_deinit(&dict);...