-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add unittests. Allow to return multiple mails as reply. Move configur…
…ations to pyproject.toml
- Loading branch information
1 parent
d7a92bf
commit 4f54aff
Showing
16 changed files
with
125 additions
and
86 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
*.egg-info | ||
*.log | ||
.coverage | ||
.coverage* | ||
!.coveragerc | ||
.mypy_cache | ||
.nox/ | ||
.pytest_cache | ||
|
This file was deleted.
Oops, something went wrong.
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
from setuptools import setup | ||
from setuptools import setup # pylint: disable=E0401 | ||
|
||
setup() |
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
from mail_devel.builder import Builder | ||
from mail_devel.smtp import Logger, Message, Reply | ||
from mail_devel.smtp import Logger, Message, Reply, Response | ||
|
||
|
||
def reply(message: Message, flags: set[str], _logger: Logger) -> Reply | None: | ||
return Reply(Builder.reply_mail(message), flags - {"Seen"}) | ||
def reply(message: Message, flags: set[str], _logger: Logger) -> Response: | ||
yield Reply(Builder.reply_mail(message), flags - {"Seen"}) |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,7 @@ | ||
from mail_devel.builder import Builder | ||
from mail_devel.smtp import Logger, Message, Reply | ||
from mail_devel.smtp import Logger, Message, Reply, Response | ||
|
||
|
||
def reply(message: Message, flags: set[str], _logger: Logger) -> Reply | None: | ||
def reply(message: Message, flags: set[str], _logger: Logger) -> Response: | ||
if "@mail-devel" not in message.get("References", ""): | ||
return Reply(Builder.reply_mail(message), flags - {"Seen"}) | ||
|
||
return None | ||
yield Reply(Builder.reply_mail(message), flags - {"Seen"}) |
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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