SciPost Code Repository
Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
SciPost
Manage
Activity
Members
Labels
Plan
Issues
118
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
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
SciPost
SciPost
Commits
da21acd1
Commit
da21acd1
authored
6 years ago
by
Jean-Sébastien Caux
Browse files
Options
Downloads
Patches
Plain Diff
Correct typo
parent
b85451fb
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
mails/backends/filebased.py
+3
-3
3 additions, 3 deletions
mails/backends/filebased.py
with
3 additions
and
3 deletions
mails/backends/filebased.py
+
3
−
3
View file @
da21acd1
from
django.conf
import
settings
from
django.core.mail.backends.filebased
import
EmailBackend
as
FileBacked
from
django.core.mail.backends.filebased
import
EmailBackend
as
FileBacke
n
d
from
django.core.mail.message
import
sanitize_address
from
..models
import
MailLog
class
EmailBackend
(
FileBacked
):
class
EmailBackend
(
FileBacke
n
d
):
def
write_message
(
self
,
message
):
bcc_str
=
'
,
'
.
join
(
message
.
bcc
).
encode
()
self
.
stream
.
write
(
b
'
Extended Mail FileBasedBackend
\n\n
'
)
...
...
@@ -13,7 +13,7 @@ class EmailBackend(FileBacked):
super
().
write_message
(
message
)
class
ModelEmailBackend
(
FileBacked
):
class
ModelEmailBackend
(
FileBacke
n
d
):
def
send_messages
(
self
,
email_messages
,
force_original
=
False
):
"""
Write all messages to the stream in a thread-safe way.
"""
if
force_original
:
...
...
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