Repository navigation
Add SMTP-to-IMAP Sent auto-copy support with deduplication and configuration controls - #215
Open
ThiagoPedro wants to merge 2 commits into
Open
ThiagoPedro wants to merge 2 commits into
ThiagoPedro wants to merge 2 commits into
Conversation
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
SentAutoCopyEnabledconfiguration 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 | PASSEDValidated 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.