marlam / msmtp

SMTP client with sendmail compatible interface
https://marlam.de/msmtp
GNU General Public License v3.0
176 stars 36 forks source link

increase size of eval buffer for large tokens #153

Closed eklabn closed 6 months ago

eklabn commented 6 months ago

Authentication tokens for OAuth2 can be much larger than the current 500 byte limit. Increase the buffer size to 2k to accommodate tokens produced for Microsoft office.com accounts.

marlam commented 6 months ago

The LINEBUFSIZE is not actually a limit here, the output can be of arbitrary length, see the loop with bufsize += LINEBUFSIZE.

eklabn commented 6 months ago

Indeed, the introduction of this loop is what solved my problem in the first place. Sorry for the noise.