I have been using Mozilla Thunderbird to manage my mail, I also set this program to download and save all mail + attachments to my harddrive.
However I have realised a big security issue as when I ran a virus scan recently, My Thunderbird mail directory had around 100 different types of trojans, ransomware, viruses. Some of these appear to be from mail years ago in my inbox.
When manually browsing my mail through a web browser I would never download a .exe type attachments as I am aware of the risk, How can I tell thunderbird to only download .txt, .png, .jpg attachments and ignore the rest.