Skip to content

Add SMTP-to-IMAP Sent auto-copy support with deduplication and configuration controls - #215

Open
ThiagoPedro wants to merge 2 commits into
RainbowWizard-coder:masterfrom
ThiagoPedro:pr/sent-auto-copy-dco
Open

ThiagoPedro wants to merge 2 commits into
RainbowWizard-coder:masterfrom
ThiagoPedro:pr/sent-auto-copy-dco

Conversation

@ThiagoPedro

Copy link
Copy Markdown

Summary

This Pull Request introduces SMTP-to-IMAP Sent auto-copy functionality for hMailServer, including message deduplication, persistence, MIME fingerprinting, and administrative configuration support.

The implementation enables server-side handling of authenticated SMTP submissions, supporting automatic storage of sent messages in the corresponding IMAP Sent folder while preventing duplicate copies.

Main Changes

SMTP and IMAP Integration

  • Extended SMTP submission processing to support the Sent auto-copy workflow.

  • Updated IMAP APPEND handling for the associated message-processing requirements.

  • Introduced supporting components for coordinating sent-message storage.

Deduplication and Message Handling

  • Added message deduplication policy components.

  • Introduced MIME fingerprinting utilities.

  • Added persistence components to support Sent auto-copy processing.

Configuration and Administration

  • Introduced the SentAutoCopyEnabled configuration parameter.

  • Integrated the parameter into the server settings infrastructure.

  • Added administrative configuration support in WebAdmin.

  • Updated ControlPanel integration.

Project Integration

  • Updated Visual Studio project configuration.

  • Extended application settings and message utility components.

Testing and Validation

Functional testing has been successfully completed in the local development environment.

The following scenarios have been tested and validated:

Test Scenario | Result -- | -- Authenticated SMTP message submission | PASSED Message storage in the IMAP Sent folder | PASSED Sent-message deduplication | PASSED

Validated Functionality

1. Authenticated SMTP Submission

Successfully tested message submission using SMTP authentication with the implemented Sent auto-copy functionality.

2. IMAP Sent Folder Storage

Successfully verified that sent messages are stored in the corresponding IMAP Sent folder through the implemented server-side workflow.

3. Message Deduplication

Successfully tested the deduplication functionality, confirming the expected prevention of duplicate sent-message storage in the scenarios exercised.

Testing Scope

These results reflect functional validation performed in the local development environment.

Additional testing and review are welcome, particularly regarding:

  • SMTP/IMAP interoperability across different email clients.

  • Edge cases in message deduplication.

  • Compatibility with existing server configurations.

  • Administrative configuration behavior.

  • Regression testing under different deployment environments.

Development and Contribution

The implementation was developed and tested in a dedicated development branch before preparation for upstream integration.

The changes are submitted for review and potential incorporation into the upstream hMailServer project.

I am available to investigate issues, provide additional technical details, and make adjustments based on maintainer feedback.

Thank you for reviewing this contribution.

Signed-off-by: Thiago Pedro <thiagopedro.br@gmail.com>
Initial implementation of Sent auto-copy functionality.

- SMTP submission handling
- IMAP APPEND integration
- Sent message deduplication
- MIME fingerprint support
- Persistence components
- WebAdmin and ControlPanel settings integration

Development branch: working
Implementation pending build and functional validation.

Signed-off-by: Thiago Pedro <thiagopedro.br@gmail.com>
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