Skip to content

fix(pipeline): name the receiving mailbox in mail notifications - #12

Merged
gopkg-dev merged 1 commit into
mainfrom
fix/notify-mailbox
Nov 24, 2026
Merged

gopkg-dev merged 1 commit into
mainfrom
fix/notify-mailbox

Conversation

@gopkg-dev

Copy link
Copy Markdown
Owner

Summary

Mail notifications (new mail, high priority, verification code, rule notify action) only showed the sender, subject and summary. With several mailboxes connected there was no way to tell which mailbox received the message.

  • Add a Mailbox: <address> line (收件邮箱:<address> in Chinese) to the notification body, right after the verification code line
  • Expose the address as data.mailbox in the custom webhook payload
  • The account email is looked up once per processed message and passed to both rule-triggered and event-subscribed notices

When the same message lands in several mailboxes, notifications are still deduplicated per channel, so the line shows the mailbox whose copy was processed first.

Test plan

  • tsc --noEmit passes for server
  • Receive a verification-code mail and check the pushed notification shows the receiving mailbox

🤖 Generated with Claude Code

Mail notifications only carried the sender, subject and summary, so with
several mailboxes connected there was no way to tell which one received
the message. Add a "Mailbox: <address>" line to the body of
new-mail, important, verification and rule notifications, and expose the
address as data.mailbox for custom webhooks.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@gopkg-dev
gopkg-dev merged commit e96433a into main Nov 24, 2026
1 check passed
@gopkg-dev
gopkg-dev deleted the fix/notify-mailbox branch November 24, 2026 23:21
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.

1 participant