Hello Nylas Community,
I’m hoping someone from the Nylas team or developer community can help me resolve an IMAP email synchronisation issue.
I have recently connected an existing IMAP email account to Nylas V3, intending to access incoming and sent correspondence through an AI integration.
The connection is valid, and Nylas can successfully retrieve incoming messages from the Inbox.
However, I have encountered a problem with the Sent folder.
The problem
My Sent folder contains numerous messages, including correspondence sent within the past 24 hours.
These messages are correctly displayed in both my email provider’s webmail interface and Microsoft Outlook 365.
Nylas recognises the Sent folder and identifies it with the appropriate IMAP \Sent attribute.
However, standard Nylas Messages API requests return no messages from this folder.
Diagnostic testing performed
I have conducted extensive read-only testing using the Nylas V3 API.
Two requests were made using the same grant, folder ID and API credentials.
Test 1: Direct IMAP retrieval
query_imap=true
Result:
-
HTTP 200 (successful)
-
Five messages retrieved
-
Correct Sent folder confirmed
-
Recent sent correspondence successfully returned
Test 2: Standard cached retrieval
query_imap=false
Result:
-
HTTP 200 (successful)
-
Empty message array returned
-
No Sent folder messages available
These tests confirm that Nylas can successfully access the messages directly from the IMAP server, but the same messages are missing from its normal cache.
Additional findings
-
The IMAP grant is valid.
-
Inbox synchronisation is functioning.
-
The Sent folder is correctly recognised.
-
The mailbox contains recently sent messages.
-
Direct IMAP retrieval works consistently.
-
Standard cached retrieval returns no Sent messages.
-
The problem can be reproduced through Nylas’s own API testing interface, independently of the AI integration.
Questions for the Nylas team
I would appreciate clarification on the following:
-
Is this expected behaviour when a new IMAP grant is created, or should Sent messages from the previous 90 days automatically become available in the cache?
-
Is there a way to check whether the initial IMAP synchronisation has completed successfully?
-
Could this indicate that the Sent folder is not being indexed correctly, despite being identified with the
\Sentattribute? -
Is there a supported method to refresh, repair or restart Sent-folder synchronisation without deleting the existing grant?
-
Are there any known limitations affecting Sent-folder caching on the Free/Sandbox plan?
-
Is there a recommended way for integrations using the Nylas MCP interface to retrieve messages directly from IMAP when cached retrieval returns no results?
Desired outcome
I would like Nylas to retrieve both incoming and sent correspondence reliably through the standard Messages API, without requiring direct IMAP queries for routine access.
I have retained the relevant API request IDs and can provide them privately to Nylas Support if required.
Any guidance from the Nylas team or developers who have encountered this issue would be greatly appreciated.
Thank you for your assistance.I wanted to provide an update on an IMAP synchronisation issue I previously reported.
I am using Nylas to connect a third-party IMAP mailbox through a ChatGPT integration using Composio.
Initially, the Sent folder was visible through the Nylas API, but normal cached message requests returned an empty array.
Interestingly, querying the IMAP server directly using query_imap=true successfully retrieved Sent messages.
Further testing has now produced encouraging results.
The standard Nylas Messages API is now returning recent Sent correspondence, including a successful request retrieving 20 messages.
Sending through the same Nylas connection is also working correctly. Sent messages appear in both the provider’s webmail and my Outlook IMAP client.
This suggests that the original problem may have involved initial background synchronisation or indexing, although that has not been confirmed.
I would appreciate some technical clarification from the community:
-
Is it normal for the Sent folder of a newly connected generic IMAP account to take additional time to become available through the Nylas cache?
-
Is there a recommended way to confirm that initial folder synchronisation has completed?
-
What is the best method for accessing messages older than the standard 90-day IMAP cache through an integration such as Composio?
-
Are there known limitations affecting use of
query_imap=truethrough Nylas MCP integrations?
The immediate problem has improved considerably, but I would like to establish whether the underlying integration is now fully functional.
Any guidance would be greatly appreciated.