-
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.
feature: create config page, add redirect option part2
- Loading branch information
Showing
7 changed files
with
65 additions
and
25 deletions.
There are no files selected for viewing
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
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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{% extends "mailcraft/emails/base.html" %} | ||
|
||
{% block main_text %} | ||
|
||
Test | ||
|
||
{% endblock %} |
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,7 +1,25 @@ | ||
from __future__ import annotations | ||
|
||
from typing import IO, Tuple, Union | ||
from typing_extensions import NotRequired, TypedDict | ||
|
||
|
||
AttachmentWithType = Union[Tuple[str, IO[str], str], Tuple[str, IO[bytes], str]] | ||
AttachmentWithoutType = Union[Tuple[str, IO[str]], Tuple[str, IO[bytes]]] | ||
Attachment = Union[AttachmentWithType, AttachmentWithoutType] | ||
|
||
|
||
EmailData = TypedDict( | ||
"EmailData", | ||
{ | ||
"Bcc": str, | ||
"Content-Type": NotRequired[str], | ||
"Date": str, | ||
"From": str, | ||
"MIME-Version": NotRequired[str], | ||
"Subject": str, | ||
"To": str, | ||
"X-Mailer": NotRequired[str], | ||
"redirected_from": NotRequired["list[str]"] | ||
}, | ||
) |