Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
proto3
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
protokollsystem
proto3
Commits
01a94e5b
Commit
01a94e5b
authored
8 years ago
by
Robin Sonnabend
Browse files
Options
Downloads
Plain Diff
Merge branch 'master' into 'master'
Set Message-ID in outgoing mails See merge request
!1
parents
36f4d4d7
6ca85fc9
Branches
Branches containing commit
No related tags found
1 merge request
!1
Set Message-ID in outgoing mails
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
utils.py
+3
-0
3 additions, 0 deletions
utils.py
with
3 additions
and
0 deletions
utils.py
+
3
−
0
View file @
01a94e5b
...
@@ -12,6 +12,8 @@ from datetime import datetime, date, timedelta
...
@@ -12,6 +12,8 @@ from datetime import datetime, date, timedelta
import
requests
import
requests
from
io
import
BytesIO
from
io
import
BytesIO
import
ipaddress
import
ipaddress
from
socket
import
getfqdn
from
uuid
import
uuid4
import
config
import
config
...
@@ -81,6 +83,7 @@ class MailManager:
...
@@ -81,6 +83,7 @@ class MailManager:
msg
[
"
From
"
]
=
self
.
from_addr
msg
[
"
From
"
]
=
self
.
from_addr
msg
[
"
To
"
]
=
to_addr
msg
[
"
To
"
]
=
to_addr
msg
[
"
Subject
"
]
=
subject
msg
[
"
Subject
"
]
=
subject
msg
[
"
Message-ID
"
]
=
"
{}@{}
"
.
format
(
uuid4
(),
getfqdn
())
msg
.
attach
(
MIMEText
(
content
,
_charset
=
"
utf-8
"
))
msg
.
attach
(
MIMEText
(
content
,
_charset
=
"
utf-8
"
))
if
appendix
is
not
None
:
if
appendix
is
not
None
:
for
name
,
file_like
in
appendix
:
for
name
,
file_like
in
appendix
:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment