RE: Anyone know if I can prevent the attachment from beeing deleted when deleting a message?
How would you locate the attachment if you can't do it in the message? I mean, what value is it for you if you can't browse it after you've deleted the message?
You can manage this by creating a new "edit message" screen and changing the behaviour when deleting a message. But then the attachment would just lie there, without any links, which would create lots of orphaned attachments. I don't think that this is a good solution.