Skip to content

[18.0][ADD] fetchmail_s3: receive email from S3-compatible buckets#3579

Open
dnplkndll wants to merge 1 commit into
OCA:18.0from
ledoent:18.0-add-fetchmail_s3
Open

[18.0][ADD] fetchmail_s3: receive email from S3-compatible buckets#3579
dnplkndll wants to merge 1 commit into
OCA:18.0from
ledoent:18.0-add-fetchmail_s3

Conversation

@dnplkndll
Copy link
Copy Markdown
Contributor

@dnplkndll dnplkndll commented Mar 27, 2026

Adds an "S3 Bucket" incoming-mail server type: polls an S3-compatible bucket for raw .eml objects, feeds each through mail.thread.message_process, then archives (to a prefix) or deletes it.

Use case: AWS SES inbound rules drop messages into S3; this picks them up on the fetchmail cron. Works with any S3-compatible store (AWS S3, MinIO, Hetzner Object Storage, DO Spaces).

Design: follows the google_gmail / microsoft_outlook extension pattern — selection_add a server_type='s3', override connect() / button_confirm_login() / fetch_mail(), S3 ops via boto3 (paginated list → get → copy/delete).

Depends on boto3.

@dnplkndll dnplkndll force-pushed the 18.0-add-fetchmail_s3 branch 3 times, most recently from 09bb5a4 to 368b3cf Compare March 27, 2026 02:38
@dnplkndll dnplkndll force-pushed the 18.0-add-fetchmail_s3 branch 3 times, most recently from e6530f5 to 3839933 Compare May 29, 2026 03:36
@dnplkndll dnplkndll force-pushed the 18.0-add-fetchmail_s3 branch 2 times, most recently from bbee805 to cc04754 Compare May 29, 2026 20:29
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
@dnplkndll dnplkndll force-pushed the 18.0-add-fetchmail_s3 branch from cc04754 to bfe011c Compare May 29, 2026 20:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants