Skip to content

Use readline to overcome macOS input() restrictions

Norman Wood requested to merge normbw/mutt:master into master

Under macOS, for a python script launched in a terminal, input() accepts only 1024 characters. In the authcode flow, the authorization code that is read by the call to input() around line 200 is longer than this and will be truncated, causing token retrieval to fail. Importing readline resolves this, allowing input() to accept a longer character string.

Merge request reports