When using PassCmd in combination with XOAUTH2, the token generated might exceed 80 characters and hence would not fit in the buffer anymore. That leads to a truncated password and an authentication error later on: !Error: IMAP wants more steps despite successful SASL authentication.
Increase the size of the buffer to accomodate larger authentication tokens. Signed-off-by: Matthias Maennich <maenn...@google.com> --- src/drv_imap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/drv_imap.c b/src/drv_imap.c index 58fc9d3e4e87..4b780f60413a 100644 --- a/src/drv_imap.c +++ b/src/drv_imap.c @@ -1873,7 +1873,7 @@ ensure_password( imap_server_conf_t *srvc ) if (cmd) { FILE *fp; int ret; - char buffer[80]; + char buffer[256]; if (*cmd == '+') { flushn(); -- 2.23.0.581.g78d2f28ef7-goog _______________________________________________ isync-devel mailing list isync-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/isync-devel