MessageViewer: refactor deleteAttachment code

Move the core logic to Utils so it can be reused by newly introduced deleteAttachments() from KMail.

Merge request reports

Loading