Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

oauth token is too big #4368

Open
Ruach opened this issue Aug 12, 2024 · 5 comments
Open

oauth token is too big #4368

Ruach opened this issue Aug 12, 2024 · 5 comments
Labels

Comments

@Ruach
Copy link

Ruach commented Aug 12, 2024

Hi all,
I configured my company email account with OAUTHBEARER and can read all emails.
However, I cannot reply to the email with "Oauth token is too big:250" message.

Based on this https://unix.stackexchange.com/questions/749205/neomutt-oauth-stopped-working
I installed the latest neomutt but still facing the same error.

System: Darwin 23.5.0 (arm64)
ncurses: ncurses 6.0.20150808 (compiled with 6.0.20150808)
libiconv: 1.11
libidn2: 2.3.7 (compiled with 2.3.7)
OpenSSL: OpenSSL 3.3.1 4 Jun 2024
storage: lmdb

Configure options: --disable-doc --disable-nls --lmdb --ssl

Compilation CFLAGS: -std=c11 -D_ALL_SOURCE=1 -D_GNU_SOURCE=1 -D__EXTENSIONS__ -D_XOPEN_SOURCE_EXTENDED -DNCURSES_WIDECHAR -I/usr/local/include -I/usr/local/include -I/opt/homebrew/Cellar/openssl@3/3.3.1/include -I/opt/homebrew/Cellar/libidn2/2.3.7/include -I/opt/homebrew/opt/lmdb/include -O2

Compile options:
-autocrypt +fcntl -flock -fmemopen +futimens +getaddrinfo -gnutls -gpgme
-gsasl -gss +hcache -homespool +idn -inotify -locales_hack -lua -nls -notmuch
+openssl +pgp +regex -sasl +smime -sqlite -truecolor

Thanks

@Ruach Ruach added the type:question Question label Aug 12, 2024
@gahr
Copy link
Member

gahr commented Aug 13, 2024

Unfortunately, I can't see the NeoMutt version from your output. What's the very first line of output from neomutt -v ? The latest version has the following limits, which I can't quite reconcile with what you're showing.

neomutt/conn/connaccount.c

Lines 239 to 244 in 8fea8f2

if ((!xoauth2 && (token_size > 512)) || (xoauth2 && (token_size > 4096)))
{
mutt_error(_("OAUTH token is too big: %ld"), (long) token_size);
FREE(&token);
return NULL;
}

@Ruach
Copy link
Author

Ruach commented Aug 13, 2024

@gahr Hi thanks for pointing the source code!

The version I've used for installing the neomutt is "NeoMutt 20240425-105-caffc1"

@Ruach
Copy link
Author

Ruach commented Aug 14, 2024

@gahr When I checked the source code I've used for compiling neomutt, it is exactly same as you've shared to me. I am not sure why it prints this message.

@gahr
Copy link
Member

gahr commented Aug 15, 2024

Is it literally Oauth token is too big:250, letter per letter, case per case, space per space? If that's the case, it's not coming from that part of the code ..

@gahr
Copy link
Member

gahr commented Sep 24, 2024

ping?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants