-
Notifications
You must be signed in to change notification settings - Fork 495
Open
Description
Bug Description
When using gog gmail send --reply-to <messageId>, the resulting email has an incorrect timezone in the Date header (+0900, Tokyo timezone), which causes Google to reject the message with:
An error occurred. Your message was not sent.
Steps to Reproduce
- Have an existing email thread with a message ID
- Run:
gog gmail send --to recipient@example.com --subject "Re: Subject" --body "..." --reply-to <messageId> - The sent email will have a Date header like:
Tue, 24 Mar 2026 19:13:39 +0900(Tokyo time) instead of the correct local timezone or UTC
Expected Behavior
The Date header should use the system timezone (or UTC) — not hardcoded +0900.
Actual Behavior
Email Date header is set to +0900 (Tokyo/JST), causing Google's delivery to fail with a generic error message.
Workaround
Do not use --reply-to flag. Send as a new email with a manually prefixed subject (e.g. Re: Original Subject). The email sends successfully without this flag.
Environment
- gog version: v0.12.0 (c18c58c 2026-03-09T05:53:14Z)
- OS: Linux (Ubuntu 24.04)
- Using OAuth credentials
Impact
The --reply-to flag is effectively broken — using it causes email delivery to silently fail with a non-descriptive error message.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels