Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mailing
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lifo
Nicolas Ollinger
mailing
Commits
6a989598
Commit
6a989598
authored
Jun 07, 2020
by
Nicolas Ollinger
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
typo
parent
5c73c856
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
mailing.py
mailing.py
+2
-2
No files found.
mailing.py
View file @
6a989598
...
@@ -16,8 +16,8 @@ import mimetypes
...
@@ -16,8 +16,8 @@ import mimetypes
mimetypes
.
init
()
mimetypes
.
init
()
mimetypes
.
add_type
(
'application/pdf'
,
'.pdf'
)
mimetypes
.
add_type
(
'application/pdf'
,
'.pdf'
)
def
autotype
(
path
,
default
=
(
'application/pdf'
,)
):
def
autotype
(
path
,
default
=
'application/pdf'
):
return
(
mimetypes
.
guess_type
(
path
)
or
default
)[
0
]
.
split
(
'/'
)
return
(
mimetypes
.
guess_type
(
path
)
or
(
default
,)
)[
0
]
.
split
(
'/'
)
with
open
(
'mailing.txt'
)
as
f
:
with
open
(
'mailing.txt'
)
as
f
:
sujet
=
f
.
readline
()
.
strip
()
sujet
=
f
.
readline
()
.
strip
()
...
...
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