Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Version 1.9 does'nt support folders anymore #4869

Closed
1hubber opened this issue Mar 31, 2021 · 14 comments
Closed

Version 1.9 does'nt support folders anymore #4869

1hubber opened this issue Mar 31, 2021 · 14 comments

Comments

@1hubber
Copy link

1hubber commented Mar 31, 2021

Expected behavior

former versions did at least show unexpanded folders (only one level, no subfolders) which could be expanded

Actual behavior

now it shows every single mailbox, which in my case are thousends of mailboxes (in dedicated folders or subfolders)

Mail app

Mail app version: (see apps admin page, e.g. 0.5.3)
1.9.4 – 2021-03-25

Mailserver or service: (e.g. Outlook, Yahoo, Gmail, Exchange,...)
own, perfectly running mailserver with postfix, dovecot etc.

Server configuration

Operating system: (e.g. Debian 8)
CentOS 8

Web server: (e.g. Apache, Nginx,...)
Apache 2.4

Database: (e.g. MariaDB, SQLite or PostgreSQL)
MariaDB 10.5.9

PHP version: (e.g. 7.0)
7.3

Nextcloud Version: (see admin page, e.g. 13.0.2)
20.0.8

Client configuration

Browser: (e.g. Firefox 48)
firefox, chrome

Operating system: (e.g. Arch Linux)
CentOS 8

@ChristophWurst
Copy link
Member

I don't follow.

Are you saying that instead of a deep hierarchy everything is now shown on the same level?

@1hubber
Copy link
Author

1hubber commented Mar 31, 2021

Yes !

@no-response no-response bot removed the needs info label Mar 31, 2021
@ChristophWurst
Copy link
Member

does the oc_mail_mailboxes.delimiter correspond to the character that is supposed to separate hierarchy of your oc_mail_mailboxes.names?

@1hubber
Copy link
Author

1hubber commented Mar 31, 2021

I think so.
The oc_mail_mailboxes.delimiter is '/' in the database
An entry in oc_mail_mailboxes.name is Level-1_Folder/mbox_name or Level-1_Folder/Level-2_folder/mbox_name for example

@1hubber
Copy link
Author

1hubber commented Mar 31, 2021

If it helps, here is a complete row of oc_mail_mailboxes table:

id:
   (incremented mailbox-ID)

name:
   ORDERS/SELLERS/name-of-mailbox   

account_id:
   (incremented account-ID)
   
attributes:
   ["\\subscribed","\\noinferiors","\\unmarked","\\hasnochildren"]        

delimiter:
   /
   
messages:
   0
   
unseen:
   0

selectable
   1
 
 special_use
   []
   
sync_new_lock
   NULL
   
snyc_vanished_lock
   NULL
   
snyc_*_token
   all the same token     
    
sync_in_background
   0

@miaulalala
Copy link
Contributor

Hi 1hubber, has markdown removed the delimiter line in your text or do you not have a delimiter column in what you posted above?

@1hubber
Copy link
Author

1hubber commented Apr 2, 2021

Yes there is a delimiter column in the row. I just forgot to paste it.
I have edited it now.

@miaulalala
Copy link
Contributor

Yes there is a delimiter column in the row. I just forgot to paste it.
I have edited it now.

