I'm using smtplib
in python to send emails. I want to fetch any replies to these emails.
Does imaplib
provide option to search inbox emails using message id of the parent email?
I'm sure it does because that's how email clients like outlook etc. get it done.
I want to do something like the code below -
result, data = mail.fetch(None, f'(PARENT-MESSAGE-ID "{parent_msg_id}")')
How can I achieve this?