21
Views
1
Comments
ODC - Read email messages with attachment bigger than 5Mb with IMAP
Application Type
Service

Hi all.

I'm developing an ODC app that should access an IMAP mailbox, read the message queue, and process the incoming emails and their attachments.

The current version is working using the ODC version of MailClient Connector from Forge

(MailClient https://www.outsystems.com/forge/component-overview/19354/mailclient-odc)

Everything is working fine with small file attachments, but I'm facing a big issue when one or more file sizes exceed 5 Mb.

The error log reports "OS-ELRT-60009 - Output payload is too large (12MB), maximum allowed is 5.5MB" 

I just checked with technical support and they explained to me that, as outlined in the External Libraries SDK README, "server actions from external libraries don't support input sizes larger than 5.5MB.  This limit includes all input parameter values, their names, and possible overhead, such as binary data.  This limit is fixed and cannot be increased"


Do you have any suggestions about this issue and how to overcome it?
Is there another approach to email access using IMAP protocol from an OCD application rather than using the Forge mail client connector?

Thanks in advance for your support!


Marco




GetMsg.png
Screenshot 2024-12-26 200431.png
2025-03-12 11-13-22
Johnes Silva

Hi Marco, I had the same payload problem.

I tried using AWS S3 SDK (Forge component) but ODC has this limitation for payloads. The solution for my case was to use PreSignedURL to pass the file through the frontend, making it not necessary to go through the ODC server.

Or you try to use the default email widget.

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.