Describe the bug
AI Disclosure
I used opencode with openai's gpt 5.6 sol to help me diagnose this.
Installation Steps
I downloaded the latest binary (0.44.0) for linux amd64 from the github releases and ran it from .local/bin/ . The exact command I ran is:
DEBUG_IMAP=/tmp/matcha-imap.log matcha
The instructions I followed for setting gmail with matcha was from here:
Matcha Gmail Guide
Bug?
When I attempted to download an attachment from an email in the Starred mailbox folder, I kept getting the failed to fetch attachment error. I have also verified that the error comes from other folders like All Mail and Important, however it first occurred for me in the Starred folder.
Just to be clear, downloading attachments from the main INBOX folder and only the main INBOX folder works, from any other folder it gives the "Error Downloading: Could not fetch attachment error" .
According to GPT 5.6 Sol the error seems to be that matcha is attempting to download the attachment from the wrong folder and is getting an error.
NOTE:
The log file was modified by 5.6 Sol to remove any tokens, keys, and other personal information. I have included the steps the llm used to clean up the log file too. [matcha-log-cleaning]
matcha-imap-redacted.log
matcha-log-cleaning.txt
To reproduce
- Authenticate with oauth2 for gmail as per these instructions
- Go to your Starred folder in the mailbox.
- Open an email with an attachment (not gdrive link, just attachment)
- Attempt to download the attachment
Expected behavior
Attachment gets downloaded regardless of which folder in the mailbox it is from.
Screenshots
No response
System Info
Matcha version
0.44.0
Go version
No response
OS
Linux
OS version
Void Linux (GLibC) x86_64 20250202
Architecture
amd64 (x86_64)
Terminal
Ghostty
Additional context
If any additional information is needed from me, or if I missed in trying something simple please let me know.
Describe the bug
AI Disclosure
I used opencode with openai's gpt 5.6 sol to help me diagnose this.
Installation Steps
I downloaded the latest binary (0.44.0) for linux amd64 from the github releases and ran it from .local/bin/ . The exact command I ran is:
The instructions I followed for setting gmail with matcha was from here:
Matcha Gmail Guide
Bug?
When I attempted to download an attachment from an email in the Starred mailbox folder, I kept getting the failed to fetch attachment error. I have also verified that the error comes from other folders like All Mail and Important, however it first occurred for me in the Starred folder.
Just to be clear, downloading attachments from the main INBOX folder and only the main INBOX folder works, from any other folder it gives the "Error Downloading: Could not fetch attachment error" .
According to GPT 5.6 Sol the error seems to be that matcha is attempting to download the attachment from the wrong folder and is getting an error.
NOTE:
The log file was modified by 5.6 Sol to remove any tokens, keys, and other personal information. I have included the steps the llm used to clean up the log file too. [matcha-log-cleaning]
matcha-imap-redacted.log
matcha-log-cleaning.txt
To reproduce
Expected behavior
Attachment gets downloaded regardless of which folder in the mailbox it is from.
Screenshots
No response
System Info
Matcha version
0.44.0
Go version
No response
OS
Linux
OS version
Void Linux (GLibC) x86_64 20250202
Architecture
amd64 (x86_64)
Terminal
Ghostty
Additional context
If any additional information is needed from me, or if I missed in trying something simple please let me know.