![]() Be careful in specifying the search criteria and the folder correctly. For instance, to delete all emails from a particular sender, say, simply change the 'gmail_search' criterion as shown: gmail_search = '"from: Running the script will permanently delete the selected emails. You can specify different criteria as you would while performing an advanced search on your Gmail inbox. By default, the script is designed to delete all emails from your account which belong to the promotions category and are not marked as important.To do so, you can list all the available folders/labels to IMAP using 'imap.list()' command and then select the one you would like to delete emails from. ![]() You can change the folder to delete the emails from.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |