add check-attachment hook

i added a hook to allow checks on attachments. 
I need this to warm me if i attach .odt files since nobody is able to read them in bigger companies.