Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
neoppod
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Carlos Ramos Carreño
neoppod
Commits
2f782572
Commit
2f782572
authored
Mar 20, 2020
by
Vincent Pelletier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
admin: Qualify email sender address.
parent
f4725366
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
neo/admin/app.py
neo/admin/app.py
+2
-1
No files found.
neo/admin/app.py
View file @
2f782572
...
...
@@ -19,6 +19,7 @@ import getpass, os
from
collections
import
Counter
from
email.mime.text
import
MIMEText
from
email.utils
import
formataddr
,
formatdate
from
socket
import
getfqdn
from
time
import
time
from
traceback
import
format_exc
from
neo.lib
import
logging
...
...
@@ -161,7 +162,7 @@ class Application(BaseApplication, Monitor):
email_from
=
os
.
getenv
(
'EMAIL'
)
if
not
email_from
:
try
:
email_from
=
getpass
.
getuser
(
)
email_from
=
'%s@%s'
%
(
getpass
.
getuser
(),
getfqdn
()
)
except
Exception
:
email_from
=
None
self
.
email_from
=
formataddr
((
"NEO "
+
self
.
name
,
email_from
))
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment