Hi Gabriel,
On 05.08.2024 17.00, Gabriel Filion wrote:
When using the text UI, when it comes time to send via SMTP and I
need to connect to an MTA in order to send the email as an
authenticated user, if I happen to mistype the password I get an
error back from the server about the failed login.
However, in that situation it's not possible to tell reportbug to
prompt me again for a new password. The only options I have is to
resend with the same credentials without asking, save and quit or
abort entirely. So currently, the only way to fix my typo for the
password is to save the report and then relaunch again.
If the reason is a mistyped password then reportbug should automatically
ask for the password again on the next try. Reportbug tries to recognize
this based on the error raised by smtplib. The code is here:
https://sources.debian.org/src/reportbug/13.0.1/reportbug/submit.py/#L486