Hi again,

>From 386f1e5037d88ade03f299c68d622b0179b07657 Mon Sep 17 00:00:00 2001
From: Nacho Barrientos <nacho.barrien...@cern.ch>
Date: Thu, 10 Jun 2021 12:12:00 +0200
Subject: [PATCH] Allow bigger IMAP messages

---
 src/drv_imap.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/drv_imap.c b/src/drv_imap.c
index 3c85c4d..d062f1f 100644
--- a/src/drv_imap.c
+++ b/src/drv_imap.c
@@ -339,7 +339,7 @@ send_imap_cmd( imap_store_t *ctx, imap_cmd_t *cmd )
 	int bufl;
 	const char *buffmt;
 	conn_iovec_t iov[3];
-	char buf[4096];
+	char buf[4096*2];
 
 	cmd->tag = ++ctx->nexttag;
 	if (!cmd->param.data) {
@@ -512,7 +512,7 @@ imap_vprintf( const char *fmt, va_list ap )
 	const char *s;
 	char *d, *ed;
 	char c;
-	char buf[4096];
+	char buf[4096*2];
 
 	d = buf;
 	ed = d + sizeof(buf);
-- 
2.32.0

The attached patch works for me.

Big kerberos tickets on our side I guess :)

Nacho Barrientos <nacho.barrien...@cern.ch> writes:

> Hi,
>
> As requested by my beloved mbsync, reporting a bug :)
>
>   ~ λ mbsync -V -DMn example-prio-0
>   Reading configuration file /home/nacho/.mbsyncrc
>   Notice: Master/Slave are deprecated; use Far/Near instead.
>   Channel example-inbox
>   Opening far side store example-remote...
>   Resolving imap.example.org... ok
>   Connecting to imap.example.org (REDACTED:993)... 
>   Opening near side store example-local...
>   Connection is now encrypted
>   * OK [CAPABILITY IMAP4rev1 SASL-IR LOGIN-REFERRALS ID ENABLE IDLE LITERAL+ 
> AUTH=PLAIN AUTH=LOGIN AUTH=XOAUTH2 AUTH=OAUTHBEARER AUTH=GSSAPI] Dovecot 
> ready.
>   Logging in...
>   Authenticating with SASL mechanism GSSAPI...
>   Fatal: buffer too small. Please report a bug.
>   aborted (core dumped)
>   ~ λ mbsync --version
>   isync 1.4.2
>
> Archlinux.
>
> PLAIN auth works fine.
>
> Any extra info you might need feel free to ask.
>
> Thanks for your time!


-- 
 bye
 Nacho
 http://cern.ch/nacho
_______________________________________________
isync-devel mailing list
isync-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/isync-devel

Reply via email to