[IMP] fetchmail_incoming_test: replay a raw email file - #240
Open
divad1196 wants to merge 1 commit into
Open
Conversation
divad1196
marked this pull request as draft
August 7, 2026 12:13
divad1196
force-pushed
the
fetchmail_incoming_test_load_eml
branch
from
August 7, 2026 12:21
359897f to
1f1ae2d
Compare
divad1196
marked this pull request as ready for review
August 7, 2026 12:21
simahawk
approved these changes
Aug 10, 2026
simahawk
left a comment
Contributor
There was a problem hiding this comment.
Nice addition! Pre-approving
| # action_process really feeds message_process instead of swallowing the | ||
| # email, without depending on any routable model. | ||
| raw = self._raw(f"no-such-alias@{self.domain.name}") | ||
| with self.assertRaises(ValueError): |
Contributor
There was a problem hiding this comment.
use assertRaisesRegex to check the message
Add a second wizard that takes a raw message file, usually a .eml exported from a mail client, and feeds it to the gateway untouched. Both wizards now share their action_process through a mixin.
divad1196
force-pushed
the
fetchmail_incoming_test_load_eml
branch
from
August 11, 2026 12:17
1f1ae2d to
7ef4709
Compare
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.
Improvment from #235
Context
We don't always want to setup an incoming mail server and/or configure our mail client for our tests.
.. and sometimes we already have mails in an
.emlformat.What the PR adds
This module adds a wizard to test emails by uploading an
.emlfile.