Displaying 15 results from an estimated 15 matches for "array_append".
2009 Feb 06
2
[patch] 'c' and 'd' in setacl
Hi Timo,
Hi *,
I just recognized that the new imap-acl plugin in dovecot 1.2 does not
know the obsolete rights 'd' and 'c' when setting. According to RFC
4314 section 2.1.1.:
If a client includes the "d" right in a rights list, then it MUST be
treated as if the client had included every member of the "delete"
right.
and
If a client includes
2014 Jul 28
2
not able to compile deleted_to_trash Plugin
...ontext.h:4:0,
from /usr/include/dovecot/mail-storage-private.h:4,
from deleted-to-trash-plugin.h:5,
from deleted-to-trash-plugin.c:2:
deleted-to-trash-plugin.c:232:27: error: 'struct last_copy_info' has no member named 'mail_id'
array_append(&last_copy.mail_id, &mail->uid, 1);
^
/usr/include/dovecot/array.h:152:19: note: in definition of macro 'array_append'
array_append_i(&(array)->arr + ARRAY_TYPE_CHECK(array, data), \
^
In file included from /usr/include/dovec...
2009 Apr 03
2
Implementation of editheaders in dovecot
...unks = NULL;
const unsigned int max_chunks = 4;
unsigned int i = 0;
unsigned int cnt = 0;
unsigned int exclude_cnt = 0;
unsigned int include_cnt = 0;
int ret = 0;
#if 1
{/* Test code */
const char * str = "Subject";
const char * str2 = "X-DSPAM: test value\n\n";
array_append(&ra_mail->exclude_headers, &str, 1);
array_append(&ra_mail->include_headers, &str2, 1);
}
#endif
DPRINT("Standard get_stream for mail storage format");
ret = ra_mail->module_ctx.super.get_stream(mail, hdr_size, body_size,
&stream);
include_cnt = arra...
2006 Feb 03
1
passwd-userdb with args
...*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->auth->pool, value);
+
+ array_append(&module->template, &key, 1);
+ array_append(&module->template, &value, 1);
+ }
+ t_pop();
+
+ return &module->module;
}
struct userdb_module_interface userdb_passwd = {
"passwd",
! passwd_preinit,
! NULL,
! NULL,
passwd_lookup
};
2012 Feb 23
1
Creating and interacting with array inside plugin
...lbox_module_context module_ctx;
ARRAY_DEFINE(expunge_uids, struct emexis_ids_x_uis);
};
ok, inside my expunged rewrite function i create the array like quota
does, and append it to my array.
struct emexis_ids_x_uis append_uis;
append_uis.ids = _mail->uid;
append_uis.uis_file = bodyFile;
array_append(&ebox->expunge_uids, &append_uis, 1);
But when i do a foreach in this Array, my ids is OK, but my uis_file
has tha same value every time (the value is the lasted value
inserted).
Append to UID array (156) -->
(/storage/gss/emexis/common/t/33/88/t33889eb1bccd28fd6643ebc3ecf548b12a1a...
2007 Dec 31
1
Segmentation fault in dovecot-sieve-1.1.2 + dovecot-1.1.beta13
...007-12-31 10:21:54.000000000 +0200
+++ sieve-cmu.c 2007-12-31 10:24:18.000000000 +0200
@@ -495,6 +495,7 @@
ARRAY_DEFINE(keywords, const char *);
const char
*name;
int i;
+ unsigned
int count;
*flags_r = 0;
@@ -524,7 +525,7 @@
array_append(&keywords, &name, 1);
*keywords_r
= array_count(&keywords) == 1 ? NULL :
-
array_get(&keywords, 0);
+
array_get(&keywords, &count);
}
static int
sieve_fileinto(void *ac,
BTW, dovecot-sieve-1.0.2 + dovecot-...
2018 Feb 22
0
Auth SEGV on sparc64, alignment problem?
..._interfaces, ifaces) {
> (gdb)
> 26 return NULL;
> (gdb)
> 27 }
> (gdb)
> passdb_register_module (iface=0x280120) at passdb.c:34
> 34 if (old_iface != NULL && old_iface->verify_plain == NULL) {
> (gdb)
> 37 } else if (old_iface != NULL) {
> (gdb)
> 41 array_append(&passdb_interfaces, &iface, 1);
> (gdb)
> 42 }
> (gdb)
> passdbs_init () at passdb.c:314
> 314 passdb_register_module(&passdb_sql);
> (gdb)
> 315 passdb_register_module(&passdb_sia);
> (gdb)
> 316 passdb_register_module(&passdb_static);
> (gdb)
&...
2017 Jun 10
0
Pacaging/build issues with AIX and vac (dovecot-2.2.25)
...if (par[i].type != CMD_PARAM_BOOL)
+442 str_append_c(shortopts, ':');
+443 }
+444 if (par[i].type != CMD_PARAM_BOOL)
+445 longopt.has_arg = 1;
+446 array_append(longopts, &longopt, 1);
+447 }
+448 array_append_zero(longopts);
+449 }
+505 int doveadm_cmd_run_ver2(int argc, const char *const argv[],
+506 struct doveadm_cmd_context *cctx)
+507 {
+508 struct doveadm_cmd_param *pa...
2018 Feb 22
2
Auth SEGV on sparc64, alignment problem?
...name) == 0)
(gdb) n
20 array_foreach(&passdb_interfaces, ifaces) {
(gdb)
26 return NULL;
(gdb)
27 }
(gdb)
passdb_register_module (iface=0x280120) at passdb.c:34
34 if (old_iface != NULL && old_iface->verify_plain == NULL) {
(gdb)
37 } else if (old_iface != NULL) {
(gdb)
41 array_append(&passdb_interfaces, &iface, 1);
(gdb)
42 }
(gdb)
passdbs_init () at passdb.c:314
314 passdb_register_module(&passdb_sql);
(gdb)
315 passdb_register_module(&passdb_sia);
(gdb)
316 passdb_register_module(&passdb_static);
(gdb)
317 passdb_register_module(&passdb_oauth2...
2018 Feb 22
2
Auth SEGV on sparc64, alignment problem?
Sadly, that doesn?t help either. Over the past day, I?ve built and installed a different branch of the OS (stable/11, instead of release/11.1), to see if a new compiler/libc might change things. Sadly, it does not.
In the same situation now, auth fails immediately with signal 11. Running gdb on auth (from build dir, compiled -g -O2) shows something similar.
- Chris
# gdb
2017 Nov 03
1
Bug: lmtp proxy does not quote local parts with spaces
...)
{
@@ -301,10 +320,10 @@
rcpt = p_new(proxy->pool, struct lmtp_proxy_recipient, 1);
rcpt->idx = array_count(&proxy->rcpt_to);
rcpt->conn = conn;
- rcpt->address = p_strdup(proxy->pool, address);
+ rcpt->address = lmtp_proxy_escape_address(proxy->pool, address);
array_append(&proxy->rcpt_to, &rcpt, 1);
- lmtp_client_add_rcpt_params(conn->client, address, &set->params,
+ lmtp_client_add_rcpt_params(conn->client, rcpt->address, &set->params,
lmtp_proxy_conn_rcpt_to,
lmtp_proxy_conn_data, rcpt);
return 0;
-----------...
2006 May 18
5
Overriding default DELETE behavior with logical deletes
Hello!
I am trying to figure out how to implement *logical deletes* instead of
physical deletes using ActiveRecord. Basically, in many applications
that deal with E-Commerce, you really can''t physically delete almost
anything, because records must be kept for auditing and customer service
tracking purposes.
In the past, I''ve implemented logical deletes as follows:
1.
2007 Mar 15
5
[PATCH 0/5] fix gcc warnings in CVS HEAD
Hi,
I have rewritten the patches I submitted earlier today for the CVS
HEAD. Some of the changes were already committed months ago.
On 2007/03/15 12:30, Timo Sirainen <tss at iki.fi> wrote:
> That's ok, but I'm not sure about bsearch_insert_pos(). It's the way it
> is mostly because I wanted to keep bsearch() API. If it can't return
> void * then maybe it could be
2017 Nov 01
2
Bug: lmtp proxy does not quote local parts with spaces
Hi again,
I've not heard anything further regarding this bug, so I've had a look at the code.
To restate the bug in a more precise way: LMTP in dovecot treats external RFC822
email addresses in the envelope recipient and internal usernames as almost
identical/interchangeable. This is incorrect and leads to issues when attempting
to use director as an LMTP proxy to proxy to recipients
2016 Oct 09
6
Pacaging/build issues with AIX and vac (dovecot-2.2.25)
Hi.
I finally decided it was really time to stop being lazy and really move
away from gmail. After I have a server in my basement using power, etc.
So I turned on the imap provided - and did not quite cry - it will have
to do for now, but imap2 is wanting.
A real server yes, but not Linux. (Using linux would require another
server AND I would feel I am being lazy again).
So, I downloaded