Looks like markdown is not linking it - can you please try surrounding your text with three backticks like so: ``` ?

@1hubber
Copy link
Author

1hubber commented Apr 2, 2021

Done !
Insert code button creates 2 backticks only

@miaulalala
Copy link
Contributor

Perfect, thanks! Could you have a look at your nextcloud.log and the horde_imap.log to see if there are any erros in regards to the delimiter - or anything unusual in general? You can find those logs in the data folder of your nextcloud root.

@1hubber
Copy link
Author

1hubber commented Apr 2, 2021

Thank you !
I couldn't find any strange output in nextcloud.log.

Here is an expample part of horde_imap.log

>> Fri, 02 Apr 2021 14:04:18 +0000
>> Connection to: imap://imap.XXXX.XXX/
>> Server connection took 0.0075 seconds.
S: * OK [CAPABILITY IMAP4rev1 SASL-IR LOGIN-REFERRALS ID ENABLE IDLE LITERAL+ STARTTLS AUTH=PLAIN AUTH=LOGIN] Dovecot ready.
C: 1 AUTHENTICATE PLAIN [INITIAL CLIENT RESPONSE (username: XYZ@XXXX.XXX)]
S: 1 OK [CAPABILITY IMAP4rev1 SASL-IR LOGIN-REFERRALS ID ENABLE IDLE SORT SORT=DISPLAY THREAD=REFERENCES THREAD=REFS THREAD=ORDEREDSUBJECT MULTIAPPEND URL-PARTIAL CATENATE UNSEL
ECT CHILDREN NAMESPACE UIDPLUS LIST-EXTENDED I18NLEVEL=1 CONDSTORE QRESYNC ESEARCH ESORT SEARCHRES WITHIN CONTEXT=SEARCH LIST-STATUS BINARY MOVE SNIPPET=FUZZY PREVIEW=FUZZY LITE
RAL+ NOTIFY SPECIAL-USE QUOTA] Logged in
>> Command 1 took 0.017 seconds.
>> CACHE: Using the OCA\Mail\Cache\Cache storage driver.
C: 2 ENABLE QRESYNC
C: 3 STATUS LEVEL1_DIR/MAILBOX1 (MESSAGES RECENT UIDNEXT UIDVALIDITY UNSEEN)
S: * ENABLED QRESYNC
S: 2 OK Enabled (0.001 + 0.000 secs).
>> Command 2 took 0.0047 seconds.
S: * STATUS LEVEL1_DIR/MAILBOX2 (MESSAGES 0 RECENT 0 UIDNEXT 1 UIDVALIDITY 1560264819 UNSEEN 0)
S: 3 OK Status completed (0.021 + 0.000 + 0.020 secs).
>> Command 3 took 0.0285 seconds.
C: 4 LOGOUT
S: * BYE Logging out
S: 4 OK Logout completed (0.001 + 0.000 secs).
>> Command 4 took 0.0033 seconds.
------------------------------

The status lines show that imap knows the structure of the folder and the mailbox(es) inside but the Mail app only shows the mailboxes on top level and no name of the folder(s)
So it looks like the problem would be in the mail app.
Version 1.6 showed at least the top level folders with the mailbox(es) inside, but no deeper subfolders

To make it clear, I don't use maildir but mailbox(es) in real (sub)directories
The structure is like this:

   INBOX
   Sent
   Drafts
   Trash
   0-to-n_mboxes
   Level-1_directory-1
      0-to-n_mboxes
      Level-2_subdirectory-1
         0-to-n_mboxes
         Level-3_subdirectory-1
            0-to-n_mboxes
            Level-4 subdirectory-1
               0-to-n_mboxes
            Level-4 subdirectory-n
            0-to-n_mboxes                       
         Level-3_subdirectory-n
         0-to-n_mboxes
      Level-2_subdirectory-n
      0-to-n_mboxes
   Level-1_directory-n 
   0-to-n_mboxes           

Currently I still use the mail app from GroupOffice (also PHP based) in production, but I want to fully migrate to Nextcloud

@miaulalala
Copy link
Contributor

Thanks for the detailed lookup 1hubber! Have you set your loglevel to debug since nothing seems to be logged in your nextcloud.log? Unfortunately, I can't reproduce this issue, and I would at least expect some error messages in regards to not resolving the delimiter.

@1hubber
Copy link
Author

1hubber commented Apr 6, 2021

Hi,
thank you !

Debug and log setting is:
'debug' => true,
'loglevel' => 0,

Here is a part of the nextcloud.log

{"reqId":"YGwtpuYtOzyC2gy3gu50aQAAAEs","level":0,"time":"2021-04-06T09:45:10+00:00","remoteAddr":"XYZ.XYZ.XYZ.XYZ","user":"UUUU","app":"login_notes","method":"POST","url":"/index.php/apps/mail/api/mailboxes/3384/sync","message":"/appinfo/app.php is deprecated, use \\OCP\\AppFramework\\Bootstrap\\IBootstrap on the application class instead.","userAgent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.82 Safari/537.36","version":"20.0.8.1"}
{"reqId":"YGwtpuYtOzyC2gy3gu50aQAAAEs","level":0,"time":"2021-04-06T09:45:10+00:00","remoteAddr":"XYZ.XYZ.XYZ.XYZ","user":"UUUU","app":"mail","method":"POST","url":"/index.php/apps/mail/api/mailboxes/3384/sync","message":"Locking mailbox 3384 for new messages sync","userAgent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.82 Safari/537.36","version":"20.0.8.1"}
{"reqId":"YGwtpuYtOzyC2gy3gu50aQAAAEs","level":0,"time":"2021-04-06T09:45:10+00:00","remoteAddr":"XYZ.XYZ.XYZ.XYZ","user":"UUUU","app":"mail","method":"POST","url":"/index.php/apps/mail/api/mailboxes/3384/sync","message":"Locking mailbox 3384 for changed messages sync","userAgent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.82 Safari/537.36","version":"20.0.8.1"}
{"reqId":"YGwtpuYtOzyC2gy3gu50aQAAAEs","level":0,"time":"2021-04-06T09:45:10+00:00","remoteAddr":"XYZ.XYZ.XYZ.XYZ","user":"UUUU","app":"mail","method":"POST","url":"/index.php/apps/mail/api/mailboxes/3384/sync","message":"Locking mailbox 3384 for vanished messages sync","userAgent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.82 Safari/537.36","version":"20.0.8.1"}
{"reqId":"YGwtpuYtOzyC2gy3gu50aQAAAEs","level":0,"time":"2021-04-06T09:45:10+00:00","remoteAddr":"XYZ.XYZ.XYZ.XYZ","user":"UUUU","app":"mail","method":"POST","url":"/index.php/apps/mail/api/mailboxes/3384/sync","message":"partial sync 1:INBOX - get all known UIDs took 0s","userAgent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.82 Safari/537.36","version":"20.0.8.1"}
{"reqId":"YGwtpuYtOzyC2gy3gu50aQAAAEs","level":0,"time":"2021-04-06T09:45:10+00:00","remoteAddr":"XYZ.XYZ.XYZ.XYZ","user":"UUUU","app":"mail","method":"POST","url":"/index.php/apps/mail/api/mailboxes/3384/sync","message":"partial sync 1:INBOX - get new messages via Horde took 0s","userAgent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.82 Safari/537.36","version":"20.0.8.1"}
{"reqId":"YGwtpuYtOzyC2gy3gu50aQAAAEs","level":0,"time":"2021-04-06T09:45:10+00:00","remoteAddr":"XYZ.XYZ.XYZ.XYZ","user":"UUUU","app":"mail","method":"POST","url":"/index.php/apps/mail/api/mailboxes/3384/sync","message":"partial sync 1:INBOX - persist new messages took 0s","userAgent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.82 Safari/537.36","version":"20.0.8.1"}
{"reqId":"YGwtpuYtOzyC2gy3gu50aQAAAEs","level":0,"time":"2021-04-06T09:45:10+00:00","remoteAddr":"XYZ.XYZ.XYZ.XYZ","user":"UUUU","app":"mail","method":"POST","url":"/index.php/apps/mail/api/mailboxes/3384/sync","message":"partial sync 1:INBOX - get changed messages via Horde took 0s","userAgent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.82 Safari/537.36","version":"20.0.8.1"}
{"reqId":"YGwtpuYtOzyC2gy3gu50aQAAAEs","level":0,"time":"2021-04-06T09:45:10+00:00","remoteAddr":"XYZ.XYZ.XYZ.XYZ","user":"UUUU","app":"mail","method":"POST","url":"/index.php/apps/mail/api/mailboxes/3384/sync","message":"partial sync 1:INBOX - persist changed messages took 0s","userAgent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.82 Safari/537.36","version":"20.0.8.1"}
{"reqId":"YGwtpuYtOzyC2gy3gu50aQAAAEs","level":0,"time":"2021-04-06T09:45:10+00:00","remoteAddr":"XYZ.XYZ.XYZ.XYZ","user":"UUUU","app":"mail","method":"POST","url":"/index.php/apps/mail/api/mailboxes/3384/sync","message":"partial sync 1:INBOX - get vanished messages via Horde took 0s","userAgent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.82 Safari/537.36","version":"20.0.8.1"}
{"reqId":"YGwtpuYtOzyC2gy3gu50aQAAAEs","level":0,"time":"2021-04-06T09:45:10+00:00","remoteAddr":"XYZ.XYZ.XYZ.XYZ","user":"UUUU","app":"mail","method":"POST","url":"/index.php/apps/mail/api/mailboxes/3384/sync","message":"partial sync 1:INBOX - persist new messages took 0s","userAgent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.82 Safari/537.36","version":"20.0.8.1"}
{"reqId":"YGwtpuYtOzyC2gy3gu50aQAAAEs","level":0,"time":"2021-04-06T09:45:10+00:00","remoteAddr":"XYZ.XYZ.XYZ.XYZ","user":"UUUU","app":"mail","method":"POST","url":"/index.php/apps/mail/api/mailboxes/3384/sync","message":"partial sync 1:INBOX took 0s","userAgent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.82 Safari/537.36","version":"20.0.8.1"}
{"reqId":"YGwtpuYtOzyC2gy3gu50aQAAAEs","level":0,"time":"2021-04-06T09:45:10+00:00","remoteAddr":"XYZ.XYZ.XYZ.XYZ","user":"UUUU","app":"mail","method":"POST","url":"/index.php/apps/mail/api/mailboxes/3384/sync","message":"Unlocking mailbox 3384 from vanished messages sync","userAgent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.82 Safari/537.36","version":"20.0.8.1"}
{"reqId":"YGwtpuYtOzyC2gy3gu50aQAAAEs","level":0,"time":"2021-04-06T09:45:10+00:00","remoteAddr":"XYZ.XYZ.XYZ.XYZ","user":"UUUU","app":"mail","method":"POST","url":"/index.php/apps/mail/api/mailboxes/3384/sync","message":"Unlocking mailbox 3384 from changed messages sync","userAgent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.82 Safari/537.36","version":"20.0.8.1"}
{"reqId":"YGwtpuYtOzyC2gy3gu50aQAAAEs","level":0,"time":"2021-04-06T09:45:10+00:00","remoteAddr":"XYZ.XYZ.XYZ.XYZ","user":"UUUU","app":"mail","method":"POST","url":"/index.php/apps/mail/api/mailboxes/3384/sync","message":"Unlocking mailbox 3384 from new messages sync","userAgent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.82 Safari/537.36","version":"20.0.8.1"}
{"reqId":"YGwtpuYtOzyC2gy3gu50aQAAAEs","level":0,"time":"2021-04-06T09:45:10+00:00","remoteAddr":"XYZ.XYZ.XYZ.XYZ","user":"UUUU","app":"mail","method":"POST","url":"/index.php/apps/mail/api/mailboxes/3384/sync","message":"Account 1 has 168 messages for threading","userAgent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.82 Safari/537.36","version":"20.0.8.1"}
{"reqId":"YGwtpuYtOzyC2gy3gu50aQAAAEs","level":0,"time":"2021-04-06T09:45:10+00:00","remoteAddr":"XYZ.XYZ.XYZ.XYZ","user":"UUUU","app":"mail","method":"POST","url":"/index.php/apps/mail/api/mailboxes/3384/sync","message":"Threading 168 messages - build ID table took 0s","userAgent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.82 Safari/537.36","version":"20.0.8.1"}
{"reqId":"YGwtpuYtOzyC2gy3gu50aQAAAEs","level":0,"time":"2021-04-06T09:45:10+00:00","remoteAddr":"XYZ.XYZ.XYZ.XYZ","user":"UUUU","app":"mail","method":"POST","url":"/index.php/apps/mail/api/mailboxes/3384/sync","message":"Threading 168 messages - build root container took 0s","userAgent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.82 Safari/537.36","version":"20.0.8.1"}
{"reqId":"YGwtpuYtOzyC2gy3gu50aQAAAEs","level":0,"time":"2021-04-06T09:45:10+00:00","remoteAddr":"XYZ.XYZ.XYZ.XYZ","user":"UUUU","app":"mail","method":"POST","url":"/index.php/apps/mail/api/mailboxes/3384/sync","message":"Threading 168 messages - free ID table took 0s","userAgent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.82 Safari/537.36","version":"20.0.8.1"}
{"reqId":"YGwtpuYtOzyC2gy3gu50aQAAAEs","level":0,"time":"2021-04-06T09:45:10+00:00","remoteAddr":"XYZ.XYZ.XYZ.XYZ","user":"UUUU","app":"mail","method":"POST","url":"/index.php/apps/mail/api/mailboxes/3384/sync","message":"Threading 168 messages - prune containers took 0s","userAgent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.82 Safari/537.36","version":"20.0.8.1"}
{"reqId":"YGwtpuYtOzyC2gy3gu50aQAAAEs","level":0,"time":"2021-04-06T09:45:10+00:00","remoteAddr":"XYZ.XYZ.XYZ.XYZ","user":"UUUU","app":"mail","method":"POST","url":"/index.php/apps/mail/api/mailboxes/3384/sync","message":"Threading 168 messages - group by subject took 0s","userAgent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.82 Safari/537.36","version":"20.0.8.1"}
{"reqId":"YGwtpuYtOzyC2gy3gu50aQAAAEs","level":0,"time":"2021-04-06T09:45:10+00:00","remoteAddr":"XYZ.XYZ.XYZ.XYZ","user":"UUUU","app":"mail","method":"POST","url":"/index.php/apps/mail/api/mailboxes/3384/sync","message":"Threading 168 messages took 0s","userAgent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.82 Safari/537.36","version":"20.0.8.1"}
{"reqId":"YGwtpuYtOzyC2gy3gu50aQAAAEs","level":0,"time":"2021-04-06T09:45:10+00:00","remoteAddr":"XYZ.XYZ.XYZ.XYZ","user":"UUUU","app":"mail","method":"POST","url":"/index.php/apps/mail/api/mailboxes/3384/sync","message":"Account 1 has 147 threads","userAgent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.82 Safari/537.36","version":"20.0.8.1"}
{"reqId":"YGwtpuYtOzyC2gy3gu50aQAAAEs","level":0,"time":"2021-04-06T09:45:10+00:00","remoteAddr":"XYZ.XYZ.XYZ.XYZ","user":"UUUU","app":"mail","method":"POST","url":"/index.php/apps/mail/api/mailboxes/3384/sync","message":"Account 1 has 0 messages with a new thread IDs","userAgent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.82 Safari/537.36","version":"20.0.8.1"}
{"reqId":"YGwtu9mx0R@pAzTxEiIoUwAAAIU","level":0,"time":"2021-04-06T09:45:31+00:00","remoteAddr":"XYZ.XYZ.XYZ.XYZ","user":"UUUU","app":"contacts","method":"PUT","url":"/index.php/apps/user_status/heartbeat","message":"/appinfo/app.php is deprecated, use \\OCP\\AppFramework\\Bootstrap\\IBootstrap on the application class instead.","userAgent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.82 Safari/537.36","version":"20.0.8.1"}
{"reqId":"YGwtu9mx0R@pAzTxEiIoUwAAAIU","level":0,"time":"2021-04-06T09:45:31+00:00","remoteAddr":"XYZ.XYZ.XYZ.XYZ","user":"UUUU","app":"groupfolders","method":"PUT","url":"/index.php/apps/user_status/heartbeat","message":"/appinfo/app.php is deprecated, use \\OCP\\AppFramework\\Bootstrap\\IBootstrap on the application class instead.","userAgent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.82 Safari/537.36","version":"20.0.8.1"}
{"reqId":"YGwtu9mx0R@pAzTxEiIoUwAAAIU","level":0,"time":"2021-04-06T09:45:31+00:00","remoteAddr":"XYZ.XYZ.XYZ.XYZ","user":"UUUU","app":"files_external","method":"PUT","url":"/index.php/apps/user_status/heartbeat","message":"/appinfo/app.php is deprecated, use \\OCP\\AppFramework\\Bootstrap\\IBootstrap on the application class instead.","userAgent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.82 Safari/537.36","version":"20.0.8.1"}
{"reqId":"YGwtu9mx0R@pAzTxEiIoUwAAAIU","level":0,"time":"2021-04-06T09:45:31+00:00","remoteAddr":"XYZ.XYZ.XYZ.XYZ","user":"UUUU","app":"files_sharing","method":"PUT","url":"/index.php/apps/user_status/heartbeat","message":"/appinfo/app.php is deprecated, use \\OCP\\AppFramework\\Bootstrap\\IBootstrap on the application class instead.","userAgent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.82 Safari/537.36","version":"20.0.8.1"}
{"reqId":"YGwtu9mx0R@pAzTxEiIoUwAAAIU","level":0,"time":"2021-04-06T09:45:31+00:00","remoteAddr":"XYZ.XYZ.XYZ.XYZ","user":"UUUU","app":"files_texteditor","method":"PUT","url":"/index.php/apps/user_status/heartbeat","message":"/appinfo/app.php is deprecated, use \\OCP\\AppFramework\\Bootstrap\\IBootstrap on the application class instead.","userAgent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.82 Safari/537.36","version":"20.0.8.1"}
{"reqId":"YGwtu9mx0R@pAzTxEiIoUwAAAIU","level":0,"time":"2021-04-06T09:45:31+00:00","remoteAddr":"XYZ.XYZ.XYZ.XYZ","user":"UUUU","app":"login_notes","method":"PUT","url":"/index.php/apps/user_status/heartbeat","message":"/appinfo/app.php is deprecated, use \\OCP\\AppFramework\\Bootstrap\\IBootstrap on the application class instead.","userAgent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.82 Safari/537.36","version":"20.0.8.1"}
{"reqId":"YGwtu9mx0R@pAzTxEiIoVAAAAIg","level":0,"time":"2021-04-06T09:45:31+00:00","remoteAddr":"XYZ.XYZ.XYZ.XYZ","user":"UUUU","app":"contacts","method":"GET","url":"/ocs/v2.php/apps/user_status/api/v1/user_status","message":"/appinfo/app.php is deprecated, use \\OCP\\AppFramework\\Bootstrap\\IBootstrap on the application class instead.","userAgent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.82 Safari/537.36","version":"20.0.8.1"}
{"reqId":"YGwtu9mx0R@pAzTxEiIoVAAAAIg","level":0,"time":"2021-04-06T09:45:31+00:00","remoteAddr":"XYZ.XYZ.XYZ.XYZ","user":"UUUU","app":"groupfolders","method":"GET","url":"/ocs/v2.php/apps/user_status/api/v1/user_status","message":"/appinfo/app.php is deprecated, use \\OCP\\AppFramework\\Bootstrap\\IBootstrap on the application class instead.","userAgent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.82 Safari/537.36","version":"20.0.8.1"}
{"reqId":"YGwtu9mx0R@pAzTxEiIoVAAAAIg","level":0,"time":"2021-04-06T09:45:31+00:00","remoteAddr":"XYZ.XYZ.XYZ.XYZ","user":"UUUU","app":"files_external","method":"GET","url":"/ocs/v2.php/apps/user_status/api/v1/user_status","message":"/appinfo/app.php is deprecated, use \\OCP\\AppFramework\\Bootstrap\\IBootstrap on the application class instead.","userAgent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.82 Safari/537.36","version":"20.0.8.1"}
{"reqId":"YGwtu9mx0R@pAzTxEiIoVAAAAIg","level":0,"time":"2021-04-06T09:45:31+00:00","remoteAddr":"XYZ.XYZ.XYZ.XYZ","user":"UUUU","app":"files_sharing","method":"GET","url":"/ocs/v2.php/apps/user_status/api/v1/user_status","message":"/appinfo/app.php is deprecated, use \\OCP\\AppFramework\\Bootstrap\\IBootstrap on the application class instead.","userAgent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.82 Safari/537.36","version":"20.0.8.1"}
{"reqId":"YGwtu9mx0R@pAzTxEiIoVAAAAIg","level":0,"time":"2021-04-06T09:45:31+00:00","remoteAddr":"XYZ.XYZ.XYZ.XYZ","user":"UUUU","app":"files_texteditor","method":"GET","url":"/ocs/v2.php/apps/user_status/api/v1/user_status","message":"/appinfo/app.php is deprecated, use \\OCP\\AppFramework\\Bootstrap\\IBootstrap on the application class instead.","userAgent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.82 Safari/537.36","version":"20.0.8.1"}

After changing names of directory and mailbox to FOLDER-1/mbox-1_in_FOLDER-1 which was craeted with id 8401
and manually syncing:

{"reqId":"YGwtu9mx0R@pAzTxEiIoVAAAAIg","level":0,"time":"2021-04-06T09:45:31+00:00","remoteAddr":"XYZ.XYZ.XYZ.XYZ","user":"UUUU","app":"login_notes","method":"GET","url":"/ocs/v2.php/apps/user_status/api/v1/user_status","message":"/appinfo/app.php is deprecated, use \\OCP\\AppFramework\\Bootstrap\\IBootstrap on the application class instead.","userAgent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.82 Safari/537.36","version":"20.0.8.1"}
{"reqId":"YGwtwNmx0R@pAzTxEiIoVgAAAJg","level":0,"time":"2021-04-06T09:45:36+00:00","remoteAddr":"XYZ.XYZ.XYZ.XYZ","user":"UUUU","app":"contacts","method":"GET","url":"/index.php/apps/mail/api/messages?mailboxId=8401&limit=20","message":"/appinfo/app.php is deprecated, use \\OCP\\AppFramework\\Bootstrap\\IBootstrap on the application class instead.","userAgent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.82 Safari/537.36","version":"20.0.8.1"}
{"reqId":"YGwtwNmx0R@pAzTxEiIoVgAAAJg","level":0,"time":"2021-04-06T09:45:36+00:00","remoteAddr":"XYZ.XYZ.XYZ.XYZ","user":"UUUU","app":"groupfolders","method":"GET","url":"/index.php/apps/mail/api/messages?mailboxId=8401&limit=20","message":"/appinfo/app.php is deprecated, use \\OCP\\AppFramework\\Bootstrap\\IBootstrap on the application class instead.","userAgent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.82 Safari/537.36","version":"20.0.8.1"}
{"reqId":"YGwtwNmx0R@pAzTxEiIoVgAAAJg","level":0,"time":"2021-04-06T09:45:36+00:00","remoteAddr":"XYZ.XYZ.XYZ.XYZ","user":"UUUU","app":"files_external","method":"GET","url":"/index.php/apps/mail/api/messages?mailboxId=8401&limit=20","message":"/appinfo/app.php is deprecated, use \\OCP\\AppFramework\\Bootstrap\\IBootstrap on the application class instead.","userAgent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.82 Safari/537.36","version":"20.0.8.1"}
{"reqId":"YGwtwNmx0R@pAzTxEiIoVgAAAJg","level":0,"time":"2021-04-06T09:45:36+00:00","remoteAddr":"XYZ.XYZ.XYZ.XYZ","user":"UUUU","app":"files_sharing","method":"GET","url":"/index.php/apps/mail/api/messages?mailboxId=8401&limit=20","message":"/appinfo/app.php is deprecated, use \\OCP\\AppFramework\\Bootstrap\\IBootstrap on the application class instead.","userAgent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.82 Safari/537.36","version":"20.0.8.1"}
{"reqId":"YGwtwNmx0R@pAzTxEiIoVgAAAJg","level":0,"time":"2021-04-06T09:45:36+00:00","remoteAddr":"XYZ.XYZ.XYZ.XYZ","user":"UUUU","app":"files_texteditor","method":"GET","url":"/index.php/apps/mail/api/messages?mailboxId=8401&limit=20","message":"/appinfo/app.php is deprecated, use \\OCP\\AppFramework\\Bootstrap\\IBootstrap on the application class instead.","userAgent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.82 Safari/537.36","version":"20.0.8.1"}
{"reqId":"YGwtwNmx0R@pAzTxEiIoVgAAAJg","level":0,"time":"2021-04-06T09:45:36+00:00","remoteAddr":"XYZ.XYZ.XYZ.XYZ","user":"UUUU","app":"login_notes","method":"GET","url":"/index.php/apps/mail/api/messages?mailboxId=8401&limit=20","message":"/appinfo/app.php is deprecated, use \\OCP\\AppFramework\\Bootstrap\\IBootstrap on the application class instead.","userAgent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.82 Safari/537.36","version":"20.0.8.1"}
{"reqId":"YGwtwNmx0R@pAzTxEiIoVgAAAJg","level":0,"time":"2021-04-06T09:45:36+00:00","remoteAddr":"XYZ.XYZ.XYZ.XYZ","user":"UUUU","app":"mail","method":"GET","url":"/index.php/apps/mail/api/messages?mailboxId=8401&limit=20","message":"loading messages of folder <8401>","userAgent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.82 Safari/537.36","version":"20.0.8.1"}
{"reqId":"YGwtwNmx0R@pAzTxEiIoVwAAAIw","level":0,"time":"2021-04-06T09:45:36+00:00","remoteAddr":"XYZ.XYZ.XYZ.XYZ","user":"UUUU","app":"contacts","method":"POST","url":"/index.php/apps/mail/api/mailboxes/8401/sync","message":"/appinfo/app.php is deprecated, use \\OCP\\AppFramework\\Bootstrap\\IBootstrap on the application class instead.","userAgent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.82 Safari/537.36","version":"20.0.8.1"}
{"reqId":"YGwtwNmx0R@pAzTxEiIoVwAAAIw","level":0,"time":"2021-04-06T09:45:36+00:00","remoteAddr":"XYZ.XYZ.XYZ.XYZ","user":"UUUU","app":"groupfolders","method":"POST","url":"/index.php/apps/mail/api/mailboxes/8401/sync","message":"/appinfo/app.php is deprecated, use \\OCP\\AppFramework\\Bootstrap\\IBootstrap on the application class instead.","userAgent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.82 Safari/537.36","version":"20.0.8.1"}
{"reqId":"YGwtwNmx0R@pAzTxEiIoVwAAAIw","level":0,"time":"2021-04-06T09:45:36+00:00","remoteAddr":"XYZ.XYZ.XYZ.XYZ","user":"UUUU","app":"files_external","method":"POST","url":"/index.php/apps/mail/api/mailboxes/8401/sync","message":"/appinfo/app.php is deprecated, use \\OCP\\AppFramework\\Bootstrap\\IBootstrap on the application class instead.","userAgent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.82 Safari/537.36","version":"20.0.8.1"}
{"reqId":"YGwtwNmx0R@pAzTxEiIoVwAAAIw","level":0,"time":"2021-04-06T09:45:36+00:00","remoteAddr":"XYZ.XYZ.XYZ.XYZ","user":"UUUU","app":"files_sharing","method":"POST","url":"/index.php/apps/mail/api/mailboxes/8401/sync","message":"/appinfo/app.php is deprecated, use \\OCP\\AppFramework\\Bootstrap\\IBootstrap on the application class instead.","userAgent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.82 Safari/537.36","version":"20.0.8.1"}
{"reqId":"YGwtwNmx0R@pAzTxEiIoVwAAAIw","level":0,"time":"2021-04-06T09:45:36+00:00","remoteAddr":"XYZ.XYZ.XYZ.XYZ","user":"UUUU","app":"files_texteditor","method":"POST","url":"/index.php/apps/mail/api/mailboxes/8401/sync","message":"/appinfo/app.php is deprecated, use \\OCP\\AppFramework\\Bootstrap\\IBootstrap on the application class instead.","userAgent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.82 Safari/537.36","version":"20.0.8.1"}
{"reqId":"YGwtwNmx0R@pAzTxEiIoVwAAAIw","level":0,"time":"2021-04-06T09:45:36+00:00","remoteAddr":"XYZ.XYZ.XYZ.XYZ","user":"UUUU","app":"login_notes","method":"POST","url":"/index.php/apps/mail/api/mailboxes/8401/sync","message":"/appinfo/app.php is deprecated, use \\OCP\\AppFramework\\Bootstrap\\IBootstrap on the application class instead.","userAgent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.82 Safari/537.36","version":"20.0.8.1"}
{"reqId":"YGwtwNmx0R@pAzTxEiIoVwAAAIw","level":0,"time":"2021-04-06T09:45:36+00:00","remoteAddr":"XYZ.XYZ.XYZ.XYZ","user":"UUUU","app":"mail","method":"POST","url":"/index.php/apps/mail/api/mailboxes/8401/sync","message":"Locking mailbox 8401 for new messages sync","userAgent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.82 Safari/537.36","version":"20.0.8.1"}
{"reqId":"YGwtwNmx0R@pAzTxEiIoVwAAAIw","level":0,"time":"2021-04-06T09:45:36+00:00","remoteAddr":"XYZ.XYZ.XYZ.XYZ","user":"UUUU","app":"mail","method":"POST","url":"/index.php/apps/mail/api/mailboxes/8401/sync","message":"Locking mailbox 8401 for changed messages sync","userAgent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.82 Safari/537.36","version":"20.0.8.1"}
{"reqId":"YGwtwNmx0R@pAzTxEiIoVwAAAIw","level":0,"time":"2021-04-06T09:45:36+00:00","remoteAddr":"XYZ.XYZ.XYZ.XYZ","user":"UUUU","app":"mail","method":"POST","url":"/index.php/apps/mail/api/mailboxes/8401/sync","message":"Locking mailbox 8401 for vanished messages sync","userAgent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.82 Safari/537.36","version":"20.0.8.1"}
{"reqId":"YGwtwNmx0R@pAzTxEiIoVwAAAIw","level":0,"time":"2021-04-06T09:45:36+00:00","remoteAddr":"XYZ.XYZ.XYZ.XYZ","user":"UUUU","app":"mail","method":"POST","url":"/index.php/apps/mail/api/mailboxes/8401/sync","message":"Built range for findAll: min=1 max=106 total=85 totalRange=106 estimatedPageSize=6236 lower=1 upper=106 highestKnownUid=0","userAgent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.82 Safari/537.36","version":"20.0.8.1"}
{"reqId":"YGwtwNmx0R@pAzTxEiIoVwAAAIw","level":0,"time":"2021-04-06T09:45:36+00:00","remoteAddr":"XYZ.XYZ.XYZ.XYZ","user":"UUUU","app":"mail","method":"POST","url":"/index.php/apps/mail/api/mailboxes/8401/sync","message":"Initial sync 1:FOLDER-1/mbox-1_in_FOLDER-1 - fetch all messages from IMAP took 0s","userAgent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.82 Safari/537.36","version":"20.0.8.1"}
{"reqId":"YGwtwNmx0R@pAzTxEiIoVwAAAIw","level":0,"time":"2021-04-06T09:45:36+00:00","remoteAddr":"XYZ.XYZ.XYZ.XYZ","user":"UUUU","app":"mail","method":"POST","url":"/index.php/apps/mail/api/mailboxes/8401/sync","message":"Initial sync 1:FOLDER-1/mbox-1_in_FOLDER-1 - persist messages in database took 0s","userAgent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.82 Safari/537.36","version":"20.0.8.1"}
{"reqId":"YGwtwNmx0R@pAzTxEiIoVwAAAIw","level":0,"time":"2021-04-06T09:45:36+00:00","remoteAddr":"XYZ.XYZ.XYZ.XYZ","user":"UUUU","app":"mail","method":"POST","url":"/index.php/apps/mail/api/mailboxes/8401/sync","message":"Initial sync 1:FOLDER-1/mbox-1_in_FOLDER-1 took 0s","userAgent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.82 Safari/537.36","version":"20.0.8.1"}
{"reqId":"YGwtwNmx0R@pAzTxEiIoVwAAAIw","level":0,"time":"2021-04-06T09:45:36+00:00","remoteAddr":"XYZ.XYZ.XYZ.XYZ","user":"UUUU","app":"mail","method":"POST","url":"/index.php/apps/mail/api/mailboxes/8401/sync","message":"Unlocking mailbox 8401 from vanished messages sync","userAgent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.82 Safari/537.36","version":"20.0.8.1"}
{"reqId":"YGwtwNmx0R@pAzTxEiIoVwAAAIw","level":0,"time":"2021-04-06T09:45:36+00:00","remoteAddr":"XYZ.XYZ.XYZ.XYZ","user":"UUUU","app":"mail","method":"POST","url":"/index.php/apps/mail/api/mailboxes/8401/sync","message":"Unlocking mailbox 8401 from changed messages sync","userAgent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.82 Safari/537.36","version":"20.0.8.1"}
{"reqId":"YGwtwNmx0R@pAzTxEiIoVwAAAIw","level":0,"time":"2021-04-06T09:45:36+00:00","remoteAddr":"XYZ.XYZ.XYZ.XYZ","user":"UUUU","app":"mail","method":"POST","url":"/index.php/apps/mail/api/mailboxes/8401/sync","message":"Unlocking mailbox 8401 from new messages sync","userAgent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.82 Safari/537.36","version":"20.0.8.1"}
{"reqId":"YGwtwNmx0R@pAzTxEiIoVwAAAIw","level":0,"time":"2021-04-06T09:45:37+00:00","remoteAddr":"XYZ.XYZ.XYZ.XYZ","user":"UUUU","app":"mail","method":"POST","url":"/index.php/apps/mail/api/mailboxes/8401/sync","message":"Account 1 has 253 messages for threading","userAgent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.82 Safari/537.36","version":"20.0.8.1"}
{"reqId":"YGwtwNmx0R@pAzTxEiIoVwAAAIw","level":0,"time":"2021-04-06T09:45:37+00:00","remoteAddr":"XYZ.XYZ.XYZ.XYZ","user":"UUUU","app":"mail","method":"POST","url":"/index.php/apps/mail/api/mailboxes/8401/sync","message":"Threading 253 messages - build ID table took 0s","userAgent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.82 Safari/537.36","version":"20.0.8.1"}
{"reqId":"YGwtwNmx0R@pAzTxEiIoVwAAAIw","level":0,"time":"2021-04-06T09:45:37+00:00","remoteAddr":"XYZ.XYZ.XYZ.XYZ","user":"UUUU","app":"mail","method":"POST","url":"/index.php/apps/mail/api/mailboxes/8401/sync","message":"Threading 253 messages - build root container took 0s","userAgent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.82 Safari/537.36","version":"20.0.8.1"}
{"reqId":"YGwtwNmx0R@pAzTxEiIoVwAAAIw","level":0,"time":"2021-04-06T09:45:37+00:00","remoteAddr":"XYZ.XYZ.XYZ.XYZ","user":"UUUU","app":"mail","method":"POST","url":"/index.php/apps/mail/api/mailboxes/8401/sync","message":"Threading 253 messages - free ID table took 0s","userAgent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.82 Safari/537.36","version":"20.0.8.1"}
{"reqId":"YGwtwNmx0R@pAzTxEiIoVwAAAIw","level":0,"time":"2021-04-06T09:45:37+00:00","remoteAddr":"XYZ.XYZ.XYZ.XYZ","user":"UUUU","app":"mail","method":"POST","url":"/index.php/apps/mail/api/mailboxes/8401/sync","message":"Threading 253 messages - prune containers took 0s","userAgent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.82 Safari/537.36","version":"20.0.8.1"}
{"reqId":"YGwtwNmx0R@pAzTxEiIoVwAAAIw","level":0,"time":"2021-04-06T09:45:37+00:00","remoteAddr":"XYZ.XYZ.XYZ.XYZ","user":"UUUU","app":"mail","method":"POST","url":"/index.php/apps/mail/api/mailboxes/8401/sync","message":"Threading 253 messages - group by subject took 0s","userAgent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.82 Safari/537.36","version":"20.0.8.1"}
{"reqId":"YGwtwNmx0R@pAzTxEiIoVwAAAIw","level":0,"time":"2021-04-06T09:45:37+00:00","remoteAddr":"XYZ.XYZ.XYZ.XYZ","user":"UUUU","app":"mail","method":"POST","url":"/index.php/apps/mail/api/mailboxes/8401/sync","message":"Threading 253 messages took 0s","userAgent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.82 Safari/537.36","version":"20.0.8.1"}
{"reqId":"YGwtwNmx0R@pAzTxEiIoVwAAAIw","level":0,"time":"2021-04-06T09:45:37+00:00","remoteAddr":"XYZ.XYZ.XYZ.XYZ","user":"UUUU","app":"mail","method":"POST","url":"/index.php/apps/mail/api/mailboxes/8401/sync","message":"Account 1 has 147 threads","userAgent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.82 Safari/537.36","version":"20.0.8.1"}
{"reqId":"YGwtwNmx0R@pAzTxEiIoVwAAAIw","level":0,"time":"2021-04-06T09:45:37+00:00","remoteAddr":"XYZ.XYZ.XYZ.XYZ","user":"UUUU","app":"mail","method":"POST","url":"/index.php/apps/mail/api/mailboxes/8401/sync","message":"Account 1 has 1 messages with a new thread IDs","userAgent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.82 Safari/537.36","version":"20.0.8.1"}
{"reqId":"YGwtwNmx0R@pAzTxEiIoVwAAAIw","level":0,"time":"2021-04-06T09:45:37+00:00","remoteAddr":"XYZ.XYZ.XYZ.XYZ","user":"UUUU","app":"mail","method":"POST","url":"/index.php/apps/mail/api/mailboxes/8401/sync","message":"Chunk of 500 messages updated","userAgent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.82 Safari/537.36","version":"20.0.8.1"}
{"reqId":"YGwtwdmx0R@pAzTxEiIoWAAAAI8","level":0,"time":"2021-04-06T09:45:37+00:00","remoteAddr":"XYZ.XYZ.XYZ.XYZ","user":"UUUU","app":"contacts","method":"GET","url":"/ocs/v2.php/apps/notifications/api/v2/notifications","message":"/appinfo/app.php is deprecated, use \\OCP\\AppFramework\\Bootstrap\\IBootstrap on the application class instead.","userAgent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.82 Safari/537.36","version":"20.0.8.1"}
{"reqId":"YGwtwdmx0R@pAzTxEiIoWAAAAI8","level":0,"time":"2021-04-06T09:45:37+00:00","remoteAddr":"XYZ.XYZ.XYZ.XYZ","user":"UUUU","app":"groupfolders","method":"GET","url":"/ocs/v2.php/apps/notifications/api/v2/notifications","message":"/appinfo/app.php is deprecated, use \\OCP\\AppFramework\\Bootstrap\\IBootstrap on the application class instead.","userAgent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.82 Safari/537.36","version":"20.0.8.1"}
{"reqId":"YGwtwdmx0R@pAzTxEiIoWAAAAI8","level":0,"time":"2021-04-06T09:45:37+00:00","remoteAddr":"XYZ.XYZ.XYZ.XYZ","user":"UUUU","app":"files_external","method":"GET","url":"/ocs/v2.php/apps/notifications/api/v2/notifications","message":"/appinfo/app.php is deprecated, use \\OCP\\AppFramework\\Bootstrap\\IBootstrap on the application class instead.","userAgent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.82 Safari/537.36","version":"20.0.8.1"}
{"reqId":"YGwtwdmx0R@pAzTxEiIoWAAAAI8","level":0,"time":"2021-04-06T09:45:37+00:00","remoteAddr":"XYZ.XYZ.XYZ.XYZ","user":"UUUU","app":"files_sharing","method":"GET","url":"/ocs/v2.php/apps/notifications/api/v2/notifications","message":"/appinfo/app.php is deprecated, use \\OCP\\AppFramework\\Bootstrap\\IBootstrap on the application class instead.","userAgent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.82 Safari/537.36","version":"20.0.8.1"}
{"reqId":"YGwtwdmx0R@pAzTxEiIoWAAAAI8","level":0,"time":"2021-04-06T09:45:37+00:00","remoteAddr":"XYZ.XYZ.XYZ.XYZ","user":"UUUU","app":"files_texteditor","method":"GET","url":"/ocs/v2.php/apps/notifications/api/v2/notifications","message":"/appinfo/app.php is deprecated, use \\OCP\\AppFramework\\Bootstrap\\IBootstrap on the application class instead.","userAgent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.82 Safari/537.36","version":"20.0.8.1"}
{"reqId":"YGwtwdmx0R@pAzTxEiIoWAAAAI8","level":0,"time":"2021-04-06T09:45:37+00:00","remoteAddr":"XYZ.XYZ.XYZ.XYZ","user":"UUUU","app":"login_notes","method":"GET","url":"/ocs/v2.php/apps/notifications/api/v2/notifications","message":"/appinfo/app.php is deprecated, use \\OCP\\AppFramework\\Bootstrap\\IBootstrap on the application class instead.","userAgent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.82 Safari/537.36","version":"20.0.8.1"}
{"reqId":"YGwtwdmx0R@pAzTxEiIoWQAAAIM","level":0,"time":"2021-04-06T09:45:37+00:00","remoteAddr":"XYZ.XYZ.XYZ.XYZ","user":"UUUU","app":"contacts","method":"GET","url":"/index.php/apps/mail/api/messages?mailboxId=8401&limit=20","message":"/appinfo/app.php is deprecated, use \\OCP\\AppFramework\\Bootstrap\\IBootstrap on the application class instead.","userAgent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.82 Safari/537.36","version":"20.0.8.1"}
{"reqId":"YGwtwdmx0R@pAzTxEiIoWQAAAIM","level":0,"time":"2021-04-06T09:45:37+00:00","remoteAddr":"XYZ.XYZ.XYZ.XYZ","user":"UUUU","app":"groupfolders","method":"GET","url":"/index.php/apps/mail/api/messages?mailboxId=8401&limit=20","message":"/appinfo/app.php is deprecated, use \\OCP\\AppFramework\\Bootstrap\\IBootstrap on the application class instead.","userAgent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.82 Safari/537.36","version":"20.0.8.1"}
{"reqId":"YGwtwdmx0R@pAzTxEiIoWQAAAIM","level":0,"time":"2021-04-06T09:45:37+00:00","remoteAddr":"XYZ.XYZ.XYZ.XYZ","user":"UUUU","app":"files_external","method":"GET","url":"/index.php/apps/mail/api/messages?mailboxId=8401&limit=20","message":"/appinfo/app.php is deprecated, use \\OCP\\AppFramework\\Bootstrap\\IBootstrap on the application class instead.","userAgent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.82 Safari/537.36","version":"20.0.8.1"}
{"reqId":"YGwtwdmx0R@pAzTxEiIoWQAAAIM","level":0,"time":"2021-04-06T09:45:38+00:00","remoteAddr":"XYZ.XYZ.XYZ.XYZ","user":"UUUU","app":"files_sharing","method":"GET","url":"/index.php/apps/mail/api/messages?mailboxId=8401&limit=20","message":"/appinfo/app.php is deprecated, use \\OCP\\AppFramework\\Bootstrap\\IBootstrap on the application class instead.","userAgent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.82 Safari/537.36","version":"20.0.8.1"}
{"reqId":"YGwtwdmx0R@pAzTxEiIoWQAAAIM","level":0,"time":"2021-04-06T09:45:38+00:00","remoteAddr":"XYZ.XYZ.XYZ.XYZ","user":"UUUU","app":"files_texteditor","method":"GET","url":"/index.php/apps/mail/api/messages?mailboxId=8401&limit=20","message":"/appinfo/app.php is deprecated, use \\OCP\\AppFramework\\Bootstrap\\IBootstrap on the application class instead.","userAgent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.82 Safari/537.36","version":"20.0.8.1"}
{"reqId":"YGwtwdmx0R@pAzTxEiIoWQAAAIM","level":0,"time":"2021-04-06T09:45:38+00:00","remoteAddr":"XYZ.XYZ.XYZ.XYZ","user":"UUUU","app":"login_notes","method":"GET","url":"/index.php/apps/mail/api/messages?mailboxId=8401&limit=20","message":"/appinfo/app.php is deprecated, use \\OCP\\AppFramework\\Bootstrap\\IBootstrap on the application class instead.","userAgent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.82 Safari/537.36","version":"20.0.8.1"}
{"reqId":"YGwtwdmx0R@pAzTxEiIoWQAAAIM","level":0,"time":"2021-04-06T09:45:38+00:00","remoteAddr":"XYZ.XYZ.XYZ.XYZ","user":"UUUU","app":"mail","method":"GET","url":"/index.php/apps/mail/api/messages?mailboxId=8401&limit=20","message":"loading messages of folder <8401>","userAgent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.82 Safari/537.36","version":"20.0.8.1"}
{"reqId":"YGwtw9mx0R@pAzTxEiIoWwAAAIE","level":0,"time":"2021-04-06T09:45:39+00:00","remoteAddr":"XYZ.XYZ.XYZ.XYZ","user":"UUUU","app":"contacts","method":"GET","url":"/index.php/apps/mail/api/messages/46038/thread","message":"/appinfo/app.php is deprecated, use \\OCP\\AppFramework\\Bootstrap\\IBootstrap on the application class instead.","userAgent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.82 Safari/537.36","version":"20.0.8.1"}
{"reqId":"YGwtw9mx0R@pAzTxEiIoWwAAAIE","level":0,"time":"2021-04-06T09:45:39+00:00","remoteAddr":"XYZ.XYZ.XYZ.XYZ","user":"UUUU","app":"groupfolders","method":"GET","url":"/index.php/apps/mail/api/messages/46038/thread","message":"/appinfo/app.php is deprecated, use \\OCP\\AppFramework\\Bootstrap\\IBootstrap on the application class instead.","userAgent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.82 Safari/537.36","version":"20.0.8.1"}
{"reqId":"YGwtw9mx0R@pAzTxEiIoWwAAAIE","level":0,"time":"2021-04-06T09:45:39+00:00","remoteAddr":"XYZ.XYZ.XYZ.XYZ","user":"UUUU","app":"files_external","method":"GET","url":"/index.php/apps/mail/api/messages/46038/thread","message":"/appinfo/app.php is deprecated, use \\OCP\\AppFramework\\Bootstrap\\IBootstrap on the application class instead.","userAgent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.82 Safari/537.36","version":"20.0.8.1"}
{"reqId":"YGwtw9mx0R@pAzTxEiIoWwAAAIE","level":0,"time":"2021-04-06T09:45:39+00:00","remoteAddr":"XYZ.XYZ.XYZ.XYZ","user":"UUUU","app":"files_sharing","method":"GET","url":"/index.php/apps/mail/api/messages/46038/thread","message":"/appinfo/app.php is deprecated, use \\OCP\\AppFramework\\Bootstrap\\IBootstrap on the application class instead.","userAgent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.82 Safari/537.36","version":"20.0.8.1"}
{"reqId":"YGwtw9mx0R@pAzTxEiIoWwAAAIE","level":0,"time":"2021-04-06T09:45:39+00:00","remoteAddr":"XYZ.XYZ.XYZ.XYZ","user":"UUUU","app":"files_texteditor","method":"GET","url":"/index.php/apps/mail/api/messages/46038/thread","message":"/appinfo/app.php is deprecated, use \\OCP\\AppFramework\\Bootstrap\\IBootstrap on the application class instead.","userAgent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.82 Safari/537.36","version":"20.0.8.1"}
{"reqId":"YGwtw9mx0R@pAzTxEiIoWwAAAIE","level":0,"time":"2021-04-06T09:45:39+00:00","remoteAddr":"XYZ.XYZ.XYZ.XYZ","user":"UUUU","app":"login_notes","method":"GET","url":"/index.php/apps/mail/api/messages/46038/thread","message":"/appinfo/app.php is deprecated, use \\OCP\\AppFramework\\Bootstrap\\IBootstrap on the application class instead.","userAgent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.82 Safari/537.36","version":"20.0.8.1"}
{"reqId":"YGwtw9mx0R@pAzTxEiIoXAAAAJE","level":0,"time":"2021-04-06T09:45:39+00:00","remoteAddr":"XYZ.XYZ.XYZ.XYZ","user":"UUUU","app":"contacts","method":"GET","url":"/index.php/apps/mail/api/messages/46038/body","message":"/appinfo/app.php is deprecated, use \\OCP\\AppFramework\\Bootstrap\\IBootstrap on the application class instead.","userAgent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.82 Safari/537.36","version":"20.0.8.1"}
{"reqId":"YGwtw9mx0R@pAzTxEiIoXAAAAJE","level":0,"time":"2021-04-06T09:45:39+00:00","remoteAddr":"XYZ.XYZ.XYZ.XYZ","user":"UUUU","app":"groupfolders","method":"GET","url":"/index.php/apps/mail/api/messages/46038/body","message":"/appinfo/app.php is deprecated, use \\OCP\\AppFramework\\Bootstrap\\IBootstrap on the application class instead.","userAgent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.82 Safari/537.36","version":"20.0.8.1"}
{"reqId":"YGwtw9mx0R@pAzTxEiIoXAAAAJE","level":0,"time":"2021-04-06T09:45:39+00:00","remoteAddr":"XYZ.XYZ.XYZ.XYZ","user":"UUUU","app":"files_external","method":"GET","url":"/index.php/apps/mail/api/messages/46038/body","message":"/appinfo/app.php is deprecated, use \\OCP\\AppFramework\\Bootstrap\\IBootstrap on the application class instead.","userAgent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.82 Safari/537.36","version":"20.0.8.1"}
{"reqId":"YGwtw9mx0R@pAzTxEiIoXAAAAJE","level":0,"time":"2021-04-06T09:45:39+00:00","remoteAddr":"XYZ.XYZ.XYZ.XYZ","user":"UUUU","app":"files_sharing","method":"GET","url":"/index.php/apps/mail/api/messages/46038/body","message":"/appinfo/app.php is deprecated, use \\OCP\\AppFramework\\Bootstrap\\IBootstrap on the application class instead.","userAgent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.82 Safari/537.36","version":"20.0.8.1"}
{"reqId":"YGwtw9mx0R@pAzTxEiIoXAAAAJE","level":0,"time":"2021-04-06T09:45:39+00:00","remoteAddr":"XYZ.XYZ.XYZ.XYZ","user":"UUUU","app":"files_texteditor","method":"GET","url":"/index.php/apps/mail/api/messages/46038/body","message":"/appinfo/app.php is deprecated, use \\OCP\\AppFramework\\Bootstrap\\IBootstrap on the application class instead.","userAgent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.82 Safari/537.36","version":"20.0.8.1"}
{"reqId":"YGwtw9mx0R@pAzTxEiIoXAAAAJE","level":0,"time":"2021-04-06T09:45:39+00:00","remoteAddr":"XYZ.XYZ.XYZ.XYZ","user":"UUUU","app":"login_notes","method":"GET","url":"/index.php/apps/mail/api/messages/46038/body","message":"/appinfo/app.php is deprecated, use \\OCP\\AppFramework\\Bootstrap\\IBootstrap on the application class instead.","userAgent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.82 Safari/537.36","version":"20.0.8.1"}
{"reqId":"YGwtw9mx0R@pAzTxEiIoXAAAAJE","level":0,"time":"2021-04-06T09:45:39+00:00","remoteAddr":"XYZ.XYZ.XYZ.XYZ","user":"UUUU","app":"mail","method":"GET","url":"/index.php/apps/mail/api/messages/46038/body","message":"Message does not have an HTML body, can't extract itinerary info","userAgent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.82 Safari/537.36","version":"20.0.8.1"}
{"reqId":"YGwtw9mx0R@pAzTxEiIoXAAAAJE","level":0,"time":"2021-04-06T09:45:40+00:00","remoteAddr":"XYZ.XYZ.XYZ.XYZ","user":"UUUU","app":"mail","method":"GET","url":"/index.php/apps/mail/api/messages/46038/body","message":"Reduced 0 itinerary entries to 0 entries","userAgent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.82 Safari/537.36","version":"20.0.8.1"}
.....

Here is part of the horde_imap.log after manual synching the account:
(same time as nextcloud.log)

>> Tue, 06 Apr 2021 09:45:36 +0000
>> Connection to: imap://imap.domain.tld/
>> Server connection took 0.0076 seconds.
S: * OK [CAPABILITY IMAP4rev1 SASL-IR LOGIN-REFERRALS ID ENABLE IDLE LITERAL+ STARTTLS AUTH=PLAIN AUTH=LOGIN] Dovecot ready.
C: 1 AUTHENTICATE PLAIN [INITIAL CLIENT RESPONSE (username: xy@domain.tld)]
S: 1 OK [CAPABILITY IMAP4rev1 SASL-IR LOGIN-REFERRALS ID ENABLE IDLE SORT SORT=DISPLAY THREAD=REFERENCES THREAD=REFS THREAD=ORDEREDSUBJECT MULTIAPPEND URL-PARTIAL CATENATE UNSEL
ECT CHILDREN NAMESPACE UIDPLUS LIST-EXTENDED I18NLEVEL=1 CONDSTORE QRESYNC ESEARCH ESORT SEARCHRES WITHIN CONTEXT=SEARCH LIST-STATUS BINARY MOVE SNIPPET=FUZZY PREVIEW=FUZZY LITE
RAL+ NOTIFY SPECIAL-USE QUOTA] Logged in
>> Command 1 took 0.0132 seconds.
>> CACHE: Using the OCA\Mail\Cache\Cache storage driver.
C: 2 ENABLE QRESYNC
C: 3 EXAMINE FOLDER-1/mbox-1_in_FOLDER-1
S: * ENABLED QRESYNC
S: 2 OK Enabled (0.001 + 0.000 secs).
>> Command 2 took 0.0039 seconds.
S: * FLAGS (\Answered \Flagged \Deleted \Seen \Draft)
S: * OK [PERMANENTFLAGS ()] Read-only mailbox.
S: * 85 EXISTS
S: * 0 RECENT
S: * OK [UIDVALIDITY 1560264813] UIDs valid
S: * OK [UIDNEXT 107] Predicted next UID
S: * OK [HIGHESTMODSEQ 2] Highest
S: 3 OK [READ-ONLY] Examine completed (0.026 + 0.000 + 0.025 secs).
>> Command 3 took 0.0322 seconds.
>> CACHE: Stored metadata (_m,uidvalid [FOLDER-1/mbox-1_in_FOLDER-1])
>> SEARCH: Expired from cache [FOLDER-1/mbox-1_in_FOLDER-1]
C: 4 UID SEARCH RETURN (MIN MAX COUNT) ALL
S: * ESEARCH (TAG "4") UID MIN 1 MAX 106 COUNT 85
S: 4 OK Search completed (0.002 + 0.000 + 0.001 secs).
>> Command 4 took 0.0047 seconds.
>> CACHE: Stored metadata (_s,_i [FOLDER-1/mbox-1_in_FOLDER-1])
>> SEARCH: Saved search to cache (6a9dbca401f2a6eac9ade7ce1dab365d [FOLDER-1/mbox-1_in_FOLDER-1])
C: 5 UID FETCH 1:106 (UID)
S: * 1 FETCH (UID 1)
.....
S: * 85 FETCH (UID 106)
S: 5 OK Fetch completed (0.002 + 0.000 + 0.001 secs).
>> Command 5 took 0.009 seconds.
C: 6 UID FETCH 1:2,4:6,10:25,27,30:31,40:43,45:68,70:78,80,84:106 (ENVELOPE FLAGS INTERNALDATE BODY.PEEK[HEADER])
S: * 1 FETCH (UID 1 FLAGS (\Seen) INTERNALDATE "14-Jun-2019 18:07:34 +0200" ENVELOPE ("Fri, 14 Jun 2019 18:07:34 +0200" "fffdd" (("Koslowski, Rita" NIL "rk" "802-net.de")) (("Koslowski, Rita" NIL "rk" "802-net.de")) (("Koslowski, Rita" NIL "rk" "802-net.de")) ((NIL NIL "eb" "domain.tld")) NIL NIL NIL "<59f6111cda52a14e69f1bc108c1ce0f2@office.domain.tld>") BODY[HEADER] {304}
S: [LITERAL DATA: 304 bytes]
S: )
.......
S: * 85 FETCH (UID 106 FLAGS (\Seen) INTERNALDATE "03-Mar-2021 09:46:42 +0100" ENVELOPE ("Wed, 03 Mar 2021 09:46:21 +0100" "=?ISO-8859-1?Q?Re:_Kontoaufl=F6sung?=" (("Rita Koslow
ski" NIL "rk" "802-net.de")) (("Rita Koslowski" NIL "rk" "802-net.de")) (("Rita Koslowski" NIL "rk" "802-net.de")) (("Christa Strumpf" NIL "christastrumpf" "gmx.de")) NIL NIL NI
L "<kec4p5pi3pf9momlcmg88u60.1614761201760@email.android.com>") BODY[HEADER] {341}
S: [LITERAL DATA: 341 bytes]
S: )
S: 6 OK Fetch completed (0.165 + 0.000 + 0.164 secs).
>> Command 6 took 0.1693 seconds.
>> CACHE: Stored messages [FOLDER-1/mbox-1_in_FOLDER-1; 1:2,4:6,10:25,27,30:31,40:43,45:68,70:78,80,84:106]
>> CACHE: Retrieved messages (HICstruct,HICdg [FOLDER-1/mbox-1_in_FOLDER-1; 1:2,4:6,10:25,27,30:31,40:43,45:68,70:78,80,84:106])
C: 7 UID FETCH 1:2,4:6,10:25,27,30:31,40:43,45:68,70:78,80,84:106 (BODYSTRUCTURE)
S: * 1 FETCH (UID 1 BODYSTRUCTURE (("text" "plain" ("charset" "UTF-8") NIL NIL "quoted-printable" 10 1 NIL NIL NIL NIL)("text" "html" ("charset" "UTF-8") NIL NIL "quoted-printab
le" 207 12 NIL NIL NIL NIL) "alternative" ("boundary" "_=_swift_v4_1560528454_f21e8eb1ae197fdb4d510f72faae2bbb_=_") NIL NIL NIL))
......
S: * 85 FETCH (UID 106 BODYSTRUCTURE (("text" "plain" ("charset" "utf-8") NIL NIL "base64" 842 11 NIL NIL NIL NIL) "mixed" ("boundary" "----LXESANY0DQ90GODUMYYOFDJ168XGWG") NIL NIL NIL))
S: 7 OK Fetch completed (0.513 + 0.000 + 0.512 secs).
>> Command 7 took 0.5194 seconds.
>> CACHE: Stored messages [FOLDER-1/mbox-1_in_FOLDER-1; 1:2,4:6,10:25,27,30:31,40:43,45:68,70:78,80,84:106]
C: 8 LOGOUT
S: * BYE Logging out
S: 8 OK Logout completed (0.001 + 0.000 + 0.001 secs).
>> Command 8 took 0.0041 seconds.

automatic next connection:

------------------------------
>> Tue, 06 Apr 2021 09:45:39 +0000
>> Connection to: imap://imap.domain.tld/
>> Server connection took 0.0077 seconds.
S: * OK [CAPABILITY IMAP4rev1 SASL-IR LOGIN-REFERRALS ID ENABLE IDLE LITERAL+ STARTTLS AUTH=PLAIN AUTH=LOGIN] Dovecot ready.
C: 1 AUTHENTICATE PLAIN [INITIAL CLIENT RESPONSE (username: xy@domain.tld)]
S: 1 OK [CAPABILITY IMAP4rev1 SASL-IR LOGIN-REFERRALS ID ENABLE IDLE SORT SORT=DISPLAY THREAD=REFERENCES THREAD=REFS THREAD=ORDEREDSUBJECT MULTIAPPEND URL-PARTIAL CATENATE UNSELECT CHILDREN NAMESPACE UIDPLUS LIST-EXTENDED I18NLEVEL=1 CONDSTORE QRESYNC ESEARCH ESORT SEARCHRES WITHIN CONTEXT=SEARCH LIST-STATUS BINARY MOVE SNIPPET=FUZZY PREVIEW=FUZZY LITERAL+ NOTIFY SPECIAL-USE QUOTA] Logged in
>> Command 1 took 0.0136 seconds.
>> CACHE: Using the OCA\Mail\Cache\Cache storage driver.
C: 2 ENABLE QRESYNC
C: 3 EXAMINE FOLDER-1/mbox-1_in_FOLDER-1 (QRESYNC (1560264813 2 1:2,4:6,10:25,27,30:31,40:43,45:68,70:78,80,84:106))
S: * ENABLED QRESYNC
S: 2 OK Enabled (0.001 + 0.000 secs).
>> Command 2 took 0.0036 seconds.
S: * FLAGS (\Answered \Flagged \Deleted \Seen \Draft)
S: * OK [PERMANENTFLAGS ()] Read-only mailbox.
S: * 85 EXISTS
S: * 0 RECENT
S: * OK [UIDVALIDITY 1560264813] UIDs valid
S: * OK [UIDNEXT 107] Predicted next UID
S: * OK [HIGHESTMODSEQ 2] Highest
S: 3 OK [READ-ONLY] Examine completed (0.031 + 0.000 + 0.030 secs).
>> Command 3 took 0.0363 seconds.
>> CACHE: Retrieved messages (HICenv,HICflags,HICdate,HICdg [FOLDER-1/mbox-1_in_FOLDER-1; 106])
C: 4 UID FETCH 106 (BODY.PEEK[HEADER])
S: * 85 FETCH (UID 106 BODY[HEADER] {341}
S: [LITERAL DATA: 341 bytes]
S: )
S: 4 OK Fetch completed (0.009 + 0.000 + 0.008 secs).
>> Command 4 took 0.0115 seconds.
>> CACHE: Retrieved messages (HICenv,HICflags,HICdate,HICsize,HICstruct,HICdg [FOLDER-1/mbox-1_in_FOLDER-1; 106])
C: 5 UID FETCH 106 (RFC822.SIZE BODY.PEEK[HEADER])
S: * 85 FETCH (UID 106 RFC822.SIZE 1343 BODY[HEADER] {341}
S: [LITERAL DATA: 341 bytes]
S: )
S: 5 OK Fetch completed (0.038 + 0.000 + 0.037 secs).
>> Command 5 took 0.0408 seconds.
>> CACHE: Stored messages [FOLDER-1/mbox-1_in_FOLDER-1; 106]
C: 6 UID FETCH 106 (BODY.PEEK[1] BINARY.SIZE[1] BODY.PEEK[1.MIME])
S: * 85 FETCH (UID 106 BODY[1] {842}
S: [LITERAL DATA: 842 bytes]
S:  BINARY.SIZE[1] 615 BODY[1.MIME] {80}
S: [LITERAL DATA: 80 bytes]
S: )
S: 6 OK Fetch completed (0.022 + 0.000 + 0.021 secs).
>> Command 6 took 0.0252 seconds.
>> CACHE: Retrieved messages (HICenv,HICstruct,HICdg [FOLDER-1/mbox-1_in_FOLDER-1; 106])
>> CACHE: Retrieved messages (HICstruct,HICdg [FOLDER-1/mbox-1_in_FOLDER-1; 106])
C: 7 SELECT FOLDER-1/mbox-1_in_FOLDER-1 (QRESYNC (1560264813 2 1:2,4:6,10:25,27,30:31,40:43,45:68,70:78,80,84:106))
S: * OK [CLOSED] Previous mailbox closed.
S: * FLAGS (\Answered \Flagged \Deleted \Seen \Draft)
S: * OK [PERMANENTFLAGS (\Answered \Flagged \Deleted \Seen \Draft \*)] Flags permitted.
S: * 85 EXISTS
S: * 0 RECENT
S: * OK [UIDVALIDITY 1560264813] UIDs valid
S: * OK [UIDNEXT 107] Predicted next UID
S: * OK [HIGHESTMODSEQ 2] Highest
S: 7 OK [READ-WRITE] Select completed (0.024 + 0.000 + 0.023 secs).
>> Command 7 took 0.0273 seconds.
C: 8 UID FETCH 106 (BODY[] BODY.PEEK[1] BODY.PEEK[1.MIME] BINARY.SIZE[1])
S: * 85 FETCH (UID 106 BODY[] {1343}
S: [LITERAL DATA: 1343 bytes]
S:  BODY[1] {842}
S: [LITERAL DATA: 842 bytes]
S:  BODY[1.MIME] {80}
S: [LITERAL DATA: 80 bytes]
S:  BINARY.SIZE[1] 615)
S: 8 OK Fetch completed (0.009 + 0.000 + 0.008 secs).
>> Command 8 took 0.0133 seconds.
C: 9 LOGOUT
S: * BYE Logging out
S: 9 OK Logout completed (0.002 + 0.000 + 0.001 secs).
>> Command 9 took 0.0053 seconds.
------------------------------

automatic next connection

>> Tue, 06 Apr 2021 09:45:40 +0000
>> Connection to: imap://imap.domain.tld/
>> Server connection took 0.0081 seconds.
S: * OK [CAPABILITY IMAP4rev1 SASL-IR LOGIN-REFERRALS ID ENABLE IDLE LITERAL+ STARTTLS AUTH=PLAIN AUTH=LOGIN] Dovecot ready.
C: 1 AUTHENTICATE PLAIN [INITIAL CLIENT RESPONSE (username: xy@domain.tld)]
S: 1 OK [CAPABILITY IMAP4rev1 SASL-IR LOGIN-REFERRALS ID ENABLE IDLE SORT SORT=DISPLAY THREAD=REFERENCES THREAD=REFS THREAD=ORDEREDSUBJECT MULTIAPPEND URL-PARTIAL CATENATE UNSELECT CHILDREN NAMESPACE UIDPLUS LIST-EXTENDED I18NLEVEL=1 CONDSTORE QRESYNC ESEARCH ESORT SEARCHRES WITHIN CONTEXT=SEARCH LIST-STATUS BINARY MOVE SNIPPET=FUZZY PREVIEW=FUZZY LITERAL+ NOTIFY SPECIAL-USE QUOTA] Logged in
>> Command 1 took 0.0174 seconds.
>> CACHE: Using the OCA\Mail\Cache\Cache storage driver.
C: 2 ENABLE QRESYNC
C: 3 STATUS INBOX (MESSAGES UIDNEXT UIDVALIDITY HIGHESTMODSEQ)
S: * ENABLED QRESYNC
S: 2 OK Enabled (0.001 + 0.000 secs).
>> Command 2 took 0.0025 seconds.
S: * STATUS INBOX (MESSAGES 46 UIDNEXT 127 UIDVALIDITY 1560264811 HIGHESTMODSEQ 760)
S: 3 OK Status completed (0.010 + 0.000 + 0.009 secs).
>> Command 3 took 0.0135 seconds.
C: 4 STATUS INBOX (MESSAGES UIDNEXT UIDVALIDITY HIGHESTMODSEQ)
S: * STATUS INBOX (MESSAGES 46 UIDNEXT 127 UIDVALIDITY 1560264811 HIGHESTMODSEQ 760)
S: 4 OK Status completed (0.004 + 0.000 + 0.003 secs).
>> Command 4 took 0.0054 seconds.
C: 5 STATUS INBOX (MESSAGES UIDNEXT UIDVALIDITY HIGHESTMODSEQ)
S: * STATUS INBOX (MESSAGES 46 UIDNEXT 127 UIDVALIDITY 1560264811 HIGHESTMODSEQ 760)
S: 5 OK Status completed (0.003 + 0.000 + 0.002 secs).
>> Command 5 took 0.0048 seconds.
C: 6 EXAMINE INBOX (QRESYNC (1560264811 760 64,107:126))
S: * FLAGS (\Answered \Flagged \Deleted \Seen \Draft)
S: * OK [PERMANENTFLAGS ()] Read-only mailbox.
S: * 46 EXISTS
S: * 0 RECENT
S: * OK [UIDVALIDITY 1560264811] UIDs valid
S: * OK [UIDNEXT 127] Predicted next UID
S: * OK [HIGHESTMODSEQ 760] Highest
S: 6 OK [READ-ONLY] Examine completed (0.008 + 0.000 + 0.007 secs).
>> Command 6 took 0.0097 seconds.
>> CACHE: Retrieved messages (HICenv,HICflags,HICdate,HICdg [INBOX; 107:126])
C: 7 UID FETCH 107:126 (BODY.PEEK[HEADER])
S: * 27 FETCH (UID 107 BODY[HEADER] {3067}
S: [LITERAL DATA: 3067 bytes]
S: )
........
S: * 46 FETCH (UID 126 BODY[HEADER] {2713}
S: [LITERAL DATA: 2713 bytes]
S: )
S: 7 OK Fetch completed (0.048 + 0.000 + 0.047 secs).
>> Command 7 took 0.0496 seconds.
C: 8 UID FETCH 107:126 UID (VANISHED CHANGEDSINCE 1)
S: * 27 FETCH (UID 107 MODSEQ (723))
........
S: * 46 FETCH (UID 126 MODSEQ (755))
S: 8 OK Fetch completed (0.001 + 0.000 secs).
>> Command 8 took 0.0036 seconds.
C: 9 LOGOUT
S: * BYE Logging out
S: 9 OK Logout completed (0.002 + 0.000 + 0.001 secs).
>> Command 9 took 0.0048 seconds.

automatic next connection:

>> Tue, 06 Apr 2021 09:45:47 +0000
>> Connection to: imap://imap.domain.tld/
>> Server connection took 0.0081 seconds.
S: * OK [CAPABILITY IMAP4rev1 SASL-IR LOGIN-REFERRALS ID ENABLE IDLE LITERAL+ STARTTLS AUTH=PLAIN AUTH=LOGIN] Dovecot ready.
C: 1 AUTHENTICATE PLAIN [INITIAL CLIENT RESPONSE (username: xy@domain.tld)]
S: 1 OK [CAPABILITY IMAP4rev1 SASL-IR LOGIN-REFERRALS ID ENABLE IDLE SORT SORT=DISPLAY THREAD=REFERENCES THREAD=REFS THREAD=ORDEREDSUBJECT MULTIAPPEND URL-PARTIAL CATENATE UNSELECT CHILDREN NAMESPACE UIDPLUS LIST-EXTENDED I18NLEVEL=1 CONDSTORE QRESYNC ESEARCH ESORT SEARCHRES WITHIN CONTEXT=SEARCH LIST-STATUS BINARY MOVE SNIPPET=FUZZY PREVIEW=FUZZY LITERAL+ NOTIFY SPECIAL-USE QUOTA] Logged in
>> Command 1 took 0.0191 seconds.
>> CACHE: Using the OCA\Mail\Cache\Cache storage driver.
C: 2 ENABLE QRESYNC
C: 3 EXAMINE FOLDER-2/mbox-1_in_FOLDER-2
S: * ENABLED QRESYNC
S: 2 OK Enabled (0.001 + 0.000 secs).
>> Command 2 took 0.0039 seconds.
S: * FLAGS (\Answered \Flagged \Deleted \Seen \Draft)
S: * OK [PERMANENTFLAGS ()] Read-only mailbox.
S: * 64 EXISTS
S: * 0 RECENT
S: * OK [UIDVALIDITY 1560264817] UIDs valid
S: * OK [UIDNEXT 86] Predicted next UID
S: * OK [HIGHESTMODSEQ 3] Highest
S: 3 OK [READ-ONLY] Examine completed (0.014 + 0.000 + 0.013 secs).
>> Command 3 took 0.021 seconds.
>> CACHE: Stored metadata (_m,uidvalid [FOLDER-2/mbox-1_in_FOLDER-2])
>> SEARCH: Expired from cache [FOLDER-2/mbox-1_in_FOLDER-2]
C: 4 UID SEARCH RETURN (MIN MAX COUNT) ALL
S: * ESEARCH (TAG "4") UID MIN 1 MAX 85 COUNT 64
S: 4 OK Search completed (0.002 + 0.000 + 0.001 secs).
>> Command 4 took 0.0046 seconds.
>> CACHE: Stored metadata (_s,_i [FOLDER-2/mbox-1_in_FOLDER-2])
>> SEARCH: Saved search to cache (6a9dbca401f2a6eac9ade7ce1dab365d [FOLDER-2/mbox-1_in_FOLDER-2])
C: 5 UID FETCH 1:85 (UID)
S: * 1 FETCH (UID 1)
......
S: * 64 FETCH (UID 85)
S: 5 OK Fetch completed (0.001 + 0.000 secs).
>> Command 5 took 0.0077 seconds.
C: 6 UID FETCH 1:2,4:6,10:25,27,30:31,40:43,45:68,70:78,80,84:85 (ENVELOPE FLAGS INTERNALDATE BODY.PEEK[HEADER])
S: * 1 FETCH (UID 1 FLAGS (\Seen) INTERNALDATE "14-Jun-2019 18:07:34 +0200" ENVELOPE ("Fri, 14 Jun 2019 18:07:34 +0200" "fffdd" (("Koslowski, Rita" NIL "rk" "802-net.de")) (("Koslowski, Rita" NIL "rk" "802-net.de")) (("Koslowski, Rita" NIL "rk" "802-net.de")) ((NIL NIL "eb" "domain.tld")) NIL NIL NIL "<59f6111cda52a14e69f1bc108c1ce0f2@office.domain.tld>") BODY[HEADER] {304}
S: [LITERAL DATA: 304 bytes]
S: )
..........
S: * 64 FETCH (UID 85 FLAGS (\Seen) INTERNALDATE "29-Jul-2020 11:58:44 +0200" ENVELOPE ("Wed, 29 Jul 2020 11:50:04 +0200" "Re:" (("Rita Koslowski" NIL "rk" "802-net.de")) (("Rita Koslowski" NIL "rk" "802-net.de")) (("Rita Koslowski" NIL "rk" "802-net.de")) (("Christa Strumpf" NIL "christastrumpf" "gmx.de")) NIL NIL NIL "<mflnmkt3oolvbgdeap1iiljh.1596016723344@email.android.com>") BODY[HEADER] {307}
S: [LITERAL DATA: 307 bytes]
S: )
S: 6 OK Fetch completed (0.179 + 0.000 + 0.178 secs).
>> Command 6 took 0.1836 seconds.
>> CACHE: Stored messages [FOLDER-2/mbox-1_in_FOLDER-2; 1:2,4:6,10:25,27,30:31,40:43,45:68,70:78,80,84:85]
>> CACHE: Retrieved messages (HICstruct,HICdg [FOLDER-2/mbox-1_in_FOLDER-2; 1:2,4:6,10:25,27,30:31,40:43,45:68,70:78,80,84:85])
C: 7 UID FETCH 1:2,4:6,10:25,27,30:31,40:43,45:68,70:78,80,84:85 (BODYSTRUCTURE)
S: * 1 FETCH (UID 1 BODYSTRUCTURE (("text" "plain" ("charset" "UTF-8") NIL NIL "quoted-printable" 10 1 NIL NIL NIL NIL)("text" "html" ("charset" "UTF-8") NIL NIL "quoted-printable" 207 12 NIL NIL NIL NIL) "alternative" ("boundary" "_=_swift_v4_1560528454_f21e8eb1ae197fdb4d510f72faae2bbb_=_") NIL NIL NIL))
S: * 2 FETCH (UID 2 BODYSTRUCTURE (("text" "html" ("charset" "utf-8") NIL NIL "base64" 226 3 NIL NIL NIL NIL) "mixed" ("boundary" "----XRP140YJQ92C9I8GV8JBXY22FLPONA") NIL NIL NIL))
.........
S: * 63 FETCH (UID 84 BODYSTRUCTURE (("text" "html" ("charset" "utf-8") NIL NIL "base64" 112 2 NIL NIL NIL NIL)("text" "plain" ("charset" "utf-8") NIL NIL "base64" 78 1 NIL NIL NIL NIL)("image" "jpeg" NIL NIL NIL "base64" 2698352 NIL ("attachment" ("filename" "IMG_20200419_152438_BURST1.jpg" "size" "1971874")) NIL NIL) "mixed" ("boundary" "----NGTU2L3YHE7J93F5AI7SABGQVO03P2") NIL NIL NIL))
S: * 64 FETCH (UID 85 BODYSTRUCTURE (("text" "plain" ("charset" "utf-8") NIL NIL "base64" 178 3 NIL NIL NIL NIL) "mixed" ("boundary" "----49HCXWFFOLTT4E46B7A7DR5J8NJQ7C") NIL NIL NIL))
S: 7 OK Fetch completed (0.538 + 0.000 + 0.537 secs).
>> Command 7 took 0.5419 seconds.
>> CACHE: Stored messages [FOLDER-2/mbox-1_in_FOLDER-2; 1:2,4:6,10:25,27,30:31,40:43,45:68,70:78,80,84:85]
C: 8 LOGOUT
S: * BYE Logging out
S: 8 OK Logout completed (0.004 + 0.000 + 0.003 secs).
>> Command 8 took 0.0066 seconds.

an further connections ...

I have seen in horde_imap.log that the communication with the imap server has changed.
The former communication used the server defined NAMESPACE.

The client asked for it and the server replied:

C: 2 NAMESPACE
S: * NAMESPACE (("" "/")) NIL NIL
S: 2 OK Namespace completed (0.001 + 0.000 secs).

Referring to RFC 2342 the reply means:
"A server that supports a single personal namespace.
No leading prefix is used on personal mailboxes
and "/" is the hierarchy delimiter."

This behavior seems to be correct as from horde 4.1+ :
"The namespace, hierarchies, folders, delimiter, and dotfiles parameters were removed from config/servers.php.
Namespaces are now automatically configured pursuant to RFC 2342."
(https://www.horde.org/apps/imp/docs/UPGRADING#automatic-namespace-detection)

Here is a part of a former horde_imap.log which was produced from mail version 1.6 (as far as I correctly remember the version)
( I changed the name of the folders (directories) an mailboxes but not the structure)

>> Thu, 11 Mar 2021 16:45:08 +0000
>> Connection to: imap://imap.XXX.XX/
>> Server connection took 0.006 seconds.
S: * OK [CAPABILITY IMAP4rev1 SASL-IR LOGIN-REFERRALS ID ENABLE IDLE LITERAL+ STARTTLS AUTH=PLAIN AUTH=LOGIN] Dovecot ready.

C: 1 AUTHENTICATE PLAIN [INITIAL CLIENT RESPONSE (username: XXXXX)]
S: 1 OK [CAPABILITY IMAP4rev1 SASL-IR LOGIN-REFERRALS ID ENABLE IDLE SORT SORT=DISPLAY THREAD=REFERENCES THREAD=REFS THREAD=ORDEREDSUBJECT MULTIAPPEND URL-PARTIAL CATENATE UNSELECT CHILDREN NAMESPACE UIDPLUS LIST-EXTENDED I18NLEVEL=1 CONDSTORE QRESYNC ESEARCH ESORT SEARCHRES WITHIN CONTEXT=SEARCH LIST-STATUS BINARY MOVE SNIPPET=FUZZY PREVIEW=FUZZY LITERAL+ NOTIFY SPECIAL-USE QUOTA] Logged in
>> Command 1 took 0.025 seconds.
 
C: 2 NAMESPACE
S: * NAMESPACE (("" "/")) NIL NIL
S: 2 OK Namespace completed (0.001 + 0.000 secs).
>> Command 2 took 0.0017 seconds.

C: 3 LIST () "" (*) RETURN (SUBSCRIBED SPECIAL-USE)
S: * LIST (\Subscribed \NoInferiors \UnMarked) "/" mbox_1
.....
S: * LIST (\Subscribed \Noselect) "/" FOLDER-1                        
S: * LIST (\Subscribed \NoInferiors \UnMarked) "/" FOLDER-1/mbox_1
S: * LIST (\Subscribed \NoInferiors \UnMarked) "/" FOLDER-1/mbox_2
.......
S: * LIST (\Subscribed \Noselect) "/" FOLDER-2                        
S: * LIST (\Subscribed \NoInferiors \UnMarked) "/" FOLDER-2/mbox_1
S: * LIST (\Subscribed \Noselect) "/" FOLDER-3/SUBFOLDER-1           
S: * LIST (\Subscribed \Noselect) "/" FOLDER-3/SUBFOLDER-1/SUB-SUBFOLDER-1
S: * LIST (\Subscribed \NoInferiors \UnMarked) "/" FOLDER-3/SUBFOLDER-1/SUB-SUBFOLDER-1/mbox_1
S: * LIST (\Subscribed \NoInferiors \UnMarked) "/" FOLDER-3/SUBFOLDER-1/SUB-SUBFOLDER-1/mbox_1
.......

The version 1.9 uses the UID FETCH command

C: 8 UID FETCH 1,9:18 UID (VANISHED CHANGEDSINCE 1)
C: 7 UID FETCH 11:12,35:45 (BODY.PEEK[HEADER])

while the version 1.6 used the LIST command.

C: 3 LIST () "" (*) RETURN (SUBSCRIBED SPECIAL-USE)

BTW, the app asks the server 3 times in a row for the INBOX status:

STATUS INBOX (MESSAGES UIDNEXT UIDVALIDITY HIGHESTMODSEQ)

even if the answer is given within 1/100 second.
Is this on purpose ?

Another problem:
Changing manually (or by another app) the name of a folder (directory) or a mailbox is not recognized by the app.
Even manually synching with:

sudo -u apache php -f /var//www/nextcloud/occ mail:account:sync 1

did not work.
Only with the option --force the database was updated with a new mailbox id but still only the mailbox and not the folder is visible in the root of the mail account.
I think there should be a synch button to sync the mail app to the actual imap structure.

@stale
Copy link

stale bot commented Jan 8, 2022

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Jan 8, 2022
@stale stale bot closed this as completed Apr 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants