AppleMail & IMAP: Script to delete email fully

Hi there,

I use IMAP, and when I delete a message the message gets moved to the Trash. I manually delete items from the trash myself, as many times I delete something by accident and would like to undo the delete. I would like to have the script ‘fully’ delete the message… perhaps delete the message twice (once from the mailbox and then again from the trash), and perhaps map this to a keyboard shortcut or toolbar icon.

Does anyone have an idea how to do this? Thank you!