-
Notifications
You must be signed in to change notification settings - Fork 94
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
imapfilter do not work with gmail. #287
Comments
Could it be that the commands need to be sent in base64? shouldn't imapfilter handle this itself? |
If I wait long enough for the imapfilter: timeout period expired while waiting to read data the log file don't chenge. |
Just an idea, instead of using oath2 it works for me with an app-password for an email on a google site acoount (free workspace acoount) |
Right what you say, but if it works with mutt, it MUST work with imapfilter too. Also because it seems that Google wants to remove support for this password app, sooner or later. And then it also serves me as an experience for other non-Google mailboxes, where the app-password is not really available, only aouth2. |
Imapfilter just supplies the XOAUTH2 string as stored in the account's Here's the code: Lines 184 to 188 in 2665c77
Now what seems to happen in this case is that apparently the server needs more data... Basically the fact that it did not respond with This explains why the timeout then happens. So probably something changed, as this used to work without a second exchange of data between imapfilter and the server. I tried to use contrib/mutt_oauth2.py script with the instructions at contrib/mutt_oauth2.py.README, but I couldn't even create a Google registration at console.developers.google.com, because the instructions seem to be out of date or something... |
Do you know what the 2nd exchange is about? Because if the oauth2 script can take the reply of the server, and based on it provide another string to send to the server, we could modify imapfilter so it handles all that somehow. |
This is what I also see in Google's own python/oauth2.py, that seems to have been migrated to Python 3: Maybe the |
@gollumone Can you give Google's python/oauth2.py a try, now that it's been migrated to Python 3? Maybe it produces a string that can authenticate you? Imapfilter had an example of using this script in the past (it was removed because the script had stopped working): Lines 132 to 169 in 30bca66
A few years a go I could personally authenticate to Gmail using the above example. |
Hi, I'm trying to use imapfilter with gmail using oauth2 as verification.
I used mutt_oauth2.py with pgp to create and store my keys.
Currently I managed to establish the connection with gmail, but subsequently, any command I can insert in the configuration file to test, imapfilter remains blocked and does not execute any requests.
This is my current config file:
and this is output of debug file:
as you can see the log stops at the server response key, the script remains suspended when
check_status
is executed.if I remove the
check_status
command, the script remains suspended when themailbox:select_all()
command is executed.In practice, every command that is sent to the server waits for a response that never arrives.
What am I doing wrong?
Thank you
The text was updated successfully, but these errors were encountered: