Dear Carlo,

On 21 March 2026 14:40, "Carlo Zancanaro" <[email protected]> 
wrote:

> Hi Laurent,
>
> On Sun, Mar 01 2026, Laurent Gatto wrote:
>> $ guix shell isync cyrus-sasl-xoauth2 -- mbsync uclouvain
>> IMAP error: selected SASL mechanism(s) not available;
>>    selected: XOAUTH2
>>    available: SCRAM-SHA-512 SCRAM-SHA-384 SCRAM-SHA-256 
>>    SCRAM-SHA-224
>> SCRAM-SHA-1 GS2-IAKERB GS2-KRB5 GSSAPI GSS-SPNEGO DIGEST-MD5 
>> EXTERNAL
>> OTP CRAM-MD5 PLAIN LOGIN ANONYMOUS
>>
>> As if cyrus-sasl-xoauth2 wasn't used at all.
>
> Have you tried including cyrus-sasl in the shell, too?
>
> I have both in the same profile in my configuration, and it 
> looks like
> cyrus-sasl sets some search paths that seem relevant.

Indeed, you were right, cyrus-sasl is needed (even if cyrus-sasl 
is a
dependency of isync). For completeness, I also add python below as 
the
xoauth authentication script needs it.

$ guix shell isync cyrus-sasl cyrus-sasl-xoauth2 python -- mbsync 
uclouvain

Irritatingly, gmail doesn't work anymore with cyrus-sasl-xoauth2.

$ guix shell isync cyrus-sasl cyrus-sasl-xoauth2 python -- mbsync 
gmail
IMAP command 'AUTHENTICATE XOAUTH2 
dXNlcj1sYXVyZW50LmdhdHRvQGdtYWlsLmNvbQFhdXRoPUJlYXJlciBleGR6d3ZwaGVvZWRqbWdkAQE='
 
returned an error: [AUTHENTICATIONFAILED] Invalid credentials 
(Failure)

It needs either of

$ guix shell isync cyrus-sasl -- mbsync gmail
$ guix shell isync -- mbsync gmail

But I can live with that.

Thank again!

Laurent


Reply via email to