search for: str_printfa

Displaying 20 results from an estimated 20 matches for "str_printfa".

2008 Oct 15
1
Bug: MODSEQ FETCH return (?)
...ap-fetch.c --- a/src/imap/imap-fetch.c Tue Oct 14 14:52:44 2008 +0300 +++ b/src/imap/imap-fetch.c Tue Oct 14 21:20:30 2008 -0600 @@ -749,7 +749,7 @@ modseq = mail_get_modseq(mail); if (ctx->client->highest_fetch_modseq < modseq) ctx->client->highest_fetch_modseq = modseq; - str_printfa(ctx->cur_str, "MODSEQ %llu ", + str_printfa(ctx->cur_str, "MODSEQ (%llu) ", (unsigned long long)modseq); return 1; } Hope this helps/is correct. michael
2014 Aug 05
1
[Patch] mail_log plugin supports remote, local ip addresses
...| \ @@ -58,6 +62,8 @@ "flags", "from", "subject", + "rip", + "lip", NULL }; @@ -265,6 +271,14 @@ mail_get_keywords(mail)); str_append(text, "), "); } + if ((muser->fields & MAIL_LOG_FIELD_REMOTE_IP) != 0) { + str_printfa(text, "rip=%s", net_ip2addr(mail->box->storage->user->remote_ip)); + str_append(text, ", "); + } + if ((muser->fields & MAIL_LOG_FIELD_LOCAL_IP) != 0) { + str_printfa(text, "lip=%s", net_ip2addr(mail->box->storage->user->local_ip)); +...
2012 Oct 02
2
[PATCH] Add SCRAM-SHA-1 password scheme
...E_LEN+1]; string_t *str; @@ -84,12 +63,9 @@ snonce[sizeof(snonce)-1] = '\0'; request->snonce = p_strndup(request->pool, snonce, sizeof(snonce)); - random_fill(request->salt, sizeof(request->salt)); - - str = t_str_new(MAX_BASE64_ENCODED_SIZE(sizeof(request->salt))); - str_printfa(str, "r=%s%s,s=", request->cnonce, request->snonce); - base64_encode(request->salt, sizeof(request->salt), str); - str_printfa(str, ",i=%d", SCRAM_ITERATE_COUNT); + str = t_str_new(sizeof(snonce)); + str_printfa(str, "r=%s%s,s=%s,i=%d", request->cnonce,...
2015 Jan 13
0
[PATCH] Make Delivered-To optional
...s = $mail_plugins } - \ No newline at end of file + diff -r e3640ccaa76d src/lmtp/commands.c --- a/src/lmtp/commands.c Sat Jan 10 04:32:42 2015 +0200 +++ b/src/lmtp/commands.c Tue Jan 13 11:29:20 2015 +0100 @@ -996,7 +996,7 @@ if (array_count(&client->state.rcpt_to) > 0) { str_printfa(str, "Return-Path: <%s>\r\n", client->state.mail_from); - if (rcpt_to != NULL) + if (rcpt_to != NULL && client->lmtp_set->lmtp_add_delivered_to) str_printfa(str, "Delivered-To: %s\r\n", rcpt_to); } diff -r e3640ccaa76d src/lmtp/lmtp-setti...
2015 Oct 06
4
More information about - Dovecot 2.2.x quota mysql and dict
...uild->dict; const struct dict_sql_build_query_field *fields; unsigned int i, field_count; string_t *query; i_assert(build->inc); fields = array_get(&build->fields, &field_count); i_assert(field_count > 0); query = t_str_new(64); str_printfa(query, "UPDATE %s SET ", fields[0].map->table); #### this in code, work excellent for (i = 0; i < field_count; i++) { if (i > 0) str_append_c(query, ','); str_printfa(query, "%s=%s", fields[i].map->valu...
2013 Sep 23
1
dovecot 2.2.x and replication with dsync and shared / public namespace
Hi, I'm trying to configure replication with dsync on Dovecot 2.2.5 (and latest nightly). I did followed the guide at http://wiki2.dovecot.org/Replication But I can get dsync-server working only if my users do not have access to shared mailboxes and / or public mailboxes which is problematic for our setup. dsync-server is trying to create folders in public/ namespace :
2012 Oct 31
1
backtrace for non-existant %{ldap:attr} on login
...o.0(+0x442f5) [0x7f2c052882f5] -> /usr/local/dovecot-2.1.10/lib/dovecot/libdovecot.so.0(buffer_get_space_unsafe+0x68) [0x7f2c05288728] -> /usr/local/dovecot-2.1.10/lib/dovecot/libdovecot.so.0(str_vprintfa+0x6d) [0x7f2c052a796d] -> /usr/local/dovecot-2.1.10/lib/dovecot/libdovecot.so.0(str_printfa+0x88) [0x7f2c052a7ac8] -> dovecot2.1/auth [0 wait, 1 passdb, 0 userdb]() [0x42682e] -> /usr/local/dovecot-2.1.10/lib/dovecot/libdovecot.so.0(var_expand_with_funcs+0x6fb) [0x7f2c052ac48b] -> dovecot2.1/auth [0 wait, 1 passdb, 0 userdb](db_ldap_result_iterate_next+0x12f) [0x42734f] -&gt...
2005 Jul 13
0
Minor bugs still in test77
Thinking of patches I always apply, I've got a couple (attached) that fix minor bugs and maybe should be applied - or implemented better and then applied ;) - to the main distribution? 1) LIST bugs: LIST "~/mail/" "" and LIST "" "~/mail/" (where "~/mail/" is a namespace prefix) don't reply the same way as UW-IMAP does and in at
2010 Aug 05
18
dot-containing foldernames \HasNoChildren bug ?
Hello, we experience problems with dovecot configuration using the listescape plugin to allow dots in foldernames. In some mail clients, dot-containing folders won't show any subfolders. This seems to be related to the fact that the \HasNoChildren flag is set on such folders even if subfolders do exits. Here is an example from telnet session: * LIST (\HasNoChildren) "/"
2019 May 19
2
Dict issue with PostgreSQL for last_login plugin (duplicate key)
On 19/05/2019 16:25, John Fawcett via dovecot wrote: > INSERT INTO last_logins (last_login,username,domain) VALUES (1558273000,'user at domain.tld','domain.tld') I don't have PostgresSql, would you be able to verify if this syntax would work: INSERT INTO last_logins (last_login,username,domain) VALUES (1558273000,'user at domain.tld','domain.tld')
2019 May 19
2
Dict issue with PostgreSQL for last_login plugin (duplicate key)
...pool); @@ -1108,12 +1110,15 @@ str_append_str(prefix, suffix); str_append_c(prefix, ')'); - if (!dict->has_on_duplicate_key) { + if (dict->has_on_duplicate_key ) { + str_append(prefix, " ON DUPLICATE KEY UPDATE "); + } else if(dict->has_on_conflict_do_update) { + str_printfa(prefix, " ON CONFLICT (%s) DO UPDATE SET ",fields[0].map->username_field); + } else { *stmt_r = sql_dict_transaction_stmt_init(ctx, str_c(prefix), &params); return 0; } - str_append(prefix, " ON DUPLICATE KEY UPDATE "); for (i = 0; i < field_count; i++) {...
2009 Jul 01
4
mbox format and UIDVALIDITY
My base concern may be illustrated with the help of that simple telnet session: # telnet 127.0.0.1 imap Trying 127.0.0.1... Connected to localhost. Escape character is '^]'. * OK [CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE AUTH=PLAIN] Dovecot ready. a1 login testuser ****** a1 OK [CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE SORT
2004 Dec 16
4
1.0-test58
http://dovecot.org/test/ - Fixed APPEND hanging in some situations. Didn't happen with mail_save_crlf=yes. - Added pop3_uidl_format setting. No need to patch sources anymore if you don't want the default. Does anyone want pop3_uidl_xuidl_header yes/no setting, with fallbacking to pop3_uidl_format if X-UIDL header isn't found? Shouldn't be difficult to do.. - Added
2019 May 19
3
Dict issue with PostgreSQL for last_login plugin (duplicate key)
On 19/05/2019 20:31, mabi via dovecot wrote: > > ??????? Original Message ??????? > On Sunday, May 19, 2019 7:36 PM, John Fawcett via dovecot > <dovecot at dovecot.org> wrote: >> >> Attached is a tentative patch. I've verified no regression for mysql. >> There should be no regression for sqlite as the code path is identical. >> >> Are you able to
2019 May 19
4
Dict issue with PostgreSQL for last_login plugin (duplicate key)
...pool); @@ -1108,12 +1110,15 @@ str_append_str(prefix, suffix); str_append_c(prefix, ')'); - if (!dict->has_on_duplicate_key) { + if (dict->has_on_duplicate_key ) { + str_append(prefix, " ON DUPLICATE KEY UPDATE "); + } else if(dict->has_on_conflict_do_update) { + str_printfa(prefix, " ON CONFLICT ON CONSTRAINT %s_pkey DO UPDATE SET ",fields[0].map->table); + } else { *stmt_r = sql_dict_transaction_stmt_init(ctx, str_c(prefix), &params); return 0; } - str_append(prefix, " ON DUPLICATE KEY UPDATE "); for (i = 0; i < field_count;...
2017 Oct 26
2
Bug: lmtp proxy does not quote local parts with spaces
On 26/10/2017 18:38, Alexander Dalloz wrote: > Am 26.10.2017 um 12:20 schrieb David Zambonini: >> >> There seems to be a bug with RFC822 processing in ltmp proxying that >> doesn't >> quote local parts that, for example, contain spaces. > > Newer related RFCs are RFC 5321 and 5322. Typo, meant to say RFC2822, which they still supercede, not that the
2006 Apr 28
1
imaptest, with options!
I hacked some command line options into imaptest. I dont think I broke it.. Place into dovecot-source root as usual and compile with: gcc imaptest.c -o imaptest -Wall -W -I. -Isrc/lib -DHAVE_CONFIG_H src/lib/liblib.a As per Timo's instructions. # imaptest -h imaptest [USER at IP:PORTNO] [pass=PASSWORD] [mbox=MBOX] [clients=CC] [msgs=NMSG] [use_authenticate] [PORTNO] USER = template for
2018 Mar 04
1
2.2.34 fails to build on OpenBSD
...i_fatal_status' .libs/libssl_iostream_openssl.so: undefined reference to `buffer_append' .libs/libssl_iostream_openssl.so: undefined reference to `i_strdup' .libs/libssl_iostream_openssl.so: undefined reference to `i_strocpy' .libs/libssl_iostream_openssl.so: undefined reference to `str_printfa' .libs/libssl_iostream_openssl.so: undefined reference to `ssl_iostream_unref' .libs/libssl_iostream_openssl.so: undefined reference to `i_panic' .libs/libssl_iostream_openssl.so: undefined reference to `i_stream_get_max_buffer_size' .libs/libssl_iostream_openssl.so: undefined ref...
2017 Nov 01
2
Bug: lmtp proxy does not quote local parts with spaces
...; + str_append(dest_r, domain); +} + static void lmtp_append_xtext(string_t *dest, const char *str) { unsigned int i; @@ -800,7 +868,9 @@ rcpt = array_get(&client->recipients, &count); for (i = client->rcpt_next_send_idx; i < count; i++) { str_truncate(str, 0); - str_printfa(str, "RCPT TO:<%s>", rcpt[i].address); + str_append(str, "RCPT TO:<"); + lmtp_client_rfc822_escape_address(str, rcpt[i].address); + str_append_c(str, '>'); if (rcpt->params.dsn_orcpt != NULL) { str_append(str, " ORCPT="); lmtp_appen...
2010 Apr 09
4
Patch: support URLAUTH, BURL, CATENATE
...:17.000000000 -0600 +++ dovecot-1.2.11+lemonade/src/imap/imap-fetch.c 2010-04-08 09:59:12.000000000 -0500 @@ -449,6 +449,10 @@ break; ctx->cur_mail = ctx->mail; + /* APPLE - urlauth */ + if (ctx->urlfetch) + ctx->urlfetched = TRUE; + else /* reduce code deltas */ str_printfa(ctx->cur_str, "* %u FETCH (", ctx->cur_mail->seq); ctx->first = TRUE; @@ -504,6 +508,9 @@ ctx->line_finished = TRUE; ctx->line_partial = FALSE; + + /* APPLE - urlauth */ + if (!ctx->urlfetch) /* reduce code deltas */ if (o_stream_send(client-...