[18.0][ADD] fetchmail_s3: receive email from S3-compatible buckets#3579
Open
[18.0][ADD] fetchmail_s3: receive email from S3-compatible buckets#3579
Conversation
7f78359 to
09bb5a4
Compare
Add a new "S3 Bucket" server type to Odoo's incoming mail servers. Polls an S3 bucket for raw email files and processes them through Odoo's standard mail gateway (mail.thread.message_process). Use case: AWS SES inbound email rules store messages in S3. This module picks them up on Odoo's fetchmail cron, processes them into records (leads, tickets, DMS documents), then archives or deletes the S3 objects. Features: - Configurable bucket, prefix, region, credentials, endpoint URL - Archive processed emails to a different prefix or delete - Works with any S3-compatible service (AWS, MinIO, Hetzner, etc.) - Test & Confirm button validates S3 connectivity - Follows the same extension pattern as google_gmail/microsoft_outlook External dependency: boto3
09bb5a4 to
368b3cf
Compare
Contributor
Author
|
CI test failures are caused by The same error pattern exists for Pre-commit passes cleanly. The module installs and tests correctly against Odoo 18 CE in our own CI. |
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
Add a new "S3 Bucket" server type to Odoo's incoming mail servers. Polls an S3 bucket for raw email files (.eml) and processes them through
mail.thread.message_process.Use case
AWS SES inbound email rules store messages in S3. This module picks them up on the fetchmail cron schedule, processes them into Odoo records (leads, tickets, DMS documents, etc.), then archives or deletes the S3 objects.
Works with any S3-compatible storage: AWS S3, MinIO, Hetzner Object Storage, DigitalOcean Spaces.
Why not IMAP?
For cloud-native deployments, S3 is the natural choice. SES is free for the first 1,000 emails/month.
Design
Follows the same extension pattern as
google_gmailandmicrosoft_outlook:server_type = 's3'viaselection_addconnect(),button_confirm_login(),fetch_mail()boto3for S3 operations (paginated listing, get, copy, delete)Configuration
Dependencies
boto3(Python package)🤖 Generated with Claude Code