This program can be used to fetch mail attachment automatically and get other info of an email. Just need to input the address and the password of the email account, then input the path to download the attachments and the earlist date of mail you need.
Programmed by Python3.6.5 and poplib package is used.