search for: str_new

Displaying 6 results from an estimated 6 matches for "str_new".

Did you mean: t_str_new
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_free(&title);...
2017 Jun 10
0
Pacaging/build issues with AIX and vac (dovecot-2.2.25)
...ct doveadm_cmd_param *param; +509 ARRAY_TYPE(doveadm_cmd_param_arr_t) pargv; +510 ARRAY_TYPE(getopt_option_array) opts; +511 unsigned int pargc; +512 int c,li; +513 pool_t pool = pool_datastack_create(); +514 string_t *optbuf = str_new(pool, 64); +515 +516 p_array_init(&opts, pool, 4); +517 +518 // build parameters +519 doveadm_build_options(cctx->cmd->parameters, optbuf, &opts); +530 while((c = getopt_long(argc, (char*const*)argv, str_c(optbuf), array_idx(&opts, 0)...
2017 Nov 03
1
Bug: lmtp proxy does not quote local parts with spaces
...ct rfc822_parser_context parser; string_t *str; - const char *p; if (*name != '"') return name; - /* quoted-string local-part. drop the quotes unless there's a - '@' character inside or there's an error. */ + /* decode quoted-string local-part */ str = t_str_new(128); - for (p = name+1; *p != '"'; p++) { - if (*p == '\0') - return name; - if (*p == '\\') { - if (p[1] == '\0') { - /* error */ - return name; - } - p++; - } - if (*p == '@') - return name; - str_append_c(str, *p); - } - p++; - i...
2017 Nov 01
2
Bug: lmtp proxy does not quote local parts with spaces
...ct rfc822_parser_context parser; string_t *str; - const char *p; if (*name != '"') return name; - /* quoted-string local-part. drop the quotes unless there's a - '@' character inside or there's an error. */ + /* decode quoted-string local-part */ str = t_str_new(128); - for (p = name+1; *p != '"'; p++) { - if (*p == '\0') - return name; - if (*p == '\\') { - if (p[1] == '\0') { - /* error */ - return name; - } - p++; - } - if (*p == '@') - return name; - str_append_c(str, *p); - } - p++; - i...
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
2010 Apr 09
4
Patch: support URLAUTH, BURL, CATENATE
...trtoul(dec_parts.uidvalidity, NULL, 10) != status.uidvalidity)) + return catenate_fetch_cleanup(&cfctx, FALSE, + "uidvalidity mismatch"); + + /* fetch the data as in + UID FETCH dec_parts.uid BODY.PEEK[dec_parts.section] + but with less output syntax */ + fetch_text = t_str_new(11 + (dec_parts.section ? + strlen(dec_parts.section) : 0)); + str_append(fetch_text, "BODY.PEEK["); + if (dec_parts.section) + str_append(fetch_text, dec_parts.section); + str_append(fetch_text, "]"); + + cfctx.input = i_stream_create_from_data(str_data(fetch_text), +...