bamthomas / aioimaplib

Python asyncio IMAP4rev1 client library
GNU General Public License v3.0
133 stars 59 forks source link

login() method logs passwords #93

Closed vEpiphyte closed 1 year ago

vEpiphyte commented 1 year ago

The login() method ends up resulting in the user credentials being logged at the debug log level ( through login() -> execute() -> send() ).

It would be nice if the password was not logged; but I don't see a great mechanism currently to omit a specific subset of data in the send() method.

bamthomas commented 1 year ago

hmm you're right. Maybe with a regexp ?

vEpiphyte commented 1 year ago

@bamthomas I put up a PR related to this for scrubbing arbitrary strings out of the send() command.