mail icon indicating copy to clipboard operation
mail copied to clipboard

Some emails not displaying

Open zanoni23 opened this issue 1 year ago • 4 comments

Steps to reproduce

Receive an email from Trello

Expected behavior

Message body should display

Actual behavior

Nothing in message body section of the window. See screenshot below.

Mail app version

3.5.4

Mailserver or service

Own

Operating system

docker container. Debian 12

PHP engine version

PHP 8.2

Web server

Nginx

Database

PostgreSQL

Additional info

Nextcloud image nextcloud:28.0.1-apache Nextcloud version in config.php 'version' => '28.0.1.1', Debug logs: (some user_saml entries show it accessing external url via proxy)

[{
  "reqId": "0IbA6fO9B3olis1VJyDK",
  "level": 0,
  "time": "2024-01-21T01:34:01+00:00",
  "remoteAddr": "10.104.32.3",
  "user": "bruce.willis",
  "app": "user_saml",
  "method": "GET",
  "url": "/apps/mail/api/messages/320/thread",
  "message": "/appinfo/app.php is deprecated, use \\OCP\\AppFramework\\Bootstrap\\IBootstrap on the application class instead.",
  "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36",
  "version": "28.0.1.1",
  "data": {
    "app": "user_saml"
  }
},
{
  "reqId": "Zifpw6WqmzHP6zIgSm7P",
  "level": 0,
  "time": "2024-01-21T01:34:01+00:00",
  "remoteAddr": "10.104.32.3",
  "user": "bruce.willis",
  "app": "user_saml",
  "method": "GET",
  "url": "/apps/mail/api/messages/320/body",
  "message": "/appinfo/app.php is deprecated, use \\OCP\\AppFramework\\Bootstrap\\IBootstrap on the application class instead.",
  "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36",
  "version": "28.0.1.1",
  "data": {
    "app": "user_saml"
  }
},
  {
    "reqId": "Zifpw6WqmzHP6zIgSm7P",
    "level": 0,
    "time": "2024-01-21T01:34:04+00:00",
    "remoteAddr": "10.104.32.3",
    "user": "bruce.willis",
    "app": "mail",
    "method": "GET",
    "url": "/apps/mail/api/messages/320/body",
    "message": "findByIds in INBOX got 1 UIDs (1331) and found 1. minFetched=1331 maxFetched=1331",
    "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36",
    "version": "28.0.1.1",
    "data": {
      "app": "mail"
    }
  },
{
  "reqId": "Zifpw6WqmzHP6zIgSm7P",
  "level": 0,
  "time": "2024-01-21T01:34:05+00:00",
  "remoteAddr": "10.104.32.3",
  "user": "bruce.willis",
  "app": "PHP",
  "method": "GET",
  "url": "/apps/mail/api/messages/320/body",
  "message": "Return type of ChristophWurst\\KItinerary\\Itinerary::count() should either be compatible with Countable::count(): int, or the #[\\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice at /var/www/html/custom_apps/mail/vendor/christophwurst/kitinerary/src/Itinerary.php#48",
  "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36",
  "version": "28.0.1.1",
  "data": {
    "app": "PHP"
  }
},
{
  "reqId": "Zifpw6WqmzHP6zIgSm7P",
  "level": 0,
  "time": "2024-01-21T01:34:05+00:00",
  "remoteAddr": "10.104.32.3",
  "user": "bruce.willis",
  "app": "PHP",
  "method": "GET",
  "url": "/apps/mail/api/messages/320/body",
  "message": "Return type of ChristophWurst\\KItinerary\\Itinerary::jsonSerialize() should either be compatible with JsonSerializable::jsonSerialize(): mixed, or the #[\\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice at /var/www/html/custom_apps/mail/vendor/christophwurst/kitinerary/src/Itinerary.php#52",
  "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36",
  "version": "28.0.1.1",
  "data": {
    "app": "PHP"
  }
},
{
  "reqId": "x3bvdj4gPlcEwexruhbf",
  "level": 0,
  "time": "2024-01-21T01:34:06+00:00",
  "remoteAddr": "10.104.32.3",
  "user": "bruce.willis",
  "app": "user_saml",
  "method": "GET",
  "url": "/apps/mail/api/messages/320/html",
  "message": "/appinfo/app.php is deprecated, use \\OCP\\AppFramework\\Bootstrap\\IBootstrap on the application class instead.",
  "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36",
  "version": "28.0.1.1",
  "data": {
    "app": "user_saml"
  }
},
{
  "reqId": "um1vx9hLk7o2aX1hKCXg",
  "level": 0,
  "time": "2024-01-21T01:34:07+00:00",
  "remoteAddr": "10.104.32.3",
  "user": "bruce.willis",
  "app": "user_saml",
  "method": "POST",
  "url": "/apps/mail/api/mailboxes/1/sync",
  "message": "/appinfo/app.php is deprecated, use \\OCP\\AppFramework\\Bootstrap\\IBootstrap on the application class instead.",
  "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36",
  "version": "28.0.1.1",
  "data": {
    "app": "user_saml"
  }
},

  {
    "reqId": "x3bvdj4gPlcEwexruhbf",
    "level": 0,
    "time": "2024-01-21T01:34:08+00:00",
    "remoteAddr": "10.104.32.3",
    "user": "bruce.willis",
    "app": "mail",
    "method": "GET",
    "url": "/apps/mail/api/messages/320/html",
    "message": "findByIds in INBOX got 1 UIDs (1331) and found 1. minFetched=1331 maxFetched=1331",
    "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36",
    "version": "28.0.1.1",
    "data": {
      "app": "mail"
    }
  },
{
  "reqId": "um1vx9hLk7o2aX1hKCXg",
  "level": 0,
  "time": "2024-01-21T01:34:09+00:00",
  "remoteAddr": "10.104.32.3",
  "user": "bruce.willis",
  "app": "mail",
  "method": "POST",
  "url": "/apps/mail/api/mailboxes/1/sync",
  "message": "Forcing full sync due to QRESYNC",
  "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36",
  "version": "28.0.1.1",
  "data": {
    "app": "mail"
  }
},
{
  "reqId": "um1vx9hLk7o2aX1hKCXg",
  "level": 0,
  "time": "2024-01-21T01:34:09+00:00",
  "remoteAddr": "10.104.32.3",
  "user": "bruce.willis",
  "app": "mail",
  "method": "POST",
  "url": "/apps/mail/api/mailboxes/1/sync",
  "message": "Locking mailbox 1 for new messages sync",
  "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36",
  "version": "28.0.1.1",
  "data": {
    "app": "mail"
  }
},
{
  "reqId": "um1vx9hLk7o2aX1hKCXg",
  "level": 0,
  "time": "2024-01-21T01:34:09+00:00",
  "remoteAddr": "10.104.32.3",
  "user": "bruce.willis",
  "app": "mail",
  "method": "POST",
  "url": "/apps/mail/api/mailboxes/1/sync",
  "message": "Locking mailbox 1 for changed messages sync",
  "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36",
  "version": "28.0.1.1",
  "data": {
    "app": "mail"
  }
},
{
  "reqId": "um1vx9hLk7o2aX1hKCXg",
  "level": 0,
  "time": "2024-01-21T01:34:09+00:00",
  "remoteAddr": "10.104.32.3",
  "user": "bruce.willis",
  "app": "mail",
  "method": "POST",
  "url": "/apps/mail/api/mailboxes/1/sync",
  "message": "Locking mailbox 1 for vanished messages sync",
  "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36",
  "version": "28.0.1.1",
  "data": {
    "app": "mail"
  }
},
{
  "reqId": "um1vx9hLk7o2aX1hKCXg",
  "level": 0,
  "time": "2024-01-21T01:34:09+00:00",
  "remoteAddr": "10.104.32.3",
  "user": "bruce.willis",
  "app": "mail",
  "method": "POST",
  "url": "/apps/mail/api/mailboxes/1/sync",
  "message": "Running partial sync for 1",
  "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36",
  "version": "28.0.1.1",
  "data": {
    "app": "mail"
  }
},
{
  "reqId": "um1vx9hLk7o2aX1hKCXg",
  "level": 0,
  "time": "2024-01-21T01:34:09+00:00",
  "remoteAddr": "10.104.32.3",
  "user": "bruce.willis",
  "app": "mail",
  "method": "POST",
  "url": "/apps/mail/api/mailboxes/1/sync",
  "message": "partial sync 1:INBOX - get all known UIDs took 0s. 6/6MB memory used",
  "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36",
  "version": "28.0.1.1",
  "data": {
    "app": "mail"
  }
},
{
  "reqId": "um1vx9hLk7o2aX1hKCXg",
  "level": 0,
  "time": "2024-01-21T01:34:09+00:00",
  "remoteAddr": "10.104.32.3",
  "user": "bruce.willis",
  "app": "mail",
  "method": "POST",
  "url": "/apps/mail/api/mailboxes/1/sync",
  "message": "findByIds in INBOX got 0 UIDs but found none",
  "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36",
  "version": "28.0.1.1",
  "data": {
    "app": "mail"
  }
},
{
  "reqId": "um1vx9hLk7o2aX1hKCXg",
  "level": 0,
  "time": "2024-01-21T01:34:09+00:00",
  "remoteAddr": "10.104.32.3",
  "user": "bruce.willis",
  "app": "mail",
  "method": "POST",
  "url": "/apps/mail/api/mailboxes/1/sync",
  "message": "findByIds in INBOX got 0 UIDs but found none",
  "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36",
  "version": "28.0.1.1",
  "data": {
    "app": "mail"
  }
},
{
  "reqId": "um1vx9hLk7o2aX1hKCXg",
  "level": 0,
  "time": "2024-01-21T01:34:09+00:00",
  "remoteAddr": "10.104.32.3",
  "user": "bruce.willis",
  "app": "mail",
  "method": "POST",
  "url": "/apps/mail/api/mailboxes/1/sync",
  "message": "partial sync 1:INBOX - get new messages via Horde took 0s. 6/6MB memory used",
  "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36",
  "version": "28.0.1.1",
  "data": {
    "app": "mail"
  }
},
{
  "reqId": "um1vx9hLk7o2aX1hKCXg",
  "level": 0,
  "time": "2024-01-21T01:34:09+00:00",
  "remoteAddr": "10.104.32.3",
  "user": "bruce.willis",
  "app": "mail",
  "method": "POST",
  "url": "/apps/mail/api/mailboxes/1/sync",
  "message": "partial sync 1:INBOX - persist new messages took 0s. 6/6MB memory used",
  "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36",
  "version": "28.0.1.1",
  "data": {
    "app": "mail"
  }
},
{
  "reqId": "aPEyr7creZpBAiPzzd7F",
  "level": 0,
  "time": "2024-01-21T01:34:09+00:00",
  "remoteAddr": "10.104.32.3",
  "user": "bruce.willis",
  "app": "user_saml",
  "method": "GET",
  "url": "/apps/mail/proxy?src=https%3A%2F%2Ftrello.com%2Fimages%2Femail%2Fapple-app-store-badges%2Fblack-en-us.png&requesttoken=X2QlceU0MjhWCc3854VIcwkGWODmLZC4",
  "message": "/appinfo/app.php is deprecated, use \\OCP\\AppFramework\\Bootstrap\\IBootstrap on the application class instead.",
  "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36",
  "version": "28.0.1.1",
  "data": {
    "app": "user_saml"
  }
},
{
  "reqId": "xILoRzTVJPpnEkWHqjQw",
  "level": 0,
  "time": "2024-01-21T01:34:09+00:00",
  "remoteAddr": "10.104.32.3",
  "user": "bruce.willis",
  "app": "user_saml",
  "method": "GET",
  "url": "/apps/mail/proxy?src=https%3A%2F%2Fplay.google.com%2Fintl%2Fen_us%2Fbadges%2Fstatic%2Fimages%2Fbadges%2Fen_badge_web_generic.png&requesttoken=X2QlceU0MjhWCc3854VIcwkGWODmLZC4",
  "message": "/appinfo/app.php is deprecated, use \\OCP\\AppFramework\\Bootstrap\\IBootstrap on the application class instead.",
  "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36",
  "version": "28.0.1.1",
  "data": {
    "app": "user_saml"
  }
},
{
  "reqId": "EvdYzTRZABLaGyZ9Gqvp",
  "level": 0,
  "time": "2024-01-21T01:34:09+00:00",
  "remoteAddr": "10.104.32.3",
  "user": "bruce.willis",
  "app": "user_saml",
  "method": "GET",
  "url": "/apps/mail/proxy?src=https%3A%2F%2Ftrello-members.s3.amazonaws.com%2F6465cfa2e4abe19fe9cdd523%2F756d5d725c41c4a9b43bc9975533efc4%2F30.png&requesttoken=X2QlceU0MjhWCc3854VIcwkGWODmLZC4",
  "message": "/appinfo/app.php is deprecated, use \\OCP\\AppFramework\\Bootstrap\\IBootstrap on the application class instead.",
  "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36",
  "version": "28.0.1.1",
  "data": {
    "app": "user_saml"
  }
},
{
  "reqId": "jCEneDaCGIqwK7GDF4dx",
  "level": 0,
  "time": "2024-01-21T01:34:09+00:00",
  "remoteAddr": "10.104.32.3",
  "user": "bruce.willis",
  "app": "user_saml",
  "method": "GET",
  "url": "/apps/mail/proxy?src=https%3A%2F%2Ftrello.com%2Fimages%2Flogo-new-sm-2x.png&requesttoken=X2QlceU0MjhWCc3854VIcwkGWODmLZC4",
  "message": "/appinfo/app.php is deprecated, use \\OCP\\AppFramework\\Bootstrap\\IBootstrap on the application class instead.",
  "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36",
  "version": "28.0.1.1",
  "data": {
    "app": "user_saml"
  }
}]

kr-logo - 1

zanoni23 avatar Feb 12 '24 04:02 zanoni23

Possible duplicate of https://github.com/nextcloud/mail/issues/9168

ChristophWurst avatar Feb 12 '24 07:02 ChristophWurst

No. They aren't externally deleted emails. I have found other similar github issues which are unresolved. This issue raised is with recent versions and actually provides debug logs, so hopefully someone will notice it and it will be easier to solve.

zanoni23 avatar Feb 12 '24 07:02 zanoni23

To be honest, I've noticed that too. I will hopefully be able to report more details when I encounter this problem again.

handkerchief333 avatar Feb 12 '24 07:02 handkerchief333

Now I received an e-mail with the message: not found.

mail-not-found

in the logs i see the following message when i view the message:

[mail] Fehler: mb_convert_encoding(): Argument #3 ($from_encoding) contains invalid encoding "windows-1250" in file '/apps/mail/lib/IMAP/ImapMessageFetcher.php' line 477
	GET /index.php/apps/mail/api/messages/15784/body
	von xx.xxx.x.x von exampleuser um 25.03.2024, 09:20:30

But maybe this is not the same mistake of the issue creator.

handkerchief333 avatar Mar 25 '24 08:03 handkerchief333