Displaying 20 results from an estimated 82 matches for "string_t".
2019 Dec 04
2
Rootless wiki page is not up to date?
If I run a docker image with the mesos containerizer and altering the
dovecot config mentioned here[1]
I think the root detection is incorrect because it looks like dovecot is
still thinking it is root. I still get errors like:
>> log(829825): Fatal: We couldn't drop root group privileges
(wanted=10053(dovecot), gid=0(root), egid=0(root))
Why does it want to drop to root, if we
2017 Nov 03
1
Bug: lmtp proxy does not quote local parts with spaces
...000000000 +0100
+++ dovecot-2.2.33.2.quoted-local-proxy/src/lib-mail/message-address.c 2017-11-02 12:21:57.572866755 +0000
@@ -34,7 +34,7 @@
}
/* quote with "" and escape all '\', '"' and "'" characters if need */
-static void str_append_maybe_escape(string_t *dest, const char *cstr, bool escape_dot)
+void str_append_maybe_escape(string_t *dest, const char *cstr, bool escape_dot)
{
const char *p;
--- dovecot-2.2.33.2/src/lib-mail/message-address.h 2017-10-05 18:10:44.000000000 +0100
+++ dovecot-2.2.33.2.quoted-local-proxy/src/lib-mail/message-addre...
2020 Aug 19
0
/usr/include/dovecot/str.h
...build[1]
error. I think these header files of dovecot are not correct. Or are
they?
I changed line 35 in /usr/include/dovecot/str.h
from
str_append_max(str, cstr, max_len);
to
str_append_max(str, (const char *)cstr, max_len);
[1]
/usr/include/dovecot/str.h: In function 'void str_append_n(string_t*,
const void*, size_t)':
/usr/include/dovecot/str.h:35:22: error: invalid conversion from 'const
void*' to 'const char*' [-fpermissive]
35 | str_append_max(str, cstr, max_len);
| ^~~~
| |
| co...
2017 May 30
3
Still trouble with vpopmail
...ar_expand?
> if (var_expand(quota, template, tab, error_r) < 0)
> ^
> In file included from auth-request.h:5:0,
> from userdb.h:89,
> from userdb-vpopmail.c:6:
> ../../src/lib/var-expand.h:18:6: note: declared here
> void var_expand(string_t *dest, const char *str,
> ^
> userdb-vpopmail.c:72:2: error: void value not ignored as it ought to be
> if (var_expand(quota, template, tab, error_r) < 0)
--
*Bob Wooldridge*
Blog: http://kc0dxf.net/blog/
2017 Nov 01
2
Bug: lmtp proxy does not quote local parts with spaces
...+#include "rfc822-parser.h"
#include "lmtp-client.h"
#include <ctype.h>
@@ -778,6 +779,73 @@
client->data_header = p_strdup(client->pool, str);
}
+/* similar to (private) str_append_maybe_escape() in lib-mail */
+static void lmtp_client_rfc822_escape_address(string_t *dest_r, const char *str)
+{
+ const char *p;
+ const char *domain;
+
+ /* no strrchrnul */
+ domain = strrchr(str, '@');
+ if (domain == NULL) {
+ domain = str;
+ while (*domain != '\0')
+ domai...
2006 Apr 20
0
beta7: assert, Solaris 9
...111577413,
1562386749}, parsed_uid = 539521897, last_uid_value_start_pos = 2053463924, have_eoh = 0,
need_rewrite = 0, seen_imapbase = 1, pseudo = 0, updated = 1, recent = 0, dirty = 0,
imapbase_rewrite = 1, imapbase_updated = 0}
(gdb) print size
$4 = 554008
(gdb) print ctx->header
$5 = (string_t *) 0x745f706f
(gdb) print *ctx->header
Cannot access memory at address 0x745f706f
(gdb) print *(ctx->header)
Cannot access memory at address 0x745f706f
(gdb) print &(ctx->header)
$6 = (string_t **) 0x87448
(gdb) print &&(ctx->header)
A syntax error in expression, near `&...
2007 Dec 11
1
dovecot deliver errors
...anitize.c: No such file or directory.
in str-sanitize.c
(gdb) #0 0x080d017a in str_sanitize_append (dest=0x80ee2f8, src=0x0,
max_len=80)
at str-sanitize.c:11
p = <value optimized out>
#1 0x080d02ce in str_sanitize (src=0x0, max_len=80) at str-sanitize.c:35
str = (string_t *) 0x80ee2f8
#2 0x080594f4 in deliver_log (mail=0x8107a48,
fmt=0x80d349b "saved mail to %s") at deliver.c:120
args = 0xbfb087d8 "\200<DA>\016\b"
str = (string_t *) 0x80ee120
#3 0x0805979f in deliver_save (namespaces=0x80f7a90, storage_r=0xbfb088e8,...
2017 Nov 20
2
doveadm mailbox list -s Segmentation fault
...000000800d77e04 in mailbox_tree_traverse (tree=0x0, path=0x801c1a540
"INBOX", create=false, created_r=0x7fffffffe4f7) at mailbox-tree.c:103
node = (struct mailbox_node **) 0x10
parent = (struct mailbox_node *) 0x0
name = 0x801c1a540 "INBOX"
str = (string_t *) 0x801c1a560
#1 0x0000000800d77fc2 in mailbox_tree_lookup (tree=0x0, path=0x801cfa770
"INBOX") at mailbox-tree.c:168
_data_stack_cur_id = 3
node = (struct mailbox_node *) 0x8015aa72e
created = false
#2 0x0000000800e03155 in mailbox_list_set_subscription_flags
(...
2010 Jun 14
1
Patch to fix leak in imap_refresh_proctitle in beta[5, 6]
...0x00000001058666ce cmd_sync_continue + 199 ->
[...]
Here is a patch to fix it:
--- a/src/imap/main.c (beta6)
+++ b/src/imap/main.c (working copy)
@@ -39,11 +39,12 @@
#define IMAP_PROCTITLE_PREFERRED_LEN 80
struct client *client;
struct client_command_context *cmd;
- string_t *title = t_str_new(128);
+ string_t *title;
if (!verbose_proctitle)
return;
+ title = str_new(default_pool, 128);
str_append_c(title, '[');
switch (imap_client_count) {
case 0:
@@ -72,6 +73,7 @@
}
str_append_c(title, ']');
process_title_set(str_c(title));
+ str_...
2006 Oct 09
1
patch: mailboxcasecmp()
...char *name2)
+{
+ return _mailbox_equals(box1, storage2, name2, 0);
+}
+
+bool mailboxcasecmp(struct mailbox *box1, struct mail_storage *storage2,
+ const char *name2)
+{
+ return _mailbox_equals(box1, storage2, name2, 1);
+}
+
void msgset_generator_init(struct msgset_generator_context *ctx, string_t *str)
{
memset(ctx, 0, sizeof(*ctx));
diff -urp dovecot-1.0.beta8.orig/src/imap/commands-util.h dovecot-1.0.beta8/src/imap/commands-util.h
--- dovecot-1.0.beta8.orig/src/imap/commands-util.h 2006-01-13 19:00:10.000000000 -0800
+++ dovecot-1.0.beta8/src/imap/commands-util.h 2006-10-08 15:02:13.41...
2017 Apr 11
2
Vpopmail Error
...54,7 +54,7 @@ struct vqpasswd *vpopmail_lookup_vqp(struct auth_request *request,
> static const char *
> userdb_vpopmail_get_quota(const char *template, const char *vpop_str)
> {
> - const struct var_expand_table *tab;
> + struct var_expand_table *tab;
> string_t *quota;
>
> if (template == NULL || *vpop_str == '\0' ||
>
> can you give this a go? It should repair the build.
>
> Aki
>
>> On April 11, 2017 at 7:32 PM Bobber <bobber at kc0dxf.net> wrote:
>>
>>
>> Still not working. I'm...
2017 Sep 08
5
EOF from net_disconnect(fd)
...39;;
??????????????? if (strncmp(res, "OK ", 3) == 0) {
??????????????? ? ret = 0;
??????????????? }
? }
}
}
alarm(0);
char stx[1];
stx[0]=(char) 4;
//stx[1]='\0';
if ( net_transmit(fd, stx, sizeof(stx) ) < 0 ) {
? i_error("Error writing EOF");
}
//string_t *testEOF= t_str_new(2);
//str_append(testEOF, (char*) 4);
//if ( net_transmit(fd, str_data(testEOF), str_len(testEOF) ) < 0 ) {
//????? i_error("Error writing EOF");
//??? }
//i_close_fd(&fd);
net_disconnect(fd);
fd=-1;
Thank you,
Steffan Cline
602-793-0014
2014 Dec 12
0
PATCH - add username_format to the PAM auth module
...rname_format;
unsigned int requests_left;
unsigned int pam_setcred:1;
unsigned int pam_session:1;
unsigned int failure_show_msg:1;
+ unsigned int pam_allow_transform:1;
};
struct pam_conv_context {
@@ -67,6 +68,13 @@
char *string;
int i;
+ const struct var_expand_table *table;
+ string_t *username;
+
+ username = t_str_new(256);
+ table = auth_request_get_var_expand_table(ctx->request, auth_request_str_escape);
+ var_expand(username, passdb->username_format, table);
+
*resp_r = NULL;
resp = calloc(num_msg, sizeof(struct pam_response));
@@ -82,7 +90,7 @@
case PAM_PROM...
2017 Jun 10
0
Pacaging/build issues with AIX and vac (dovecot-2.2.25)
...doveadm/doveadm-cmd.c", line 548.37:
1506-285 (S) The indirection operator cannot be applied to a pointer to
an incomplete struct or union.
make[1]: *** [doveadm-cmd.o] Error 1
+428 static void
+429 doveadm_build_options(const struct doveadm_cmd_param par[],
+430 string_t *shortopts,
+431 ARRAY_TYPE(getopt_option_array) *longopts)
+432 {
+433 for(size_t i=0; par[i].name != NULL; i++) {
+434 struct option longopt;
+435
+436 i_zero(&longopt);
+437 longopt.name = par[...
2003 Nov 04
0
PATCH: make local IP address available to auth modules
The attached patch makes the local IP address to which the client
connected available to the authentication modules; i.e., the local IP
address is available for substitution as %i for the mysql and pgsql
modules. We needed this feature to support thousands of our legacy
accounts which are authenticated by username/local_part (not the full
email address) and IP address (one per domain).
Timo,
2007 Aug 04
3
A few dovecot 1.1 bugs - sort, flag reset and etc.
...9059c
"\213\216(\001"}
value = 0x0
headers_ctx = (struct mailbox_header_lookup_ctx *) 0x8d3d3b8
data = (unsigned char *) 0x8d4b1a8 "h??\b
*?\b\224X\t\b?X\t\b?\200\006\b\204?\006\b?2\a\b?3\a\b??\006\b??\006\bT?\006\b"
field_idx = 10
dest = (string_t *) 0x8d52038
i = 148100024
len = 148100132
ret = 148156840
header_values = {arr = {buffer = 0xac, element_size =
3221200392}, v = 0xac, v_modifiable = 0xac}
#8 0x08091dff in index_mail_get_first_header (_mail=0x8d3d3b8,
field=0x80ce56b "Subject", decode_to...
2017 Nov 20
0
doveadm mailbox list -s Segmentation fault
...x_tree_traverse (tree=0x0, path=0x801c1a540
> "INBOX", create=false, created_r=0x7fffffffe4f7) at mailbox-tree.c:103
> node = (struct mailbox_node **) 0x10
> parent = (struct mailbox_node *) 0x0
> name = 0x801c1a540 "INBOX"
> str = (string_t *) 0x801c1a560
> #1 0x0000000800d77fc2 in mailbox_tree_lookup (tree=0x0, path=0x801cfa770
> "INBOX") at mailbox-tree.c:168
> _data_stack_cur_id = 3
> node = (struct mailbox_node *) 0x8015aa72e
> created = false
> #2 0x0000000800e03155 in mailbox...
2004 Oct 21
2
test51 dumping core
....c:336
mechanisms = (char **) 0x1
env = 0x1c00555f "E\b?p\020??\b"
#6 0x1c005491 in auth_callback (request=0x1, result=3485400856,
reply=0xcfbeff20,
reply_size=0) at auth-client-connection.c:71
result = 3485401184
reply_size = 3485400780
str = (string_t *) 0xcfbeff18
ret = 0
#7 0x1c005407 in auth_callback (request=0x0, result=3485401197,
reply=0xcfbf007d,
reply_size=3485401232) at auth-client-connection.c:62
result = 0
reply_size = 4096
str = (string_t *) 0xcfbeff14
ret = 0
#8 0xcfbf0060 in ?? ()
No sy...
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 Sep 08
1
EOF from net_disconnect(fd)
...;>
>> char stx[1];
>>
>> stx[0]=(char) 4;
>>
>> //stx[1]='\0';
>>
>> if ( net_transmit(fd, stx, sizeof(stx) ) < 0 ) {
>>
>> i_error("Error writing EOF");
>>
>> }
>>
>>
>>
>> //string_t *testEOF= t_str_new(2);
>>
>> //str_append(testEOF, (char*) 4);
>>
>> //if ( net_transmit(fd, str_data(testEOF), str_len(testEOF) ) < 0 ) {
>>
>> // i_error("Error writing EOF");
>>
>> // }
>>
>>
>>
>&g...