You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
But if we do a search by sender, which we can see perfectly well in the search for all emails - we get an empty answer.
client = Imbox("imap.gazeta.pl", "[email protected]", "q3nDgRjmtzrMUh9f")
messages = client.messages(sent_from="[email protected]")
for uid, message in messages:
print(f"{uid} -> {message.sent_from}")
And of course I realize that it is possible to get the answer I need by going through all the emails. But this is, to put it mildly, a horror for an account with a lot of emails.
You all can check the behavior of the code personally with my email and password in the topic
Any ideas?
The text was updated successfully, but these errors were encountered:
Hello.
I ran into a problem. The sent_from attribute does not work correctly on some mail domains - specifically on gazeta.pl.
I have encountered exactly the same problem in the imaplib library. But I decided to write here.
This code works correctly. We see the following log:
But if we do a search by sender, which we can see perfectly well in the search for all emails - we get an empty answer.
And of course I realize that it is possible to get the answer I need by going through all the emails. But this is, to put it mildly, a horror for an account with a lot of emails.
You all can check the behavior of the code personally with my email and password in the topic
Any ideas?
The text was updated successfully, but these errors were encountered: