Skip to content

Fix invalid Gmail message dates - #32

Closed
Smitgajera10 wants to merge 1 commit into
AienTech:mainfrom
Smitgajera10:fix/gmail-invalid-date-31
Closed

Smitgajera10 wants to merge 1 commit into
AienTech:mainfrom
Smitgajera10:fix/gmail-invalid-date-31

Conversation

@Smitgajera10

Copy link
Copy Markdown

Summary

  • validate Gmail internalDate before constructing a Date
  • fall back to the Date header for malformed timestamps
  • ensure readMessage always returns a valid date
  • add regression tests for missing, malformed, and valid date values

Closes #31

Validation

  • corepack yarn vitest run src/lib/google/gmail.test.ts
  • corepack yarn eslint src/lib/google/gmail.ts src/lib/google/gmail.test.ts

Closes #31

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@AienTech AienTech closed this Oct 29, 2026
@AienTech

Copy link
Copy Markdown
Owner

asnwered in #31 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Gmail message parsing can produce Invalid Date when internalDate is missing or malformed

2 participants