BaseAttachment filename can be undefined
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 181
- Forks
- 126
- Avg merge
- 1d 20h
- Merged PRs (30d)
- 1
Description
When an email bounces, the receiving mail server often sends back a “delivery status notification” email. That email is usually multipart MIME, with pieces like:
message/delivery-status: structured delivery failure details, such as failed recipient, SMTP status code, reason.message/rfc822: a copy of the original email or original headers.message/global-headers: header-only metadata.
These parts are not normal user attachments like invoice.pdf or image.png. They are technical sub-parts of the bounce email, and mail providers often expose them through the same attachments API even though they do not have a filename. Nylas returns filename: undefined.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating the BaseAttachment declaration and the attachment response types. Trace how MIME parts such as message/delivery-status and message/rfc822 are represented, then verify that an absent filename is handled consistently. Done means these technical parts can be represented without requiring a filename, with the relevant type or behavior covered by the existing attachment checks.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- api
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Quiet
- Clarity
- Needs clarification
- Newbie friendliness
- 45/100