TIP: You can type at any time to perform a new search.
Fetchmail Incoming Test
fetchmail_incoming_test · OCA/mail
- Repository
- OCA/mail · module folder · Try on Runboat
- Module version
- Category
- Discuss
- Folder size
- 0.06 MB
- License
- AGPL-3
- Application
- No
- Auto-installable
- No
- Website
- https://github.com/OCA/mail
- Last tracking update
- 2026-08-14 11:16:14
- Authors
- Camptocamp, Odoo Community Association (OCA)
- Maintainers
- Camptocamp, Odoo Community Association (OCA)
- Committers
- Weblate, OCA-git-bot, oca-ci, David Gallay
- Odoo dependencies
- Python dependencies
- None
- System dependencies
- None
- Required by
- None
- Description
This module lets you simulate an incoming email directly from Odoo, without a real mail server or SMTP client. It adds a **Simulate Incoming Email** button (and matching *Action* menu entry) on the Incoming Mail Server, opening a small composer (From, To, Cc, Bcc, Subject, Body). On send, the email is used as if it had been fetched from a server, it is then routed by alias and creates the target record (helpdesk ticket, lead, task, ...). It is meant for testing mail-driven flows on environments that have no inbound mail server, like test instances. It also adds a **Replay Email File** button, which takes a raw message file (usually a `.eml` exported from a mail client) and feeds it to the gateway untouched. Useful to reproduce how a specific email that a customer received was handled, byte for byte.
Code Analysis ⓘ
Views touched (3)
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
fetchmail_incoming_test_eml_view_form |
fetchmail.incoming.test.eml.form | fetchmail.incoming.test.eml | form | New |
fetchmail_incoming_test_view_form |
fetchmail.incoming.test.form | fetchmail.incoming.test | form | New |
view_email_server_form |
fetchmail.server.form.incoming.test | fetchmail.server | form | Inherits mail.view_email_server_form |
HTTP endpoints (0)
No HTTP endpoints found for this module.
Models touched (3)
New fields (6)
-
bodyHtml -
email_bccCharstring='Bcc' -
email_ccCharstring='Cc' -
email_fromChardefault=<expr>required=Truestring='From' -
email_toCharhelp='Recipient address, typically the alias routing to the target model.'required=Truestring='To' -
subjectChar
No public methods.
New fields (2)
-
eml_fileBinaryattachment=Falsehelp='Raw message, as exported by a mail client. Usually a .eml file.'required=Truestring='Email File' -
eml_filenameChar
No public methods.
New fields (1)
-
server_idMany2one → fetchmail.serverdefault=<expr>help='Incoming mail server this wizard was opened from.'string='Incoming Mail Server' args: 'fetchmail.server'
-
action_process(self)Feed the email to the mail gateway as a real inbound one.