I make a Telegram bot to manage the mail.Authorization question.I would like the bot to specify an email address and then manage incoming/outgoing messages through communication with this bot.View, delete messages, etc.I’m writing a python application for this, which connects to the mail using the imap protocol.For such a connection, you need to specify a username and password.So far I can’t think of anything better than simply requesting a username and password through a bot.Accordingly, you will have to store user passwords on your computer ekande(Naturally in encrypted form).
The problem is that I would have thought twice before transferring the login and password to a third-party application, especially to Telegram bot.This approach does not seem reliable for most users.
Is it normal to request a username and password from the user? Is this against the personal data protection law? Are there any other, perhaps more correct options for authorization in mail services(for example, for Yandex mail or gmail)?
Are there any other, perhaps more correct options for authorization in mail services(for example, for Yandex mail or gmail)?
there is, but in
helps 2 factor factor in Gmila and Yandex