Skip to content

UBERF-13118: Send emails from Huly mail threads #9669

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 12 commits into from
Aug 13, 2025
Merged

UBERF-13118: Send emails from Huly mail threads #9669

merged 12 commits into from
Aug 13, 2025

Conversation

ArtyomSavchenko
Copy link
Contributor

No description provided.

Signed-off-by: Artem Savchenko <[email protected]>
Signed-off-by: Artem Savchenko <[email protected]>
Signed-off-by: Artem Savchenko <[email protected]>
Signed-off-by: Artem Savchenko <[email protected]>
Copilot

This comment was marked as outdated.

Signed-off-by: Artem Savchenko <[email protected]>
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR implements functionality to send emails from Huly mail threads, extending the mail system to support bidirectional email communication. The primary purpose is to enable sending Huly messages as emails through the mail infrastructure.

  • Renamed and restructured the inbound mail service to a more comprehensive mail worker
  • Added outgoing email functionality with queue-based message processing
  • Integrated email headers to prevent mail loops and identify Huly-generated messages

Reviewed Changes

Copilot reviewed 29 out of 46 changed files in this pull request and generated 7 comments.

Show a summary per file
File Description
services/mail/pod-mail/src/main.ts Enhanced validation and error logging for mail sending API
services/mail/pod-mail-worker/src/mailWorker.ts New mail worker for processing outgoing Huly messages as emails
services/mail/pod-mail-worker/src/send.ts Email sending functionality via HTTP API
services/mail/pod-mail-worker/src/workspaceClient.ts Workspace client management with connection pooling
services/mail/pod-mail-worker/src/types.ts Type definitions for mail messages and constants
services/mail/mail-common/src/utils.ts Shared utilities for mail headers and Huly message detection
services/mail/mail-common/src/types.ts Common type definitions and header constants
services/mail/mail-common/src/txHandler.ts Transaction handling and recipient resolution logic
services/mail/mail-common/src/thread.ts Thread lookup service with email-specific keys
Files not reviewed (1)
  • common/config/rush/pnpm-lock.yaml: Language not supported

ArtyomSavchenko and others added 5 commits August 12, 2025 21:09
Co-authored-by: Copilot <[email protected]>
Signed-off-by: Artyom Savchenko <[email protected]>
Co-authored-by: Copilot <[email protected]>
Signed-off-by: Artyom Savchenko <[email protected]>
Co-authored-by: Copilot <[email protected]>
Signed-off-by: Artyom Savchenko <[email protected]>
Signed-off-by: Artem Savchenko <[email protected]>
Signed-off-by: Artem Savchenko <[email protected]>
@ArtyomSavchenko ArtyomSavchenko marked this pull request as ready for review August 12, 2025 15:34
@aonnikov aonnikov merged commit 0218c5d into develop Aug 13, 2025
25 of 26 checks passed
@aonnikov aonnikov deleted the UBERF-13118 branch August 13, 2025 04:24
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.

2 participants