Skip to content

Truncate the message id instead of throwing exception #12823

@amgschnappi

Description

@amgschnappi

Steps to reproduce

  1. Set google account
  2. Many mails are not displayed

Expected behavior

All mails should be displayed

Actual behavior

Log throws some errors, which I cannot provide, since I fixed the mail app in my system for this bug.

Mail app version

No response

Nextcloud version

No response

Mailserver or service

No response

Operating system

No response

PHP engine version

None

Nextcloud memory caching

No response

Web server

None

Database

None

Additional info

Powershell script -->

$file = './MessageMapper.php'
$content = Get-Content $file -Raw
$content = $content -replace 'throw new Exception("IMAP message ID $messageId is too long for the database");', '$messageId = substr($messageId, 0, 1023);'
Set-Content $file $content

Then upload this MessageMapper.php to the mail app.

Metadata

Metadata

Assignees

No one assigned

    Type

    No fields configured for Bug.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions