Restore S/MIME class after close
* src/folder-events.cpp (BeforeMove): Do not restore the message in close as it has its own code with different target folder. * src/mail.cpp (Mail::close): Add new parameter restoreSMIMEClass to restore the S/MIME message class after close.
This fixes issues, especially if a mail was opened in
a new window that the GpgOL Message class was still
left in MAPI.
- GnuPG-Bug-Id: T4543