Diese Seite auf Deutsch anzeigen?

MailStore – Archiving from MDaemon mail server returns error message “Unable to parse server response”

ID: 13796

Summary

When archiving from an MDaemon Email Server, MailStore may return an “Unable to parse server response” error when receiving an invalid UID from MDaemon.

Cause

The error message is generic and indicates that the MDaemon’s IMAP server returned an incorrect or unexpected response. There is a known issue in MDaemon where MDaemon returns a “UID 0”, while the IMAP specification requires an integer greater than zero.

Resolution

There are two ways to resolve this within MDaemon Email Server.
Remove the IMAP.MRK file for the folder in question. Note that this will reset all message flags in the folder, causing all messages to appear as UNSEEN, UNREAD, and removing flags such as replied/forwarded.

 

  1. Open the MDaemon user interface > Accounts > User > Note the path to the user’s mailbox.
  2. Open Windows Explorer to the path identified above.
  3. Navigate into the folder structure to find the folder in question. Folders will be shown on disk with a .IMAP extension.
  4. Rename or remove the IMAP.MRK file.

MailStore will now be able to archive messages from this folder, and IMAP clients will re-download the contents with all messages flag reset as noted above.

 

Create a new folder and move all messages. This approach requires more manual steps, but preserves flags on messages. Note that while you can perform these steps using an IMAP client, it is best to close all IMAP clients and use MDaemon’s webmail interface to avoid conflicts.

  1. Login to the user’s mailbox using MDaemon’s webmail interface.
  2. Open Options > Folders, find the problematic folder.
  3. Create a new temporary folder to replace the original folder.
  4. Move any subfolders from below the problematic folder to be subfolders of the temporary folder.
  5. Return to the message list.
  6. Move all messages from the problem folder to the temporary folder.
  7. Go to Options > Folders.
  8. Delete “problemfolder”, and rename “problemfolder-new” back to “problemfolder”.
  9. MailStore will now be able to archive messages from the folder in question.

 

Additional Information

MDaemon Email Server already resolved the bug that caused the incorrect UID value to be set on newly created folders, but if an existing folder has UID 0 it must be corrected manually.
Even on versions of MDaemon where it is possible to create folders with UID 0, the steps described in this article will resolve the issue.

To confirm if you are experiencing this issue, review either MDaemon’s IMAP log or MailStore’s IMAP connection log for the string “UID 0”.
MDaemon will not return a UID starting with zero, so it is not necessary to understand the IMAP protocol, simply finding the string “UID 0” is sufficient to confirm if you are experiencing this issue.

Review Notes on Antivirus Software for other possible causes of this error message.