nylas / nylas/nylas-nodejs

BaseAttachment filename can be undefined

Open
#755 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.