Fix deletion of two (or more) attachments

Deleting the first attachment triggers an update of the message. In case
of IMAP this is done by adding a new message and deleting the old one.
This changes the remote id of the message. The problem was that after
deleting the second attachment the update of the message tried to set
the old remote id. This fails because only the server can set a remote id.
This problem is fixed by clearing the remote id before starting an

Funded by: Intevation GmbH

BUG: 282792
FIXED-IN: 5.18.0
2 jobs for master in 38 minutes and 57 seconds (queued for 91 minutes and 25 seconds)
Status Name Job ID Coverage
passed build_clazy_clang_tidy #105868


passed linux kf5-qt5 qt5.15 #105867