Just to thank @fcc again and to mention that it worked like a charm. I turned on 2FA and just had to enter the code once on my google account that I use for gmail. When I next retrieved gmail with getmail, I got an error that I needed to set an app password. I did so and it worked. So, I don't have to change around a bunch of accounts to my other unless I want to.
Also, I use msmtp to send mail through mutt. I had to copy that same app password to my $HOME/.msmtprc file. (as opposed to creating a separate app pass for msmtp).
Eventually, I'll have to add this to my mutt page.
|