python imaplib: search emails with specific subject

 

result, numbers = mail.uid('search', None, '(SINCE "' + date_start + '" BEFORE "' + date_end + '") (SUBJECT "Failure")')

Leave a Reply

Your email address will not be published. Required fields are marked *