Skip to content
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

sent_from arg not works at some emails #243

Open
fakeastap opened this issue Feb 22, 2025 · 2 comments
Open

sent_from arg not works at some emails #243

fakeastap opened this issue Feb 22, 2025 · 2 comments

Comments

@fakeastap
Copy link

fakeastap commented Feb 22, 2025

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.

    client = Imbox(“imap.gazeta.pl”, “[email protected]”, “q3nDgRjmtzrMUh9f”)
    messages = client.messages()
    for uid, message in messages:
        print(f“{uid} -> {message.sent_from}”)

This code works correctly. We see the following log:

b'1' -> [{'name': 'Zespół Gazeta.pl', 'email': '[email protected]'}]
b'2' -> [{'name': 'GMX Sicherheit', 'email': '[email protected]'}]
b'3' -> [{'name': 'GMX Sicherheit', 'email': '[email protected]'}]
b'4' -> [{'name': 'GMX Sicherheit', 'email': '[email protected]'}]
b'5' -> [{'name': 'GMX Sicherheit', 'email': '[email protected]'}]

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?

@sebix
Copy link

sebix commented Feb 22, 2025

You just published your IMAP Password!

Remove your password from the post and immediately change the password at your provider.

@fakeastap
Copy link
Author

You just published your IMAP Password!

Remove your password from the post and immediately change the password at your provider.

Thank you, I know. This is a test email account, you can use it for any purpose. I left it there on purpose to make it easy to test the problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants