mail icon indicating copy to clipboard operation
mail copied to clipboard

Unable to load message

Open Sjoerd001 opened this issue 1 year ago • 3 comments

Steps to reproduce

1.Click on a message 2.Headers are loaded and imap login is ok, but no body text 3.Occurs with every message 4.Tried 3.6.0 and the updated 3.7.1

Expected behavior

Read Message body

Actual behavior

Got error message and a link to this github for reporting.

Mail app version

3.7.1

Mailserver or service

DBMail imap v3.2.3 running in a vm with fedora 22 and mariadb 10

Operating system

fedora 40

PHP engine version

PHP 8.3

Web server

Apache (supported)

Database

MySQL

Additional info

Integrated Rouncubemail is fully working ok.

Sjoerd001 avatar Jun 11 '24 05:06 Sjoerd001

Some errors from nextcloud.log:

{
  "reqId": "Zmfm_SgM-8AZ_mvrWgCr9AAAAM0",
  "level": 3,
  "time": "2024-06-11T05:56:16+00:00",
  "remoteAddr": "10.10.254.1",
  "user": "kxxxxxx",
  "app": "mail",
  "method": "GET",
  "url": "/nextcloud/index.php/apps/mail/api/messages/5255/body",
  "message": "Could not load message",
  "userAgent": "Mozilla/5.0 (X11; Linux x86_64; rv:126.0) Gecko/20100101 Firefox/126.0",
  "version": "28.0.5.1",
  "exception": {
    "Exception": "OCA\\Mail\\Exception\\ServiceException",
    "Message": "Could not load message",
    "Code": 0,
    "Trace": [
      {
        "file": "/var/lib/nextcloud/apps/mail/lib/Controller/MessagesController.php",
        "line": 230,
        "function": "getImapMessage",
        "class": "OCA\\Mail\\Service\\MailManager",
        "type": "->"
      },
      {
        "file": "/usr/share/nextcloud/lib/private/AppFramework/Http/Dispatcher.php",
        "line": 230,
        "function": "getBody",
        "class": "OCA\\Mail\\Controller\\MessagesController",
        "type": "->"
      },
      {
        "file": "/usr/share/nextcloud/lib/private/AppFramework/Http/Dispatcher.php",
        "line": 137,
        "function": "executeController",
        "class": "OC\\AppFramework\\Http\\Dispatcher",
        "type": "->"
      },
      {
        "file": "/usr/share/nextcloud/lib/private/AppFramework/App.php",
        "line": 184,
        "function": "dispatch",
        "class": "OC\\AppFramework\\Http\\Dispatcher",
        "type": "->"
      },
      {
        "file": "/usr/share/nextcloud/lib/private/Route/Router.php",
        "line": 315,
        "function": "main",
        "class": "OC\\AppFramework\\App",
        "type": "::"
      },
      {
        "file": "/usr/share/nextcloud/lib/base.php",
        "line": 1069,
        "function": "match",
        "class": "OC\\Route\\Router",
        "type": "->"
      },
      {
        "file": "/usr/share/nextcloud/index.php",
        "line": 39,
        "function": "handleRequest",
        "class": "OC",
        "type": "::"
      }
    ],
    "File": "/var/lib/nextcloud/apps/mail/lib/Service/MailManager.php",
    "Line": 206,
    "Previous": {
      "Exception": "OCP\\AppFramework\\Db\\DoesNotExistException",
      "Message": "Message does not exist",
      "Code": 0,
      "Trace": [
        {
          "file": "/var/lib/nextcloud/apps/mail/lib/Service/MailManager.php",
          "line": 198,
          "function": "find",
          "class": "OCA\\Mail\\IMAP\\MessageMapper",
          "type": "->"
        },
        {
          "file": "/var/lib/nextcloud/apps/mail/lib/Controller/MessagesController.php",
          "line": 230,
          "function": "getImapMessage",
          "class": "OCA\\Mail\\Service\\MailManager",
          "type": "->"
        },
        {
          "file": "/usr/share/nextcloud/lib/private/AppFramework/Http/Dispatcher.php",
          "line": 230,
          "function": "getBody",
          "class": "OCA\\Mail\\Controller\\MessagesController",
          "type": "->"
        },
        {
          "file": "/usr/share/nextcloud/lib/private/AppFramework/Http/Dispatcher.php",
          "line": 137,
          "function": "executeController",
          "class": "OC\\AppFramework\\Http\\Dispatcher",
          "type": "->"
        },
        {
          "file": "/usr/share/nextcloud/lib/private/AppFramework/App.php",
          "line": 184,
          "function": "dispatch",
          "class": "OC\\AppFramework\\Http\\Dispatcher",
          "type": "->"
        },
        {
          "file": "/usr/share/nextcloud/lib/private/Route/Router.php",
          "line": 315,
          "function": "main",
          "class": "OC\\AppFramework\\App",
          "type": "::"
        },
        {
          "file": "/usr/share/nextcloud/lib/base.php",
          "line": 1069,
          "function": "match",
          "class": "OC\\Route\\Router",
          "type": "->"
        },
        {
          "file": "/usr/share/nextcloud/index.php",
          "line": 39,
          "function": "handleRequest",
          "class": "OC",
          "type": "::"
        }
      ],
      "File": "/var/lib/nextcloud/apps/mail/lib/IMAP/MessageMapper.php",
      "Line": 89
    },
    "message": "Could not load message",
    "exception": {},
    "CustomMessage": "Could not load message"
  }
}

Sjoerd001 avatar Jun 11 '24 06:06 Sjoerd001

Data in mail export:

status | "error"
message | "OCA\\Mail\\Http\\AttachmentDownloadResponse::__construct(): Argument #1 ($content) must be of type string, null given, called in /var/lib/nextcloud/apps/mail/lib/Controller/MessagesController.php on line 549 in file '/var/lib/nextcloud/apps/mail/lib/Http/AttachmentDownloadResponse.php' line 45"
data |  
debug | true
type | "Exception"
message | "OCA\\Mail\\Http\\AttachmentDownloadResponse::__construct(): Argument #1 ($content) must be of type string, null given, called in /var/lib/nextcloud/apps/mail/lib/Controller/MessagesController.php on line 549 in file '/var/lib/nextcloud/apps/mail/lib/Http/AttachmentDownloadResponse.php' line 45"
code | 0
trace |  
0 |  
file | "/usr/share/nextcloud/lib/private/AppFramework/App.php"
line | 184
function | "dispatch"
class | "OC\\AppFramework\\Http\\Dispatcher"
1 |  
file | "/usr/share/nextcloud/lib/private/Route/Router.php"
line | 315
function | "main"
class | "OC\\AppFramework\\App"
2 |  
file | "/usr/share/nextcloud/lib/base.php"
line | 1069
function | "match"
class | "OC\\Route\\Router"
3 |  
file | "/usr/share/nextcloud/index.php"
line | 39
function | "handleRequest"
class | "OC"
previous |  
type | "TypeError"
message | "OCA\\Mail\\Http\\AttachmentDownloadResponse::__construct(): Argument #1 ($content) must be of type string, null given, called in /var/lib/nextcloud/apps/mail/lib/Controller/MessagesController.php on line 549"
code | 0
trace |  
0 |  
file | "/var/lib/nextcloud/apps/mail/lib/Controller/MessagesController.php"
line | 549
function | "__construct"
class | "OCA\\Mail\\Http\\AttachmentDownloadResponse"
1 |  
file | "/usr/share/nextcloud/lib/private/AppFramework/Http/Dispatcher.php"
line | 230
function | "export"
class | "OCA\\Mail\\Controller\\MessagesController"
2 |  
file | "/usr/share/nextcloud/lib/private/AppFramework/Http/Dispatcher.php"
line | 137
function | "executeController"
class | "OC\\AppFramework\\Http\\Dispatcher"
3 |  
file | "/usr/share/nextcloud/lib/private/AppFramework/App.php"
line | 184
function | "dispatch"
class | "OC\\AppFramework\\Http\\Dispatcher"
4 |  
file | "/usr/share/nextcloud/lib/private/Route/Router.php"
line | 315
function | "main"
class | "OC\\AppFramework\\App"
5 |  
file | "/usr/share/nextcloud/lib/base.php"
line | 1069
function | "match"
class | "OC\\Route\\Router"
6 |  
file | "/usr/share/nextcloud/index.php"
line | 39
function | "handleRequest"
class | "OC"
previous | null
code | 0

Sjoerd001 avatar Jun 11 '24 06:06 Sjoerd001

Some headers:

Cache-Control: no-cache, no-store, must-revalidate Connection: close Content-Security-Policy: default-src 'none';base-uri 'none';manifest-src 'self';frame-ancestors 'none' Content-Type: application/json; charset=utf-8 Date: Tue, 11 Jun 2024 06:26:27 GMT Expires: Thu, 19 Nov 1981 08:52:00 GMT Feature-Policy: autoplay 'none';camera 'none';fullscreen 'none';geolocation 'none';microphone 'none';payment 'none' Pragma: no-cache Referrer-Policy: no-referrer Server: Apache/2.4.59 (Fedora Linux) OpenSSL/3.2.1 mod_auth_gssapi/1.6.5 mod_fcgid/2.3.9 SVN/1.14.3 mod_wsgi/5.0.0 Python/3.12 mod_perl/2.0.13 Perl/v5.38.2 Strict-Transport-Security: max-age=15552000; includeSubDomains Transfer-Encoding: chunked X-Content-Type-Options: nosniff X-Frame-Options: SAMEORIGIN X-Permitted-Cross-Domain-Policies: none X-Powered-By: PHP/8.3.7 X-Request-Id: ZmfuEzIpnJcAslS-5wgKnQAAAA4 X-Robots-Tag: noindex, nofollow X-XSS-Protection: 1; mode=block x-mail-response: true

Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,/;q=0.8 Accept-Encoding: gzip, deflate, br, zstd Accept-Language: nl,en-US;q=0.7,en;q=0.3 Connection: keep-alive DNT: 1 Host: mydomain.tld Priority: u=1 Sec-Fetch-Dest: document Sec-Fetch-Mode: navigate Sec-Fetch-Site: same-origin Sec-Fetch-User: ?1 Sec-GPC: 1 Upgrade-Insecure-Requests: 1 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:126.0) Gecko/20100101 Firefox/126.0

Sjoerd001 avatar Jun 11 '24 06:06 Sjoerd001

@Sjoerd001, can I ask you about your issue? The email body is displaying as white. Also, when you click on 'reply', is the content of the email loading? I'm experiencing a similar issue with some emails where the body does not load initially. When I check the source mail, I can see the content. When I check with a other mail client no issues. However, when I click 'reply' and scroll down, the email content becomes visible. But when I click on the original email, the body is empty and not visible.

I've installed the latest NC Mail 3.7.2.

Thanks!

Cijay22 avatar Jul 10 '24 06:07 Cijay22

