You have a Outlook/Hotmail account and you want to delete true junk out of your "junk" folder
Outlook/Hotmail doesn't provide a very good way of deleting junk mail in the junk mail. The rules don't apply to the sender name, but it's pretty easy to identify junk by the sender name. By sender name I mean the John Doe in "John Doe" jdoe@domain.com
- Install python3 and pip (google this)
- Enable an app password for your outlook/hotmail: https://support.microsoft.com/en-us/account-billing/manage-app-passwords-for-two-step-verification-d6dc8c6d-4bf7-4851-ad95-6d07799387e9
- Login to hotmail
- Go to the top right and click your picture
- Click "My Microsoft Account"
- Click "Security" on the top banner
- Click "Advanced security options" (on this page, make sure that Two Step verification is enabled, if not, enable it)
- Click "Create New App password" (if you can't find this on the page, enable two step verification)
- Edit the config file with your email and app password
- Update dependencies in pip (really just tqdm): pip install -r requirements.txt --upgrade
- Run the script! You could set it to be a cron job or just run it on demand. python3 outlook_junk_filter.py