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

Filter multiple emails by "sent_from" feature doesn't work when multiple parameters are used. #238

Open
Ezj-Amon opened this issue Apr 21, 2023 · 2 comments

Comments

@Ezj-Amon
Copy link

I want to filter multiple emails in the 'sent_from' parameter of messages, but it only works when the parameter is a single email address. I tried giving it a list or tuple, but it doesn't work.

for example:
it works:
all_inbox_messages = imbox.messages(sent_from='[email protected]')

it doesn't work:
all_inbox_messages = imbox.messages(sent_from=['[email protected]','[email protected]'])

@AT0myks
Copy link
Contributor

AT0myks commented Apr 23, 2023

This is not supported right now, giving a sequence to sent_from will produce a search for (FROM "['[email protected]', '[email protected]']") which means that it will search for emails sent by the address ['[email protected]', '[email protected]']. This is obviously not a valid address, and that's why no results are returned.

@Ezj-Amon
Copy link
Author

This is not supported right now, giving a sequence to sent_from will produce a search for (FROM "['[email protected]', '[email protected]']") which means that it will search for emails sent by the address ['[email protected]', '[email protected]']. This is obviously not a valid address, and that's why no results are returned.

OK,thankyou

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