Why does Kerio Connect automatically expunge messages marked for deletion through IMAP?

When deleting or moving items through IMAPInternet Message Access Protocol - One of the two most commonly used Internet standard protocols for e-mail retrieval, the other being POP3. protocol, the designed behavior is to mark messages for the performed action. The resulting behavior in some IMAP clients is to display these marked messages with a strikethrough. For most users, this behavior is not preferred, so Kerio Connect compensates by automatically performing (expunging) the marked action.

In the case of Apple Mail, the user is not presented with a strikethrough, and the performed action (move/delete) appears to the user as completed, however it does not ask the server to perform the expunge action. As a consequence of Kerio Connect automatically performing the expunge action, the 'undo' option in Apple Mail does not work.

Details

To disable the automatic expunge feature, you need to manually edit the mailserver.cfg file by following these steps:

Navigate to the install directory and locate the mailserver.cfg file:

  1. Open the file in a text editor and search for the string "AutoExpungeOnDelete".
  2. Change the default value from "1" to "0".
  3. Stop the Kerio Connect Service.
  4. Once Kerio Connect is completely stopped, save your changes to the file.
  5. Start the Kerio Connect Service.