Create plugin for thunderbird to save attachments a specific folder

Hi, I wonder if is possible to create a thunderbird plugin that can extract the attachments in the current email into a specific folder automatically ,the attachments is created and named with the address of the email,such as AAA@gmail.com#name.xls

Everytime I save many attachments in the email from manys company’s quotation ,I have to click the attachment and open the file dialog to choose the specific folder and input he char to rename the attachments .

this plugin would be helpful and I hope not so hard to create

please let me know if is possible to make it
thanks for the attention