afterlogic / webmail-lite-8

Open-source webmail script for existing IMAP server
https://afterlogic.org/webmail-lite-8
GNU Affero General Public License v3.0
335 stars 71 forks source link

get messages error #69

Closed maltboy closed 4 years ago

maltboy commented 4 years ago

Hi,afterlogic-support Use Obtains message list for specified account and folder. I receive the following error. Unknown error. (TAG6 BAD Invalid UID command: 'SORT' Command should be ' UID |||'). I tried to use UID sorting, the result still prompts the error, please help me, thanks!

afterlogic-support commented 4 years ago

So are you saying the issue only occurs for a particular account? That looks like an issue with mailserver, can you post the debug logs here? You can also send us the account details via HelpDesk so we can check what's going on there; and though WebMail Lite doesn't come with guaranteed free support from Afterlogic, we would still like to take a look.

maltboy commented 4 years ago

1 2 3

This is a screenshot of the run.I did not find relevant information on the log. The problem appears in this type of mailbox, and other functions are normal. When it is installed in the list of messages, it prompts that the sort field is wrong.

afterlogic-support commented 4 years ago

I'm afraid that's not enough information to provide any insight. We'll need either logs or the account credentials. Thanks.

maltboy commented 4 years ago

This is a test mailbox. @.com password:*** You can use it for testing. thanks!

afterlogic-support commented 4 years ago

Thank you. We've removed the credentials from the post for privacy reasons. Can you please also provide IMAP host you're connecting to? Thanks.

maltboy commented 4 years ago

This is the configuration information.

I hope you can tell me the test results and provide solutions.

Thank you.

imap:s18.cn4e.com port:993 SSL

smap: s18.cn4e.com port:465 SSL

afterlogic-support commented 4 years ago

Thanks. It looks like IMAP server you use advertises SORT extension but doesn't provide correct support for it. To work around that, locate the following section in data/settings/modules/Mail.config.json configuration file:

"MessagesSortBy": [
    {
        "Allow": true,
        "List": [],
        "DefaultSortBy": "arrival",
        "DefaultSortOrder": "desc"
    },
    "array"
],

and set "Allow" to false there.

Hope this helps.

maltboy commented 4 years ago

Thank you. If it is changed to false, does it mean that the sorting function is disabled? Will it affect my normal sort function.

afterlogic-support commented 4 years ago

By default, WebMail only sorts mail messages by date in reverse order. It's possible to configure message sorting but that requires IMAP SORT to work properly - which apparently isn't the case, so turning sorting off seems to be the only viable approach. If you wish to use sorting on that server, consider contacting email service provider in this regard.