@Cijay22 I have the same issue that mails not fully loaded and the email is showing white instead of content. When I go to answer the mailcontent is loading. With all other webmail clients it is working without any issues! So it seems to be there is a bug in the mailclient NC Mail mail1

NC Mail after click on answer mail2

Roundcube mailclient mail3-roundcube

Is there any solution for that?

yockl avatar Jul 10 '24 15:07 yockl

Export the emails as .eml, rename to .txt and upload it here for an engineer to reproduce

ChristophWurst avatar Jul 11 '24 07:07 ChristophWurst

Your reply as .txt renamed .eml Re- -nextcloud-mail- Unable to load message (Issue #9729)-ead1d195b83c1b96e31e8acc27dc1fe5.txt

Mail in Nextcloud/SnappyMail:

Screenshot at 2024-07-11 13-09-28

Same for Nexcloud/Mail (No body message):

Screenshot at 2024-07-11 13-29-57

Sjoerd001 avatar Jul 11 '24 11:07 Sjoerd001

@Cijay22 I have the same issue that mails not fully loaded and the email is showing white instead of content.

Please open a new ticket for your problem. It's not the same that @Sjoerd001 is reporting. Export the problematic email so we can reproduce with the same message.

ChristophWurst avatar Jul 11 '24 11:07 ChristophWurst

@Sjoerd001 I think for you problem it would be best to temporarily enable debug mode via config.php and watch data/horde_imap.log for any IMAP errors.

ChristophWurst avatar Jul 11 '24 11:07 ChristophWurst

Debugging was already enabled: 'debug' => true, 'loglevel' => 0, 'loglevel_frontend' => 0, 'log.backtrace' => true, 'log_query' => false, 'logfile' => '/var/log/nextcloud/asus/nextcloud.log', 'log_rotate_size' => 1073741824,

This is my imap connection from horde_imap.log:

Thu, 11 Jul 2024 11:48:46 +0000 Connection to: imap://10.10.3.198:993/ Server connection took 0.0076 seconds. S: * OK [CAPABILITY IMAP4rev1 AUTH=LOGIN AUTH=CRAM-MD5 STARTTLS ID LITERAL+] "IMAPS server ready" C: 1 LOGIN sjxxxxx [PASSWORD] S: 1 OK [CAPABILITY IMAP4rev1 ACL RIGHTS=texk NAMESPACE CHILDREN SORT QUOTA THREAD=ORDEREDSUBJECT UNSELECT IDLE ID UIDPLUS WITHIN CONDSTORE LITERAL+ ENABLE QRESYNC] User sjxxxxx authenticated Command 1 took 0.0396 seconds. CACHE: Using the OCA\Mail\Cache\Cache storage driver. C: 2 ENABLE QRESYNC C: 3 STATUS INBOX (MESSAGES RECENT UIDNEXT UIDVALIDITY UNSEEN) S: * ENABLED QRESYNC S: 2 OK ENABLE completed Command 2 took 0.0023 seconds. S: * STATUS "INBOX" (MESSAGES 376 RECENT 0 UIDNEXT 822469 UIDVALIDITY 1 UNSEEN 137) S: 3 OK STATUS completed Command 3 took 0.0171 seconds. S: * STATUS "INBOX" (MESSAGES 376 UIDNEXT 822469 UIDVALIDITY 1 HIGHESTMODSEQ 18415) S: 3 OK STATUS completed Command 3 took 0.0104 seconds. C: 4 STATUS INBOX (MESSAGES UIDNEXT UIDVALIDITY HIGHESTMODSEQ) S: * STATUS "INBOX" (MESSAGES 376 UIDNEXT 822469 UIDVALIDITY 1 HIGHESTMODSEQ 18415) S: 4 OK STATUS completed Command 4 took 0.0145 seconds. C: 5 STATUS INBOX (MESSAGES UIDNEXT UIDVALIDITY HIGHESTMODSEQ) S: * STATUS "INBOX" (MESSAGES 376 UIDNEXT 822469 UIDVALIDITY 1 HIGHESTMODSEQ 18415) S: 5 OK STATUS completed Command 5 took 0.0146 seconds. C: 6 EXAMINE INBOX (QRESYNC (1 18415 822464,822466,822468)) S: * 376 EXISTS S: * 0 RECENT S: * FLAGS (\Seen \Answered \Deleted \Flagged \Draft $label1 NonJunk) S: * OK [PERMANENTFLAGS (\Seen \Answered \Deleted \Flagged \Draft $label1 NonJunk *)] Flags allowed. S: * OK [UIDNEXT 822469] Predicted next UID S: * OK [UIDVALIDITY 1] UID value S: * OK [HIGHESTMODSEQ 18415] Highest S: 6 OK [READ-ONLY] EXAMINE completed, CONDSTORE is now enabled Command 6 took 1.2283 seconds. SEARCH: Retrieved search from cache (5fd24ddf2e6b52e01ce806e5030eed4e [INBOX]) CACHE: Retrieved messages (HICenv,HICflags,HICdate,HICdg [INBOX; 822466,822468]) C: 7 UID FETCH 822466,822468 (BODY.PEEK[HEADER]) S: 7 OK UID FETCH completed Command 7 took 0.0019 seconds. C: 8 SELECT INBOX (QRESYNC (1 18415 822464,822466,822468)) S: * OK [CLOSED] S: * 376 EXISTS S: * 0 RECENT S: * FLAGS (\Seen \Answered \Deleted \Flagged \Draft $label1 NonJunk) S: * OK [PERMANENTFLAGS (\Seen \Answered \Deleted \Flagged \Draft $label1 NonJunk *)] Flags allowed. S: * OK [UIDNEXT 822469] Predicted next UID S: * OK [UIDVALIDITY 1] UID value S: * OK [HIGHESTMODSEQ 18415] Highest S: 8 OK [READ-WRITE] SELECT completed, CONDSTORE is now enabled Command 8 took 0.0087 seconds. C: 9 UID FETCH 1:* UID (VANISHED CHANGEDSINCE 18412) S: 9 OK UID FETCH completed Command 9 took 0.0035 seconds. C: 10 LOGOUT S: * BYE S: 10 OK LOGOUT completed Command 10 took 0.0016 seconds.

Sjoerd001 avatar Jul 11 '24 11:07 Sjoerd001

That looks ok

ChristophWurst avatar Jul 11 '24 12:07 ChristophWurst

Is this not a clue about __construct() message or has this to do with nextcloud core itself.

{"status":"error","message":"OCA\\Mail\\Http\\AttachmentDownloadResponse::__construct(): Argument #1 ($content) must be of type string, null given, called in \/var\/lib\/nextcloud\/apps\/mail\/lib\/Controller\/MessagesController.php on line 549 in file '\/var\/lib\/nextcloud\/apps\/mail\/lib\/Http\/AttachmentDownloadResponse.php' line 45"

-- Now running nextcloud 29.0.3.4 Mail 3.7.4

Sjoerd001 avatar Jul 15 '24 23:07 Sjoerd001

The handling happens in https://github.com/nextcloud/mail/blob/44604ad7880e81f195a70bb11e7886e5fa676b64/lib/IMAP/MessageMapper.php#L465-L498. https://github.com/nextcloud/mail/blob/44604ad7880e81f195a70bb11e7886e5fa676b64/lib/IMAP/MessageMapper.php#L490-L492 seems to be the only path that returns null. This can only happen if Horde does not find the message by UID, or there is more than one.

ChristophWurst avatar Jul 16 '24 06:07 ChristophWurst

After all the updates it is still the same problem. I can use roundcubemail, squirrelmail, snappymail whithout problems, only this app doesn't work. Strange to me it's the default app to access the mail after new installation.

  • Nextcloud Hub 9 (30.0.4)
  • Mail Version 4.1.0-beta.2

Sjoerd001 avatar Dec 12 '24 22:12 Sjoerd001

Dear @Sjoerd001, Thank you for your feedback. It is unfortunately expected to not see any changes, because the linked code has not been touched.

Here's a logging patch for you: https://github.com/nextcloud/mail/pull/10492. Apply it, set your log level to info or lower, reproduce and check nextcloud.log. https://docs.nextcloud.com/server/latest/admin_manual/issues/applying_patch.html#patching-apps

Thank you.

ChristophWurst avatar Dec 13 '24 07:12 ChristophWurst

  • Somehow markdown format doesnt seems to work in this case

Applied the patch

    490                 if (($message = $result->first()) === null) {     491                         \OCP\Log\logger('mail')->info('Found ' . $result->count() . ' results');     492                         return null;     493                 }

Got the following messages in the log

{ "reqId": "Z1ywhvsts3MPFZ3WnPGpDgAAmAw", "level": 3, "time": "December 13, 2024 23:09:13", "remoteAddr": "10.10.254.1", "user": "xxxxx", "app": "mail", "method": "GET", "url": "/nextcloud/index.php/apps/mail/api/messages/44008/body", "message": "Could http://index.php/apps/mail/api/messages/44008/body%22,%22message%22:%22Could not load message", "userAgent": "Mozilla/5.0 (X11; Linux x86_64; rv:133.0) Gecko/20100101 Firefox/133.0", "version": "30.0.4.1", "exception": { "Exception": "OCA\\Mail\\Exception\\ServiceException", "Message": "Could not load message", "Code": 0, "Trace": [ { "file": "/var/lib/nextcloud/apps/mail/lib/Controller/MessagesController.php", "line": 211, "function": "getImapMessage", "class": "OCA\\Mail\\Service\\MailManager", "type": "->" }, { "file": "/usr/share/nextcloud/lib/private/AppFramework/Http/Dispatcher.php", "line": 208, "function": "getBody", "class": "OCA\\Mail\\Controller\\MessagesController", "type": "->" }, { "file": "/usr/share/nextcloud/lib/private/AppFramework/Http/Dispatcher.php", "line": 114, "function": "executeController", "class": "OC\\AppFramework\\Http\\Dispatcher", "type": "->" }, { "file": "/usr/share/nextcloud/lib/private/AppFramework/App.php", "line": 161, "function": "dispatch", "class": "OC\\AppFramework\\Http\\Dispatcher", "type": "->" }, { "file": "/usr/share/nextcloud/lib/private/Route/Router.php", "line": 302, "function": "main", "class": "OC\\AppFramework\\App", "type": "::" }, { "file": "/usr/share/nextcloud/lib/base.php", "line": 1003, "function": "match", "class": "OC\\Route\\Router", "type": "->" }, { "file": "/usr/share/nextcloud/index.php", "line": 24, "function": "handleRequest", "class": "OC", "type": "::" } ], "File": "/var/lib/nextcloud/apps/mail/lib/Service/MailManager.php", "Line": 196, "Previous": { "Exception": "OCP\\AppFramework\\Db\\DoesNotExistException", "Message": "Message does not exist", "Code": 0, "Trace": [ { "file": "/var/lib/nextcloud/apps/mail/lib/Service/MailManager.php", "line": 188, "function": "find", "class": "OCA\\Mail\\IMAP\\MessageMapper", "type": "->" }, { "file": "/var/lib/nextcloud/apps/mail/lib/Controller/MessagesController.php", "line": 211, "function": "getImapMessage", "class": "OCA\\Mail\\Service\\MailManager", "type": "->" }, { "file": "/usr/share/nextcloud/lib/private/AppFramework/Http/Dispatcher.php", "line": 208, "function": "getBody", "class": "OCA\\Mail\\Controller\\MessagesController", "type": "->" }, { "file": "/usr/share/nextcloud/lib/private/AppFramework/Http/Dispatcher.php", "line": 114, "function": "executeController", "class": "OC\\AppFramework\\Http\\Dispatcher", "type": "->" }, { "file": "/usr/share/nextcloud/lib/private/AppFramework/App.php", "line": 161, "function": "dispatch", "class": "OC\\AppFramework\\Http\\Dispatcher", "type": "->" }, { "file": "/usr/share/nextcloud/lib/private/Route/Router.php", "line": 302, "function": "main", "class": "OC\\AppFramework\\App", "type": "::" }, { "file": "/usr/share/nextcloud/lib/base.php", "line": 1003, "function": "match", "class": "OC\\Route\\Router", "type": "->" }, { "file": "/usr/share/nextcloud/index.php", "line": 24, "function": "handleRequest", "class": "OC", "type": "::" } ], "File": "/var/lib/nextcloud/apps/mail/lib/IMAP/MessageMapper.php", "Line": 74 }, "message": "Could not load message", "exception": {}, "CustomMessage": "Could not load message" } }, { "reqId": "Z1ywlue29j7Cpgy1b1JxowAAzBE", "level": 1, "time": "December 13, 2024 23:09:29", "remoteAddr": "10.10.254.1", "user": "xxxxxx", "app": "mail", "method": "GET", "url": "/nextcloud/index.php/apps/mail/api/messages/44008/source", "message": "Found http://index.php/apps/mail/api/messages/44008/source%22,%22message%22:%22Found 0 results", "userAgent": "Mozilla/5.0 (X11; Linux x86_64; rv:133.0) Gecko/20100101 Firefox/133.0", "version": "30.0.4.1", "data": { "app": "mail" } }

Sjoerd001 avatar Dec 13 '24 22:12 Sjoerd001

Still no go on latest mail update 4.1.1. When starting it looks good:

Image

But selecting a message i still got the same error message.

With the patch i get this exerpt in the log:

{
  "reqId": "Z2mN99176x3muDfEuoqLOgAAAAg",
  "level": 3,
  "time": "December 23, 2024 17:21:11",
  "remoteAddr": "xx.xx.xx.xx",
  "user": "xxxxxxxxxxxxxx",
  "app": "mail",
  "method": "GET",
  "url": "/nextcloud/index.php/apps/mail/api/messages/44194/body",
  "message": "Could not load message",
  "userAgent": "Mozilla/5.0 (X11; Linux x86_64; rv:133.0) Gecko/20100101 Firefox/133.0",
  "version": "30.0.4.1",
  "exception": {
    "Exception": "OCA\\Mail\\Exception\\ServiceException",
    "Message": "Could not load message",
    "Code": 0,
    "Trace": [
      {
        "file": "/var/lib/nextcloud/apps/mail/lib/Controller/MessagesController.php",
        "line": 211,
        "function": "getImapMessage",
        "class": "OCA\\Mail\\Service\\MailManager",
        "type": "->"
      },
      {
        "file": "/usr/share/nextcloud/lib/private/AppFramework/Http/Dispatcher.php",
        "line": 208,
        "function": "getBody",
        "class": "OCA\\Mail\\Controller\\MessagesController",
        "type": "->"
      },
      {
        "file": "/usr/share/nextcloud/lib/private/AppFramework/Http/Dispatcher.php",
        "line": 114,
        "function": "executeController",
        "class": "OC\\AppFramework\\Http\\Dispatcher",
        "type": "->"
      },
      {
        "file": "/usr/share/nextcloud/lib/private/AppFramework/App.php",
        "line": 161,
        "function": "dispatch",
        "class": "OC\\AppFramework\\Http\\Dispatcher",
        "type": "->"
      },
      {
        "file": "/usr/share/nextcloud/lib/private/Route/Router.php",
        "line": 302,
        "function": "main",
        "class": "OC\\AppFramework\\App",
        "type": "::"
      },
      {
        "file": "/usr/share/nextcloud/lib/base.php",
        "line": 1003,
        "function": "match",
        "class": "OC\\Route\\Router",
        "type": "->"
      },
      {
        "file": "/usr/share/nextcloud/index.php",
        "line": 24,
        "function": "handleRequest",
        "class": "OC",
        "type": "::"
      }
    ],
    "File": "/var/lib/nextcloud/apps/mail/lib/Service/MailManager.php",
    "Line": 196,
    "Previous": {
      "Exception": "OCP\\AppFramework\\Db\\DoesNotExistException",
      "Message": "Message does not exist",
      "Code": 0,
      "Trace": [
        {
          "file": "/var/lib/nextcloud/apps/mail/lib/Service/MailManager.php",
          "line": 188,
          "function": "find",
          "class": "OCA\\Mail\\IMAP\\MessageMapper",
          "type": "->"
        },
        {
          "file": "/var/lib/nextcloud/apps/mail/lib/Controller/MessagesController.php",
          "line": 211,
          "function": "getImapMessage",
          "class": "OCA\\Mail\\Service\\MailManager",
          "type": "->"
        },
        {
          "file": "/usr/share/nextcloud/lib/private/AppFramework/Http/Dispatcher.php",
          "line": 208,
          "function": "getBody",
          "class": "OCA\\Mail\\Controller\\MessagesController",
          "type": "->"
        },
        {
          "file": "/usr/share/nextcloud/lib/private/AppFramework/Http/Dispatcher.php",
          "line": 114,
          "function": "executeController",
          "class": "OC\\AppFramework\\Http\\Dispatcher",
          "type": "->"
        },
        {
          "file": "/usr/share/nextcloud/lib/private/AppFramework/App.php",
          "line": 161,
          "function": "dispatch",
          "class": "OC\\AppFramework\\Http\\Dispatcher",
          "type": "->"
        },
        {
          "file": "/usr/share/nextcloud/lib/private/Route/Router.php",
          "line": 302,
          "function": "main",
          "class": "OC\\AppFramework\\App",
          "type": "::"
        },
        {
          "file": "/usr/share/nextcloud/lib/base.php",
          "line": 1003,
          "function": "match",
          "class": "OC\\Route\\Router",
          "type": "->"
        },
        {
          "file": "/usr/share/nextcloud/index.php",
          "line": 24,
          "function": "handleRequest",
          "class": "OC",
          "type": "::"
        }
      ],
      "File": "/var/lib/nextcloud/apps/mail/lib/IMAP/MessageMapper.php",
      "Line": 78
    },
    "message": "Could not load message",
    "exception": {},
    "CustomMessage": "Could not load message"
  }
}
{
  "reqId": "Z2mOEd176x3muDfEuoqLPAAABhY",
  "level": 1,
  "time": "December 23, 2024 17:21:38",
  "remoteAddr": "x.x.x.x",
  "user": "xxxx",
  "app": "mail",
  "method": "GET",
  "url": "/nextcloud/index.php/apps/mail/api/messages/44194/source",
  "message": "Found 0 results",
  "userAgent": "Mozilla/5.0 (X11; Linux x86_64; rv:133.0) Gecko/20100101 Firefox/133.0",
  "version": "30.0.4.1",
  "data": {
    "app": "mail"
  }
}

Sjoerd001 avatar Dec 23 '24 18:12 Sjoerd001

Hi there! It looks like this issue hasn’t seen much activity for a while and might need a bit more information to move forward. If we don’t hear back soon, we may close it to keep things organized. Thanks again for your contributions – we really appreciate it!

nextcloud-command avatar Jan 23 '25 01:01 nextcloud-command

Just today got a wheird problem with the suspicious_login app.

Doing:

bash-5.2$ ./occ suspiciouslogin:optimize --verbose
Optimizing a MLP trainer in 100 steps

Epoch 0: epochs= 330 layers= 2 shuffledRate=0.005 randomRate=2.000, learningRate=0.0070
  Step width for next config neighbor: 0.8
An unhandled exception has been thrown:
Amp\Parallel\Worker\TaskFailureError: Uncaught Error in worker with message "Call to undefined method Rubix\ML\Datasets\Labeled::numFeatures()" and code "0"; use Amp\Parallel\Worker\TaskFailureError::getOriginalTrace() for the stack trace in the worker in /usr/share/nextcloud/apps/suspicious_login/vendor/amphp/parallel/lib/Worker/Internal/TaskFailure.php:60
Stack trace:
#0 /usr/share/nextcloud/apps/suspicious_login/vendor/amphp/parallel/lib/Worker/Internal/TaskFailure.php(52): Amp\Parallel\Worker\Internal\TaskFailure->createException()
#1 /usr/share/nextcloud/apps/suspicious_login/vendor/amphp/parallel/lib/Worker/TaskWorker.php(144): Amp\Parallel\Worker\Internal\TaskFailure->promise()
#2 [internal function]: Amp\Parallel\Worker\TaskWorker->Amp\Parallel\Worker\{closure}()
#3 /usr/share/nextcloud/apps/suspicious_login/vendor/amphp/amp/lib/Coroutine.php(118): Generator->send()
#4 /usr/share/nextcloud/apps/suspicious_login/vendor/amphp/amp/lib/Internal/Placeholder.php(149): Amp\Coroutine->Amp\{closure}()
#5 /usr/share/nextcloud/apps/suspicious_login/vendor/amphp/amp/lib/Coroutine.php(123): Amp\Coroutine->resolve()
#6 /usr/share/nextcloud/apps/suspicious_login/vendor/amphp/amp/lib/Internal/Placeholder.php(149): Amp\Coroutine->Amp\{closure}()
#7 /usr/share/nextcloud/apps/suspicious_login/vendor/amphp/amp/lib/Coroutine.php(123): Amp\Coroutine->resolve()
#8 /usr/share/nextcloud/apps/suspicious_login/vendor/amphp/amp/lib/Internal/Placeholder.php(149): Amp\Coroutine->Amp\{closure}()
#9 /usr/share/nextcloud/apps/suspicious_login/vendor/amphp/amp/lib/Deferred.php(53): Amp\Promise@anonymous->resolve()
#10 /usr/share/nextcloud/apps/suspicious_login/vendor/amphp/byte-stream/lib/ResourceInputStream.php(101): Amp\Deferred->resolve()
#11 /usr/share/nextcloud/apps/suspicious_login/vendor/amphp/amp/lib/Loop/NativeDriver.php(327): Amp\ByteStream\ResourceInputStream::Amp\ByteStream\{closure}()
#12 /usr/share/nextcloud/apps/suspicious_login/vendor/amphp/amp/lib/Loop/NativeDriver.php(124): Amp\Loop\NativeDriver->selectStreams()
#13 /usr/share/nextcloud/apps/suspicious_login/vendor/amphp/amp/lib/Loop/Driver.php(138): Amp\Loop\NativeDriver->dispatch()
#14 /usr/share/nextcloud/apps/suspicious_login/vendor/amphp/amp/lib/Loop/Driver.php(72): Amp\Loop\Driver->tick()
#15 /usr/share/nextcloud/apps/suspicious_login/vendor/amphp/amp/lib/Loop.php(95): Amp\Loop\Driver->run()
#16 /var/lib/nextcloud/apps/mail/vendor/amphp/amp/lib/functions.php(222): Amp\Loop::run()
#17 /usr/share/nextcloud/apps/suspicious_login/lib/Service/MLP/OptimizerService.php(185): Amp\Promise\wait()
#18 /usr/share/nextcloud/apps/suspicious_login/lib/Command/Optimize.php(65): OCA\SuspiciousLogin\Service\MLP\OptimizerService->optimize()
#19 /usr/share/nextcloud/3rdparty/symfony/console/Command/Command.php(326): OCA\SuspiciousLogin\Command\Optimize->execute()
#20 /usr/share/nextcloud/3rdparty/symfony/console/Application.php(1078): Symfony\Component\Console\Command\Command->run()
#21 /usr/share/nextcloud/3rdparty/symfony/console/Application.php(324): Symfony\Component\Console\Application->doRunCommand()
#22 /usr/share/nextcloud/3rdparty/symfony/console/Application.php(175): Symfony\Component\Console\Application->doRun()
#23 /usr/share/nextcloud/lib/private/Console/Application.php(183): Symfony\Component\Console\Application->run()
#24 /usr/share/nextcloud/console.php(87): OC\Console\Application->run()
#25 /usr/share/nextcloud/occ(11): require_once('...')
Only if i disable and remove the mail app suspisious_login app is working again.

Sjoerd001 avatar Feb 03 '25 15:02 Sjoerd001

Hi there! It looks like this issue hasn’t seen much activity for a while and might need a bit more information to move forward. If we don’t hear back soon, we may close it to keep things organized. Thanks again for your contributions – we really appreciate it!

nextcloud-command avatar Mar 06 '25 01:03 nextcloud-command

Now Running NC 31.0.18 with mail app 4.2.4 and got some other errors:

At
"reqId": "gdvjuG4dILUxhc951Lwy", "level": 3, "time": "March 11, 2025 03:44:57", "remoteAddr": "", "user": false, there is no ip adress and no username to connect to the imap-server.

I don't know if account statistics has something to do with not showing the body of the email but let me know if there is something else I could do.

I've also run:

  • occ mail:account:{diagnose|sync}
  • occ mail:clean-up
{
  "reqId": "Z8-iaR776RUgxgWY5H2UgAAADgM",
  "level": 3,
  "time": "March 11, 2025 03:39:38",
  "remoteAddr": "10.10.254.1",
  "user": "*** sensitive parameters replaced ***",
  "app": "mail",
  "method": "GET",
  "url": "/nextcloud/index.php/apps/mail/api/messages/2893/body",
  "message": "Could not load message",
  "userAgent": "Mozilla/5.0 (X11; Linux x86_64; rv:136.0) Gecko/20100101 Firefox/136.0",
  "version": "31.0.0.18",
  "exception": {
    "Exception": "OCA\\Mail\\Exception\\ServiceException",
    "Message": "Could not load message",
    "Code": 0,
    "Trace": [
      {
        "file": "/var/lib/nextcloud/apps/mail/lib/Controller/MessagesController.php",
        "line": 211,
        "function": "getImapMessage",
        "class": "OCA\\Mail\\Service\\MailManager",
        "type": "->"
      },
      {
        "file": "/usr/share/nextcloud/lib/private/AppFramework/Http/Dispatcher.php",
        "line": 200,
        "function": "getBody",
        "class": "OCA\\Mail\\Controller\\MessagesController",
        "type": "->"
      },
      {
        "file": "/usr/share/nextcloud/lib/private/AppFramework/Http/Dispatcher.php",
        "line": 114,
        "function": "executeController",
        "class": "OC\\AppFramework\\Http\\Dispatcher",
        "type": "->"
      },
      {
        "file": "/usr/share/nextcloud/lib/private/AppFramework/App.php",
        "line": 161,
        "function": "dispatch",
        "class": "OC\\AppFramework\\Http\\Dispatcher",
        "type": "->"
      },
      {
        "file": "/usr/share/nextcloud/lib/private/Route/Router.php",
        "line": 307,
        "function": "main",
        "class": "OC\\AppFramework\\App",
        "type": "::"
      },
      {
        "file": "/usr/share/nextcloud/lib/base.php",
        "line": 1018,
        "function": "match",
        "class": "OC\\Route\\Router",
        "type": "->"
      },
      {
        "file": "/usr/share/nextcloud/index.php",
        "line": 24,
        "function": "handleRequest",
        "class": "OC",
        "type": "::"
      }
    ],
    "File": "/var/lib/nextcloud/apps/mail/lib/Service/MailManager.php",
    "Line": 196,
    "Previous": {
      "Exception": "OCP\\AppFramework\\Db\\DoesNotExistException",
      "Message": "Message does not exist",
      "Code": 0,
      "Trace": [
        {
          "file": "/var/lib/nextcloud/apps/mail/lib/Service/MailManager.php",
          "line": 188,
          "function": "find",
          "class": "OCA\\Mail\\IMAP\\MessageMapper",
          "type": "->"
        },
        {
          "file": "/var/lib/nextcloud/apps/mail/lib/Controller/MessagesController.php",
          "line": 211,
          "function": "getImapMessage",
          "class": "OCA\\Mail\\Service\\MailManager",
          "type": "->"
        },
        {
          "file": "/usr/share/nextcloud/lib/private/AppFramework/Http/Dispatcher.php",
          "line": 200,
          "function": "getBody",
          "class": "OCA\\Mail\\Controller\\MessagesController",
          "type": "->"
        },
        {
          "file": "/usr/share/nextcloud/lib/private/AppFramework/Http/Dispatcher.php",
          "line": 114,
          "function": "executeController",
          "class": "OC\\AppFramework\\Http\\Dispatcher",
          "type": "->"
        },
        {
          "file": "/usr/share/nextcloud/lib/private/AppFramework/App.php",
          "line": 161,
          "function": "dispatch",
          "class": "OC\\AppFramework\\Http\\Dispatcher",
          "type": "->"
        },
        {
          "file": "/usr/share/nextcloud/lib/private/Route/Router.php",
          "line": 307,
          "function": "main",
          "class": "OC\\AppFramework\\App",
          "type": "::"
        },
        {
          "file": "/usr/share/nextcloud/lib/base.php",
          "line": 1018,
          "function": "match",
          "class": "OC\\Route\\Router",
          "type": "->"
        },
        {
          "file": "/usr/share/nextcloud/index.php",
          "line": 24,
          "function": "handleRequest",
          "class": "OC",
          "type": "::"
        }
      ],
      "File": "/var/lib/nextcloud/apps/mail/lib/IMAP/MessageMapper.php",
      "Line": 80
    },
    "message": "Could not load message",
    "exception": {},
    "CustomMessage": "Could not load message"
  }
}
{
  "reqId": "gdvjuG4dILUxhc951Lwy",
  "level": 3,
  "time": "March 11, 2025 03:44:57",
  "remoteAddr": "",
  "user": false,
  "app": "mail",
  "method": "",
  "url": "/nextcloud/occ",
  "message": "Could not get account statistics: Horde_Imap_Client_Exception: Error connecting to mail server. in /var/lib/nextcloud/apps/mail/vendor/bytestream/horde-imap-client/lib/Horde/Imap/Client/Socket.php:607\nStack trace:\n#0 /var/lib/nextcloud/apps/mail/vendor/bytestream/horde-imap-client/lib/Horde/Imap/Client/Socket.php(375): Horde_Imap_Client_Socket->_connect()\n#1 /var/lib/nextcloud/apps/mail/lib/IMAP/HordeImapClient.php(59): Horde_Imap_Client_Socket->_login()\n#2 /var/lib/nextcloud/apps/mail/vendor/bytestream/horde-imap-client/lib/Horde/Imap/Client/Base.php(853): OCA\\Mail\\IMAP\\HordeImapClient->_login()\n#3 /var/lib/nextcloud/apps/mail/lib/Command/DiagnoseAccount.php(94): Horde_Imap_Client_Base->login()\n#4 /var/lib/nextcloud/apps/mail/lib/Command/DiagnoseAccount.php(69): OCA\\Mail\\Command\\DiagnoseAccount->printCapabilitiesStats()\n#5 /usr/share/nextcloud/3rdparty/symfony/console/Command/Command.php(326): OCA\\Mail\\Command\\DiagnoseAccount->execute()\n#6 /usr/share/nextcloud/3rdparty/symfony/console/Application.php(1078): Symfony\\Component\\Console\\Command\\Command->run()\n#7 /usr/share/nextcloud/3rdparty/symfony/console/Application.php(324): Symfony\\Component\\Console\\Application->doRunCommand()\n#8 /usr/share/nextcloud/3rdparty/symfony/console/Application.php(175): Symfony\\Component\\Console\\Application->doRun()\n#9 /usr/share/nextcloud/lib/private/Console/Application.php(187): Symfony\\Component\\Console\\Application->run()\n#10 /usr/share/nextcloud/console.php(87): OC\\Console\\Application->run()\n#11 /usr/share/nextcloud/occ(11): require_once('...')\n#12 {main}",
  "userAgent": "--",
  "version": "31.0.0.18",
  "exception": {
    "Exception": "Horde_Imap_Client_Exception",
    "Message": "Error connecting to mail server.",
    "Code": 11,
    "Trace": [
      {
        "file": "/var/lib/nextcloud/apps/mail/vendor/bytestream/horde-imap-client/lib/Horde/Imap/Client/Socket.php",
        "line": 375,
        "function": "_connect",
        "class": "Horde_Imap_Client_Socket",
        "type": "->"
      },
      {
        "file": "/var/lib/nextcloud/apps/mail/lib/IMAP/HordeImapClient.php",
        "line": 59,
        "function": "_login",
        "class": "Horde_Imap_Client_Socket",
        "type": "->",
        "args": [
          "*** sensitive parameters replaced ***"
        ]
      },
      {
        "file": "/var/lib/nextcloud/apps/mail/vendor/bytestream/horde-imap-client/lib/Horde/Imap/Client/Base.php",
        "line": 853,
        "function": "_login",
        "class": "OCA\\Mail\\IMAP\\HordeImapClient",
        "type": "->",
        "args": [
          "*** sensitive parameters replaced ***"
        ]
      },
      {
        "file": "/var/lib/nextcloud/apps/mail/lib/Command/DiagnoseAccount.php",
        "line": 94,
        "function": "login",
        "class": "Horde_Imap_Client_Base",
        "type": "->",
        "args": [
          "*** sensitive parameters replaced ***"
        ]
      },
      {
        "file": "/var/lib/nextcloud/apps/mail/lib/Command/DiagnoseAccount.php",
        "line": 69,
        "function": "printCapabilitiesStats",
        "class": "OCA\\Mail\\Command\\DiagnoseAccount",
        "type": "->"
      },
      {
        "file": "/usr/share/nextcloud/3rdparty/symfony/console/Command/Command.php",
        "line": 326,
        "function": "execute",
        "class": "OCA\\Mail\\Command\\DiagnoseAccount",
        "type": "->"
      },
      {
        "file": "/usr/share/nextcloud/3rdparty/symfony/console/Application.php",
        "line": 1078,
        "function": "run",
        "class": "Symfony\\Component\\Console\\Command\\Command",
        "type": "->"
      },
      {
        "file": "/usr/share/nextcloud/3rdparty/symfony/console/Application.php",
        "line": 324,
        "function": "doRunCommand",
        "class": "Symfony\\Component\\Console\\Application",
        "type": "->"
      },
      {
        "file": "/usr/share/nextcloud/3rdparty/symfony/console/Application.php",
        "line": 175,
        "function": "doRun",
        "class": "Symfony\\Component\\Console\\Application",
        "type": "->"
      },
      {
        "file": "/usr/share/nextcloud/lib/private/Console/Application.php",
        "line": 187,
        "function": "run",
        "class": "Symfony\\Component\\Console\\Application",
        "type": "->"
      },
      {
        "file": "/usr/share/nextcloud/console.php",
        "line": 87,
        "function": "run",
        "class": "OC\\Console\\Application",
        "type": "->"
      },
      {
        "file": "/usr/share/nextcloud/occ",
        "line": 11,
        "args": [
          "/usr/share/nextcloud/console.php"
        ],
        "function": "require_once"
      }
    ],
    "File": "/var/lib/nextcloud/apps/mail/vendor/bytestream/horde-imap-client/lib/Horde/Imap/Client/Socket.php",
    "Line": 607,
    "message": "Could not get account statistics: Horde_Imap_Client_Exception: Error connecting to mail server. in /var/lib/nextcloud/apps/mail/vendor/bytestream/horde-imap-client/lib/Horde/Imap/Client/Socket.php:607\nStack trace:\n#0 /var/lib/nextcloud/apps/mail/vendor/bytestream/horde-imap-client/lib/Horde/Imap/Client/Socket.php(375): Horde_Imap_Client_Socket->_connect()\n#1 /var/lib/nextcloud/apps/mail/lib/IMAP/HordeImapClient.php(59): Horde_Imap_Client_Socket->_login()\n#2 /var/lib/nextcloud/apps/mail/vendor/bytestream/horde-imap-client/lib/Horde/Imap/Client/Base.php(853): OCA\\Mail\\IMAP\\HordeImapClient->_login()\n#3 /var/lib/nextcloud/apps/mail/lib/Command/DiagnoseAccount.php(94): Horde_Imap_Client_Base->login()\n#4 /var/lib/nextcloud/apps/mail/lib/Command/DiagnoseAccount.php(69): OCA\\Mail\\Command\\DiagnoseAccount->printCapabilitiesStats()\n#5 /usr/share/nextcloud/3rdparty/symfony/console/Command/Command.php(326): OCA\\Mail\\Command\\DiagnoseAccount->execute()\n#6 /usr/share/nextcloud/3rdparty/symfony/console/Application.php(1078): Symfony\\Component\\Console\\Command\\Command->run()\n#7 /usr/share/nextcloud/3rdparty/symfony/console/Application.php(324): Symfony\\Component\\Console\\Application->doRunCommand()\n#8 /usr/share/nextcloud/3rdparty/symfony/console/Application.php(175): Symfony\\Component\\Console\\Application->doRun()\n#9 /usr/share/nextcloud/lib/private/Console/Application.php(187): Symfony\\Component\\Console\\Application->run()\n#10 /usr/share/nextcloud/console.php(87): OC\\Console\\Application->run()\n#11 /usr/share/nextcloud/occ(11): require_once('...')\n#12 {main}",
    "exception": {
      "details": "[110] Connection timed out",
      "logged": false,
      "raw_msg": "Error connecting to mail server."
    },
    "CustomMessage": "Could not get account statistics: Horde_Imap_Client_Exception: Error connecting to mail server. in /var/lib/nextcloud/apps/mail/vendor/bytestream/horde-imap-client/lib/Horde/Imap/Client/Socket.php:607\nStack trace:\n#0 /var/lib/nextcloud/apps/mail/vendor/bytestream/horde-imap-client/lib/Horde/Imap/Client/Socket.php(375): Horde_Imap_Client_Socket->_connect()\n#1 /var/lib/nextcloud/apps/mail/lib/IMAP/HordeImapClient.php(59): Horde_Imap_Client_Socket->_login()\n#2 /var/lib/nextcloud/apps/mail/vendor/bytestream/horde-imap-client/lib/Horde/Imap/Client/Base.php(853): OCA\\Mail\\IMAP\\HordeImapClient->_login()\n#3 /var/lib/nextcloud/apps/mail/lib/Command/DiagnoseAccount.php(94): Horde_Imap_Client_Base->login()\n#4 /var/lib/nextcloud/apps/mail/lib/Command/DiagnoseAccount.php(69): OCA\\Mail\\Command\\DiagnoseAccount->printCapabilitiesStats()\n#5 /usr/share/nextcloud/3rdparty/symfony/console/Command/Command.php(326): OCA\\Mail\\Command\\DiagnoseAccount->execute()\n#6 /usr/share/nextcloud/3rdparty/symfony/console/Application.php(1078): Symfony\\Component\\Console\\Command\\Command->run()\n#7 /usr/share/nextcloud/3rdparty/symfony/console/Application.php(324): Symfony\\Component\\Console\\Application->doRunCommand()\n#8 /usr/share/nextcloud/3rdparty/symfony/console/Application.php(175): Symfony\\Component\\Console\\Application->doRun()\n#9 /usr/share/nextcloud/lib/private/Console/Application.php(187): Symfony\\Component\\Console\\Application->run()\n#10 /usr/share/nextcloud/console.php(87): OC\\Console\\Application->run()\n#11 /usr/share/nextcloud/occ(11): require_once('...')\n#12 {main}"
  }
}
{
  "reqId": "Z8-lU878zl1my5-1rtj7XgAAzhU",
  "level": 3,
  "time": "March 11, 2025 03:52:03",
  "remoteAddr": "10.10.254.1",
  "user": "*** sensitive parameters replaced ***",
  "app": "mail",
  "method": "GET",
  "url": "/nextcloud/index.php/apps/mail/api/messages/2892/body",
  "message": "Could not load message",
  "userAgent": "Mozilla/5.0 (X11; Linux x86_64; rv:136.0) Gecko/20100101 Firefox/136.0",
  "version": "31.0.0.18",
  "exception": {
    "Exception": "OCA\\Mail\\Exception\\ServiceException",
    "Message": "Could not load message",
    "Code": 0,
    "Trace": [
      {
        "file": "/var/lib/nextcloud/apps/mail/lib/Controller/MessagesController.php",
        "line": 211,
        "function": "getImapMessage",
        "class": "OCA\\Mail\\Service\\MailManager",
        "type": "->"
      },
      {
        "file": "/usr/share/nextcloud/lib/private/AppFramework/Http/Dispatcher.php",
        "line": 200,
        "function": "getBody",
        "class": "OCA\\Mail\\Controller\\MessagesController",
        "type": "->"
      },
      {
        "file": "/usr/share/nextcloud/lib/private/AppFramework/Http/Dispatcher.php",
        "line": 114,
        "function": "executeController",
        "class": "OC\\AppFramework\\Http\\Dispatcher",
        "type": "->"
      },
      {
        "file": "/usr/share/nextcloud/lib/private/AppFramework/App.php",
        "line": 161,
        "function": "dispatch",
        "class": "OC\\AppFramework\\Http\\Dispatcher",
        "type": "->"
      },
      {
        "file": "/usr/share/nextcloud/lib/private/Route/Router.php",
        "line": 307,
        "function": "main",
        "class": "OC\\AppFramework\\App",
        "type": "::"
      },
      {
        "file": "/usr/share/nextcloud/lib/base.php",
        "line": 1018,
        "function": "match",
        "class": "OC\\Route\\Router",
        "type": "->"
      },
      {
        "file": "/usr/share/nextcloud/index.php",
        "line": 24,
        "function": "handleRequest",
        "class": "OC",
        "type": "::"
      }
    ],
    "File": "/var/lib/nextcloud/apps/mail/lib/Service/MailManager.php",
    "Line": 196,
    "Previous": {
      "Exception": "OCP\\AppFramework\\Db\\DoesNotExistException",
      "Message": "Message does not exist",
      "Code": 0,
      "Trace": [
        {
          "file": "/var/lib/nextcloud/apps/mail/lib/Service/MailManager.php",
          "line": 188,
          "function": "find",
          "class": "OCA\\Mail\\IMAP\\MessageMapper",
          "type": "->"
        },
        {
          "file": "/var/lib/nextcloud/apps/mail/lib/Controller/MessagesController.php",
          "line": 211,
          "function": "getImapMessage",
          "class": "OCA\\Mail\\Service\\MailManager",
          "type": "->"
        },
        {
          "file": "/usr/share/nextcloud/lib/private/AppFramework/Http/Dispatcher.php",
          "line": 200,
          "function": "getBody",
          "class": "OCA\\Mail\\Controller\\MessagesController",
          "type": "->"
        },
        {
          "file": "/usr/share/nextcloud/lib/private/AppFramework/Http/Dispatcher.php",
          "line": 114,
          "function": "executeController",
          "class": "OC\\AppFramework\\Http\\Dispatcher",
          "type": "->"
        },
        {
          "file": "/usr/share/nextcloud/lib/private/AppFramework/App.php",
          "line": 161,
          "function": "dispatch",
          "class": "OC\\AppFramework\\Http\\Dispatcher",
          "type": "->"
        },
        {
          "file": "/usr/share/nextcloud/lib/private/Route/Router.php",
          "line": 307,
          "function": "main",
          "class": "OC\\AppFramework\\App",
          "type": "::"
        },
        {
          "file": "/usr/share/nextcloud/lib/base.php",
          "line": 1018,
          "function": "match",
          "class": "OC\\Route\\Router",
          "type": "->"
        },
        {
          "file": "/usr/share/nextcloud/index.php",
          "line": 24,
          "function": "handleRequest",
          "class": "OC",
          "type": "::"
        }
      ],
      "File": "/var/lib/nextcloud/apps/mail/lib/IMAP/MessageMapper.php",
      "Line": 80
    },
    "message": "Could not load message",
    "exception": {},
    "CustomMessage": "Could not load message"
  }
}

Sjoerd001 avatar Mar 11 '25 03:03 Sjoerd001

Could you please truncate data/horde_imap.log, run the commands again and then look at the file? It should give more details to "Error connecting to mail server.".

ChristophWurst avatar Mar 11 '25 06:03 ChristophWurst

Hope I truncate the right way for you.

Starting mail app:

Latest/recent mail has UUID: 922995

------------------------------
>> Tue, 11 Mar 2025 08:02:28 +0000
>> Connection to: imap://*** sensitive parameters replaced ***:993/
>> Server connection took 0.0071 seconds.
S: * OK [CAPABILITY IMAP4rev1 AUTH=LOGIN AUTH=CRAM-MD5 STARTTLS ID LITERAL+] dbmail 3.5.0 ready.
C: 1 LOGIN *** sensitive parameters replaced *** [PASSWORD]
S: 1 OK [CAPABILITY IMAP4rev1 ACL RIGHTS=texk NAMESPACE CHILDREN SORT QUOTA THREAD=ORDEREDSUBJECT UNSELECT IDLE ID UIDPLUS WITHIN CONDSTORE LITERAL+ ENABLE QRESYNC] User *** sensitive parameters replaced *** authenticated
>> Command 1 took 0.0332 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 ENABLE completed
>> Command 2 took 0.0034 seconds.
S: * STATUS "INBOX" (MESSAGES 395 UIDNEXT 922996 UIDVALIDITY 1 HIGHESTMODSEQ 13077)
S: 3 OK STATUS completed
>> Command 3 took 0.052 seconds.
C: 4 EXAMINE INBOX (QRESYNC (1 13077 777604,777622,777679,777780,777786,777798,777848,777900,777928,777932,777998,778284,778424,778764,778766,778774,778798,778840,778842,778850,778860,778926,778934,778962,779035,779037,779045,779061,779063,779123,779135,779141,779143,779145,779147,780063,780157,780439,780517,780519,780535,780539,780926,780928,780936,780948,780968,780970,780984,781006,781014,781018,781020,781046,781048,781064,781068,781072,781074,781076,781084,781096,781106,781108,781118,781120,783734,783748,783750,783752,783754,783756,783758,783760,783762,783770,783778,783790,784194,784196,784198,784200,784202,784210,784212,784214,784216,784218,784242,784244,784246,784248,784250,784252,784254,784256,784258,784262,784264,784266,784268,784270,784272,784274,784276,784278,784302,784304,784306,784308,784310,784312,784314,784320,784324,784326,784336,784346,784352,784360,784370,784372,784604,784612,784706,784772,784776,784821:784823,785134,785166,785169,785174:785176,786731,786733,786735,786737,786739,786741,786743,786755,786765,786767,786769,786771,786773,786775,786777,786789,786791,786793,786795,786797,786799,786809,786817,786821,786833,786841,786843,786845,786847,786849,786851,786853,786855,786857,786859,786861,786863,786865,786871,786879,786883,786885,786889,786891,786895,786897,786903,786907,786913,786915,786919,786921,786923,786925,786927,786931,786943,786945,786949,786951,786953,786957,786965,786973,786975,786977,786989,786991,786993,786997,786999,787003,787013,787045,787047,787085,787099,787105,787107,787111,787115,787121,787129,787133,787135,787137,787139,787143,787147,787151,787153,787157,787161,787163,787165,787167,787177,787179,787181,787185,787187,787189,787191,787195,787197,787199,787205,787241,787287,787295,787317,787367,787461,787595,787597,787601,787605,787621,787623,787627,787629,787631,787633,787641,787643,787649,787661,787663,787665,787667,787671,787677,787683,787685,787691,787721,797630,797632,797694,798300,798714,912648,912650,913048,913606,913992,914196,914200,914457,914459:914465,914615,914641,914643,914661,914713,914771,914903,914907,914935,914970,915119,915123,915145,915155,915187,915258,915274,915318,915394,915533,915571,915660,915723,915727,915743,915745,915795,915906,916020,916022,916026,916028,916073,916104,916185,916197,916203,916217,916339,916518,916594,916608,916682,916772,916866,916952,917194,917196,917480,917875,917877,917879,917889,917909,917913,917925,917941,917943,917949,917983,918070,918133,918234,918236,918238,918250,918310,918326,918489,918731,918945,919080,919143,919982,920519,920521,920800,920923,920948,921513,921574,921660,921724,922125,922170,922285,922367,922961,922963,922965,922967,922969,922973,922975,922977,922981,922983,922985,922987,922989,922991,922993,922995))
S: * 395 EXISTS
S: * 0 RECENT
S: * FLAGS (\Seen \Answered \Deleted \Flagged \Draft $NotJunk Junk $label1 NOTJUNK $Forwarded)
S: * OK [PERMANENTFLAGS (\Seen \Answered \Deleted \Flagged \Draft $NotJunk Junk $label1 NOTJUNK $Forwarded \*)] Flags allowed.
S: * OK [UIDNEXT 922996] Predicted next UID
S: * OK [UIDVALIDITY 1] UID value
S: * OK [HIGHESTMODSEQ 13077] Highest
S: 4 OK [READ-ONLY] EXAMINE completed, CONDSTORE is now enabled
>> Command 4 took 0.0824 seconds.
C: 5 SELECT INBOX (QRESYNC (1 13077 777604,777622,777679,777780,777786,777798,777848,777900,777928,777932,777998,778284,778424,778764,778766,778774,778798,778840,778842,778850,778860,778926,778934,778962,779035,779037,779045,779061,779063,779123,779135,779141,779143,779145,779147,780063,780157,780439,780517,780519,780535,780539,780926,780928,780936,780948,780968,780970,780984,781006,781014,781018,781020,781046,781048,781064,781068,781072,781074,781076,781084,781096,781106,781108,781118,781120,783734,783748,783750,783752,783754,783756,783758,783760,783762,783770,783778,783790,784194,784196,784198,784200,784202,784210,784212,784214,784216,784218,784242,784244,784246,784248,784250,784252,784254,784256,784258,784262,784264,784266,784268,784270,784272,784274,784276,784278,784302,784304,784306,784308,784310,784312,784314,784320,784324,784326,784336,784346,784352,784360,784370,784372,784604,784612,784706,784772,784776,784821:784823,785134,785166,785169,785174:785176,786731,786733,786735,786737,786739,786741,786743,786755,786765,786767,786769,786771,786773,786775,786777,786789,786791,786793,786795,786797,786799,786809,786817,786821,786833,786841,786843,786845,786847,786849,786851,786853,786855,786857,786859,786861,786863,786865,786871,786879,786883,786885,786889,786891,786895,786897,786903,786907,786913,786915,786919,786921,786923,786925,786927,786931,786943,786945,786949,786951,786953,786957,786965,786973,786975,786977,786989,786991,786993,786997,786999,787003,787013,787045,787047,787085,787099,787105,787107,787111,787115,787121,787129,787133,787135,787137,787139,787143,787147,787151,787153,787157,787161,787163,787165,787167,787177,787179,787181,787185,787187,787189,787191,787195,787197,787199,787205,787241,787287,787295,787317,787367,787461,787595,787597,787601,787605,787621,787623,787627,787629,787631,787633,787641,787643,787649,787661,787663,787665,787667,787671,787677,787683,787685,787691,787721,797630,797632,797694,798300,798714,912648,912650,913048,913606,913992,914196,914200,914457,914459:914465,914615,914641,914643,914661,914713,914771,914903,914907,914935,914970,915119,915123,915145,915155,915187,915258,915274,915318,915394,915533,915571,915660,915723,915727,915743,915745,915795,915906,916020,916022,916026,916028,916073,916104,916185,916197,916203,916217,916339,916518,916594,916608,916682,916772,916866,916952,917194,917196,917480,917875,917877,917879,917889,917909,917913,917925,917941,917943,917949,917983,918070,918133,918234,918236,918238,918250,918310,918326,918489,918731,918945,919080,919143,919982,920519,920521,920800,920923,920948,921513,921574,921660,921724,922125,922170,922285,922367,922961,922963,922965,922967,922969,922973,922975,922977,922981,922983,922985,922987,922989,922991,922993,922995))
S: * OK [CLOSED]
S: * 395 EXISTS
S: * 0 RECENT
S: * FLAGS (\Seen \Answered \Deleted \Flagged \Draft $NotJunk Junk $label1 NOTJUNK $Forwarded)
S: * OK [PERMANENTFLAGS (\Seen \Answered \Deleted \Flagged \Draft $NotJunk Junk $label1 NOTJUNK $Forwarded \*)] Flags allowed.
S: * OK [UIDNEXT 922996] Predicted next UID
S: * OK [UIDVALIDITY 1] UID value
S: * OK [HIGHESTMODSEQ 13077] Highest
S: * OK [UNSEEN 139] first unseen message
S: 5 OK [READ-WRITE] SELECT completed, CONDSTORE is now enabled
>> Command 5 took 0.027 seconds.
------------------------------
>> Tue, 11 Mar 2025 08:02:29 +0000
>> Connection to: imap://*** sensitive parameters replaced ***:993/
>> Server connection took 0.0326 seconds.
S: * OK [CAPABILITY IMAP4rev1 AUTH=LOGIN AUTH=CRAM-MD5 STARTTLS ID LITERAL+] dbmail 3.5.0 ready.
C: 1 LOGIN *** sensitive parameters replaced *** [PASSWORD]
S: 1 OK [CAPABILITY IMAP4rev1 ACL RIGHTS=texk NAMESPACE CHILDREN SORT QUOTA THREAD=ORDEREDSUBJECT UNSELECT IDLE ID UIDPLUS WITHIN CONDSTORE LITERAL+ ENABLE QRESYNC] User *** sensitive parameters replaced *** authenticated
>> Command 1 took 0.0449 seconds.
>> CACHE: Using the OCA\Mail\Cache\Cache storage driver.
C: 2 ENABLE QRESYNC
C: 3 STATUS INBOX (MESSAGES RECENT UIDNEXT UIDVALIDITY UNSEEN)
S: * ENABLED QRESYNC
S: 2 OK ENABLE completed
>> Command 2 took 0.0055 seconds.
S: * STATUS "INBOX" (MESSAGES 395 RECENT 0 UIDNEXT 922996 UIDVALIDITY 1 UNSEEN 73)
S: 3 OK STATUS completed
>> Command 3 took 0.0308 seconds.
C: 4 LOGOUT
S: * BYE Requested
S: 4 OK LOGOUT completed
>> Command 4 took 0.0023 seconds.
C: 6 LOGOUT
S: * BYE Requested
S: 6 OK LOGOUT completed
>> Command 6 took 0.003 seconds.
------------------------------
>> Tue, 11 Mar 2025 08:02:41 +0000
>> Connection to: imap://*** sensitive parameters replaced ***:993/
>> Server connection took 0.0031 seconds.
S: * OK [CAPABILITY IMAP4rev1 AUTH=LOGIN AUTH=CRAM-MD5 STARTTLS ID LITERAL+] dbmail 3.5.0 ready.
C: 1 LOGIN *** sensitive parameters replaced *** [PASSWORD]
S: 1 OK [CAPABILITY IMAP4rev1 ACL RIGHTS=texk NAMESPACE CHILDREN SORT QUOTA THREAD=ORDEREDSUBJECT UNSELECT IDLE ID UIDPLUS WITHIN CONDSTORE LITERAL+ ENABLE QRESYNC] User *** sensitive parameters replaced *** authenticated
>> Command 1 took 0.0096 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 ENABLE completed
>> Command 2 took 0.0007 seconds.
S: * STATUS "INBOX" (MESSAGES 395 UIDNEXT 922996 UIDVALIDITY 1 HIGHESTMODSEQ 13077)
S: 3 OK STATUS completed
>> Command 3 took 0.0089 seconds.
C: 4 EXAMINE INBOX (QRESYNC (1 13077 777604,777622,777679,777780,777786,777798,777848,777900,777928,777932,777998,778284,778424,778764,778766,778774,778798,778840,778842,778850,778860,778926,778934,778962,779035,779037,779045,779061,779063,779123,779135,779141,779143,779145,779147,780063,780157,780439,780517,780519,780535,780539,780926,780928,780936,780948,780968,780970,780984,781006,781014,781018,781020,781046,781048,781064,781068,781072,781074,781076,781084,781096,781106,781108,781118,781120,783734,783748,783750,783752,783754,783756,783758,783760,783762,783770,783778,783790,784194,784196,784198,784200,784202,784210,784212,784214,784216,784218,784242,784244,784246,784248,784250,784252,784254,784256,784258,784262,784264,784266,784268,784270,784272,784274,784276,784278,784302,784304,784306,784308,784310,784312,784314,784320,784324,784326,784336,784346,784352,784360,784370,784372,784604,784612,784706,784772,784776,784821:784823,785134,785166,785169,785174:785176,786731,786733,786735,786737,786739,786741,786743,786755,786765,786767,786769,786771,786773,786775,786777,786789,786791,786793,786795,786797,786799,786809,786817,786821,786833,786841,786843,786845,786847,786849,786851,786853,786855,786857,786859,786861,786863,786865,786871,786879,786883,786885,786889,786891,786895,786897,786903,786907,786913,786915,786919,786921,786923,786925,786927,786931,786943,786945,786949,786951,786953,786957,786965,786973,786975,786977,786989,786991,786993,786997,786999,787003,787013,787045,787047,787085,787099,787105,787107,787111,787115,787121,787129,787133,787135,787137,787139,787143,787147,787151,787153,787157,787161,787163,787165,787167,787177,787179,787181,787185,787187,787189,787191,787195,787197,787199,787205,787241,787287,787295,787317,787367,787461,787595,787597,787601,787605,787621,787623,787627,787629,787631,787633,787641,787643,787649,787661,787663,787665,787667,787671,787677,787683,787685,787691,787721,797630,797632,797694,798300,798714,912648,912650,913048,913606,913992,914196,914200,914457,914459:914465,914615,914641,914643,914661,914713,914771,914903,914907,914935,914970,915119,915123,915145,915155,915187,915258,915274,915318,915394,915533,915571,915660,915723,915727,915743,915745,915795,915906,916020,916022,916026,916028,916073,916104,916185,916197,916203,916217,916339,916518,916594,916608,916682,916772,916866,916952,917194,917196,917480,917875,917877,917879,917889,917909,917913,917925,917941,917943,917949,917983,918070,918133,918234,918236,918238,918250,918310,918326,918489,918731,918945,919080,919143,919982,920519,920521,920800,920923,920948,921513,921574,921660,921724,922125,922170,922285,922367,922961,922963,922965,922967,922969,922973,922975,922977,922981,922983,922985,922987,922989,922991,922993,922995))
S: * 395 EXISTS
S: * 0 RECENT
S: * FLAGS (\Seen \Answered \Deleted \Flagged \Draft $NotJunk Junk $label1 NOTJUNK $Forwarded)
S: * OK [PERMANENTFLAGS (\Seen \Answered \Deleted \Flagged \Draft $NotJunk Junk $label1 NOTJUNK $Forwarded \*)] Flags allowed.
S: * OK [UIDNEXT 922996] Predicted next UID
S: * OK [UIDVALIDITY 1] UID value
S: * OK [HIGHESTMODSEQ 13077] Highest
S: 4 OK [READ-ONLY] EXAMINE completed, CONDSTORE is now enabled
>> Command 4 took 0.0246 seconds.
C: 5 SELECT INBOX (QRESYNC (1 13077 777604,777622,777679,777780,777786,777798,777848,777900,777928,777932,777998,778284,778424,778764,778766,778774,778798,778840,778842,778850,778860,778926,778934,778962,779035,779037,779045,779061,779063,779123,779135,779141,779143,779145,779147,780063,780157,780439,780517,780519,780535,780539,780926,780928,780936,780948,780968,780970,780984,781006,781014,781018,781020,781046,781048,781064,781068,781072,781074,781076,781084,781096,781106,781108,781118,781120,783734,783748,783750,783752,783754,783756,783758,783760,783762,783770,783778,783790,784194,784196,784198,784200,784202,784210,784212,784214,784216,784218,784242,784244,784246,784248,784250,784252,784254,784256,784258,784262,784264,784266,784268,784270,784272,784274,784276,784278,784302,784304,784306,784308,784310,784312,784314,784320,784324,784326,784336,784346,784352,784360,784370,784372,784604,784612,784706,784772,784776,784821:784823,785134,785166,785169,785174:785176,786731,786733,786735,786737,786739,786741,786743,786755,786765,786767,786769,786771,786773,786775,786777,786789,786791,786793,786795,786797,786799,786809,786817,786821,786833,786841,786843,786845,786847,786849,786851,786853,786855,786857,786859,786861,786863,786865,786871,786879,786883,786885,786889,786891,786895,786897,786903,786907,786913,786915,786919,786921,786923,786925,786927,786931,786943,786945,786949,786951,786953,786957,786965,786973,786975,786977,786989,786991,786993,786997,786999,787003,787013,787045,787047,787085,787099,787105,787107,787111,787115,787121,787129,787133,787135,787137,787139,787143,787147,787151,787153,787157,787161,787163,787165,787167,787177,787179,787181,787185,787187,787189,787191,787195,787197,787199,787205,787241,787287,787295,787317,787367,787461,787595,787597,787601,787605,787621,787623,787627,787629,787631,787633,787641,787643,787649,787661,787663,787665,787667,787671,787677,787683,787685,787691,787721,797630,797632,797694,798300,798714,912648,912650,913048,913606,913992,914196,914200,914457,914459:914465,914615,914641,914643,914661,914713,914771,914903,914907,914935,914970,915119,915123,915145,915155,915187,915258,915274,915318,915394,915533,915571,915660,915723,915727,915743,915745,915795,915906,916020,916022,916026,916028,916073,916104,916185,916197,916203,916217,916339,916518,916594,916608,916682,916772,916866,916952,917194,917196,917480,917875,917877,917879,917889,917909,917913,917925,917941,917943,917949,917983,918070,918133,918234,918236,918238,918250,918310,918326,918489,918731,918945,919080,919143,919982,920519,920521,920800,920923,920948,921513,921574,921660,921724,922125,922170,922285,922367,922961,922963,922965,922967,922969,922973,922975,922977,922981,922983,922985,922987,922989,922991,922993,922995))
S: * OK [CLOSED]
S: * 395 EXISTS
S: * 0 RECENT
S: * FLAGS (\Seen \Answered \Deleted \Flagged \Draft $NotJunk Junk $label1 NOTJUNK $Forwarded)
S: * OK [PERMANENTFLAGS (\Seen \Answered \Deleted \Flagged \Draft $NotJunk Junk $label1 NOTJUNK $Forwarded \*)] Flags allowed.
S: * OK [UIDNEXT 922996] Predicted next UID
S: * OK [UIDVALIDITY 1] UID value
S: * OK [HIGHESTMODSEQ 13077] Highest
S: * OK [UNSEEN 139] first unseen message
S: 5 OK [READ-WRITE] SELECT completed, CONDSTORE is now enabled
>> Command 5 took 0.0055 seconds.
------------------------------
>> Tue, 11 Mar 2025 08:02:41 +0000
>> Connection to: imap://*** sensitive parameters replaced ***:993/
>> Server connection took 0.0041 seconds.
S: * OK [CAPABILITY IMAP4rev1 AUTH=LOGIN AUTH=CRAM-MD5 STARTTLS ID LITERAL+] dbmail 3.5.0 ready.
C: 1 LOGIN *** sensitive parameters replaced *** [PASSWORD]
S: 1 OK [CAPABILITY IMAP4rev1 ACL RIGHTS=texk NAMESPACE CHILDREN SORT QUOTA THREAD=ORDEREDSUBJECT UNSELECT IDLE ID UIDPLUS WITHIN CONDSTORE LITERAL+ ENABLE QRESYNC] User *** sensitive parameters replaced *** authenticated
>> Command 1 took 0.0096 seconds.
>> CACHE: Using the OCA\Mail\Cache\Cache storage driver.
C: 2 ENABLE QRESYNC
C: 3 STATUS INBOX (MESSAGES RECENT UIDNEXT UIDVALIDITY UNSEEN)
S: * ENABLED QRESYNC
S: 2 OK ENABLE completed
>> Command 2 took 0.0008 seconds.
S: * STATUS "INBOX" (MESSAGES 395 RECENT 0 UIDNEXT 922996 UIDVALIDITY 1 UNSEEN 73)
S: 3 OK STATUS completed
>> Command 3 took 0.0066 seconds.
C: 4 LOGOUT
S: * BYE Requested
S: 4 OK LOGOUT completed
>> Command 4 took 0.0006 seconds.
C: 6 LOGOUT
S: * BYE Requested
S: 6 OK LOGOUT completed
>> Command 6 took 0.0006 seconds.

Now selecting latest mail (UUID : 922995)

------------------------------
>> Tue, 11 Mar 2025 08:03:30 +0000
>> Connection to: imap://*** sensitive parameters replaced ***:993/
>> Server connection took 0.0078 seconds.
S: * OK [CAPABILITY IMAP4rev1 AUTH=LOGIN AUTH=CRAM-MD5 STARTTLS ID LITERAL+] dbmail 3.5.0 ready.
C: 1 LOGIN *** sensitive parameters replaced *** [PASSWORD]
S: 1 OK [CAPABILITY IMAP4rev1 ACL RIGHTS=texk NAMESPACE CHILDREN SORT QUOTA THREAD=ORDEREDSUBJECT UNSELECT IDLE ID UIDPLUS WITHIN CONDSTORE LITERAL+ ENABLE QRESYNC] User *** sensitive parameters replaced *** authenticated
>> Command 1 took 0.0126 seconds.
>> CACHE: Using the OCA\Mail\Cache\Cache storage driver.
C: 2 ENABLE QRESYNC
C: 3 EXAMINE INBOX (QRESYNC (1 13077 777604,777622,777679,777780,777786,777798,777848,777900,777928,777932,777998,778284,778424,778764,778766,778774,778798,778840,778842,778850,778860,778926,778934,778962,779035,779037,779045,779061,779063,779123,779135,779141,779143,779145,779147,780063,780157,780439,780517,780519,780535,780539,780926,780928,780936,780948,780968,780970,780984,781006,781014,781018,781020,781046,781048,781064,781068,781072,781074,781076,781084,781096,781106,781108,781118,781120,783734,783748,783750,783752,783754,783756,783758,783760,783762,783770,783778,783790,784194,784196,784198,784200,784202,784210,784212,784214,784216,784218,784242,784244,784246,784248,784250,784252,784254,784256,784258,784262,784264,784266,784268,784270,784272,784274,784276,784278,784302,784304,784306,784308,784310,784312,784314,784320,784324,784326,784336,784346,784352,784360,784370,784372,784604,784612,784706,784772,784776,784821:784823,785134,785166,785169,785174:785176,786731,786733,786735,786737,786739,786741,786743,786755,786765,786767,786769,786771,786773,786775,786777,786789,786791,786793,786795,786797,786799,786809,786817,786821,786833,786841,786843,786845,786847,786849,786851,786853,786855,786857,786859,786861,786863,786865,786871,786879,786883,786885,786889,786891,786895,786897,786903,786907,786913,786915,786919,786921,786923,786925,786927,786931,786943,786945,786949,786951,786953,786957,786965,786973,786975,786977,786989,786991,786993,786997,786999,787003,787013,787045,787047,787085,787099,787105,787107,787111,787115,787121,787129,787133,787135,787137,787139,787143,787147,787151,787153,787157,787161,787163,787165,787167,787177,787179,787181,787185,787187,787189,787191,787195,787197,787199,787205,787241,787287,787295,787317,787367,787461,787595,787597,787601,787605,787621,787623,787627,787629,787631,787633,787641,787643,787649,787661,787663,787665,787667,787671,787677,787683,787685,787691,787721,797630,797632,797694,798300,798714,912648,912650,913048,913606,913992,914196,914200,914457,914459:914465,914615,914641,914643,914661,914713,914771,914903,914907,914935,914970,915119,915123,915145,915155,915187,915258,915274,915318,915394,915533,915571,915660,915723,915727,915743,915745,915795,915906,916020,916022,916026,916028,916073,916104,916185,916197,916203,916217,916339,916518,916594,916608,916682,916772,916866,916952,917194,917196,917480,917875,917877,917879,917889,917909,917913,917925,917941,917943,917949,917983,918070,918133,918234,918236,918238,918250,918310,918326,918489,918731,918945,919080,919143,919982,920519,920521,920800,920923,920948,921513,921574,921660,921724,922125,922170,922285,922367,922961,922963,922965,922967,922969,922973,922975,922977,922981,922983,922985,922987,922989,922991,922993,922995))
S: * ENABLED QRESYNC
S: 2 OK ENABLE completed
>> Command 2 took 0.0018 seconds.
S: * 395 EXISTS
S: * 0 RECENT
S: * FLAGS (\Seen \Answered \Deleted \Flagged \Draft $NotJunk Junk $label1 NOTJUNK $Forwarded)
S: * OK [PERMANENTFLAGS (\Seen \Answered \Deleted \Flagged \Draft $NotJunk Junk $label1 NOTJUNK $Forwarded \*)] Flags allowed.
S: * OK [UIDNEXT 922996] Predicted next UID
S: * OK [UIDVALIDITY 1] UID value
S: * OK [HIGHESTMODSEQ 13077] Highest
S: 3 OK [READ-ONLY] EXAMINE completed
>> Command 3 took 0.0443 seconds.
C: 4 UID FETCH 922995 (ENVELOPE FLAGS INTERNALDATE BODY.PEEK[HEADER])
S: 4 OK UID FETCH completed
>> Command 4 took 0.0011 seconds.
C: 5 LOGOUT
S: * BYE Requested
S: 5 OK LOGOUT completed
>> Command 5 took 0.0016 seconds.

Mind UUID: C: 4 UID FETCH 922995 (ENVELOPE FLAGS INTERNALDATE BODY.PEEK[HEADER])

Select source:

------------------------------
>> Tue, 11 Mar 2025 08:04:01 +0000
>> Connection to: imap://*** sensitive parameters replaced ***:993/
>> Server connection took 0.0047 seconds.
S: * OK [CAPABILITY IMAP4rev1 AUTH=LOGIN AUTH=CRAM-MD5 STARTTLS ID LITERAL+] dbmail 3.5.0 ready.
C: 1 LOGIN *** sensitive parameters replaced *** [PASSWORD]
S: 1 OK [CAPABILITY IMAP4rev1 ACL RIGHTS=texk NAMESPACE CHILDREN SORT QUOTA THREAD=ORDEREDSUBJECT UNSELECT IDLE ID UIDPLUS WITHIN CONDSTORE LITERAL+ ENABLE QRESYNC] User *** sensitive parameters replaced *** authenticated
>> Command 1 took 0.0107 seconds.
>> CACHE: Using the OCA\Mail\Cache\Cache storage driver.
C: 2 ENABLE QRESYNC
C: 3 EXAMINE INBOX (QRESYNC (1 13077 777604,777622,777679,777780,777786,777798,777848,777900,777928,777932,777998,778284,778424,778764,778766,778774,778798,778840,778842,778850,778860,778926,778934,778962,779035,779037,779045,779061,779063,779123,779135,779141,779143,779145,779147,780063,780157,780439,780517,780519,780535,780539,780926,780928,780936,780948,780968,780970,780984,781006,781014,781018,781020,781046,781048,781064,781068,781072,781074,781076,781084,781096,781106,781108,781118,781120,783734,783748,783750,783752,783754,783756,783758,783760,783762,783770,783778,783790,784194,784196,784198,784200,784202,784210,784212,784214,784216,784218,784242,784244,784246,784248,784250,784252,784254,784256,784258,784262,784264,784266,784268,784270,784272,784274,784276,784278,784302,784304,784306,784308,784310,784312,784314,784320,784324,784326,784336,784346,784352,784360,784370,784372,784604,784612,784706,784772,784776,784821:784823,785134,785166,785169,785174:785176,786731,786733,786735,786737,786739,786741,786743,786755,786765,786767,786769,786771,786773,786775,786777,786789,786791,786793,786795,786797,786799,786809,786817,786821,786833,786841,786843,786845,786847,786849,786851,786853,786855,786857,786859,786861,786863,786865,786871,786879,786883,786885,786889,786891,786895,786897,786903,786907,786913,786915,786919,786921,786923,786925,786927,786931,786943,786945,786949,786951,786953,786957,786965,786973,786975,786977,786989,786991,786993,786997,786999,787003,787013,787045,787047,787085,787099,787105,787107,787111,787115,787121,787129,787133,787135,787137,787139,787143,787147,787151,787153,787157,787161,787163,787165,787167,787177,787179,787181,787185,787187,787189,787191,787195,787197,787199,787205,787241,787287,787295,787317,787367,787461,787595,787597,787601,787605,787621,787623,787627,787629,787631,787633,787641,787643,787649,787661,787663,787665,787667,787671,787677,787683,787685,787691,787721,797630,797632,797694,798300,798714,912648,912650,913048,913606,913992,914196,914200,914457,914459:914465,914615,914641,914643,914661,914713,914771,914903,914907,914935,914970,915119,915123,915145,915155,915187,915258,915274,915318,915394,915533,915571,915660,915723,915727,915743,915745,915795,915906,916020,916022,916026,916028,916073,916104,916185,916197,916203,916217,916339,916518,916594,916608,916682,916772,916866,916952,917194,917196,917480,917875,917877,917879,917889,917909,917913,917925,917941,917943,917949,917983,918070,918133,918234,918236,918238,918250,918310,918326,918489,918731,918945,919080,919143,919982,920519,920521,920800,920923,920948,921513,921574,921660,921724,922125,922170,922285,922367,922961,922963,922965,922967,922969,922973,922975,922977,922981,922983,922985,922987,922989,922991,922993,922995))
S: * ENABLED QRESYNC
S: 2 OK ENABLE completed
>> Command 2 took 0.0009 seconds.
S: * 395 EXISTS
S: * 0 RECENT
S: * FLAGS (\Seen \Answered \Deleted \Flagged \Draft $NotJunk Junk $label1 NOTJUNK $Forwarded)
S: * OK [PERMANENTFLAGS (\Seen \Answered \Deleted \Flagged \Draft $NotJunk Junk $label1 NOTJUNK $Forwarded \*)] Flags allowed.
S: * OK [UIDNEXT 922996] Predicted next UID
S: * OK [UIDVALIDITY 1] UID value
S: * OK [HIGHESTMODSEQ 13077] Highest
S: 3 OK [READ-ONLY] EXAMINE completed
>> Command 3 took 0.0262 seconds.
C: 4 UID FETCH 922995 (BODY.PEEK[])
S: 4 OK UID FETCH completed
>> Command 4 took 0.0011 seconds.
C: 5 LOGOUT
S: * BYE Requested
S: 5 OK LOGOUT completed
>> Command 5 took 0.0008 seconds.

Again same UUID: C: 4 UID FETCH 922995 (BODY.PEEK[])

Seems everything looks ok to me.

Sjoerd001 avatar Mar 11 '25 08:03 Sjoerd001

Hi there! It looks like this issue hasn’t seen much activity for a while and might need a bit more information to move forward. If we don’t hear back soon, we may close it to keep things organized. Thanks again for your contributions – we really appreciate it!

nextcloud-command avatar Apr 11 '25 01:04 nextcloud-command

./occ --verbose mail:account:diagnose 1

IMAP capabilities:

  • ACL
  • CHILDREN
  • CONDSTORE
  • ENABLE
  • ID
  • IDLE
  • IMAP4REV1
  • LITERAL+
  • NAMESPACE
  • QRESYNC
  • QUOTA
  • RIGHTS
  • SORT
  • THREAD
  • UIDPLUS
  • UNSELECT
  • WITHIN

Still broken/not working

Sjoerd001 avatar Jul 03 '25 02:07 Sjoerd001

@Sjoerd001 does your email body just show white space? I have this problem with nextcloud 32.0.1 and latest nextcloud mail.

githubbbie avatar Oct 31 '25 12:10 githubbbie

I'm using docker mail server for my mail servers.

githubbbie avatar Oct 31 '25 12:10 githubbbie

@Cijay22 I have the same issue that mails not fully loaded and the email is showing white instead of content.

Please open a new ticket for your problem. It's not the same that @Sjoerd001 is reporting. Export the problematic email so we can reproduce with the same message.

yes, having this issue. Not sure how to diagnose.

githubbbie avatar Oct 31 '25 12:10 githubbbie