Skip to content

Commit 7053948

Browse files
Merge branch 'release/4.1.3'
2 parents e3781fe + e87d253 commit 7053948

File tree

4 files changed

+5
-6
lines changed

4 files changed

+5
-6
lines changed

.github/workflows/main.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
runs-on: ubuntu-latest
1313
strategy:
1414
matrix:
15-
python-version: ['3.7', '3.8', '3.9', '3.10']
15+
python-version: ['3.8', '3.9', '3.10']
1616

1717
steps:
1818
- uses: actions/checkout@v4
@@ -75,6 +75,7 @@ jobs:
7575
password: ${{ secrets.PYPI_PASSWORD }}
7676

7777
docker:
78+
if: github.event_name == 'push' && (github.ref == 'refs/heads/master' || github.ref == 'refs/heads/develop' || startsWith(github.ref, 'refs/tags/'))
7879
runs-on: ubuntu-latest
7980
needs: build
8081
steps:

setup.cfg

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ classifiers =
1818
Natural Language :: English
1919
Programming Language :: Python
2020
Programming Language :: Python :: 3
21-
Programming Language :: Python :: 3.7
2221
Programming Language :: Python :: 3.8
2322
Programming Language :: Python :: 3.9
2423
Programming Language :: Python :: 3.10
@@ -28,9 +27,8 @@ package_dir =
2827
=src
2928
packages = find:
3029
install_requires =
31-
ipaddress
3230
six
33-
python_requires = >=3.7
31+
python_requires = >=3.8
3432

3533
[options.packages.find]
3634
where = src

src/mailparser/core.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -355,7 +355,7 @@ def parse(self):
355355
charset = p.get_content_charset("utf-8")
356356
charset_raw = p.get_content_charset()
357357
log.debug("Charset {!r} part {!r}".format(charset, i))
358-
content_disposition = ported_string(p.get("content-disposition"))
358+
content_disposition = ported_string(p.get_content_disposition()).lower()
359359
log.debug(
360360
"content-disposition {!r} part {!r}".format(content_disposition, i)
361361
)

src/mailparser/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,4 @@
1717
limitations under the License.
1818
"""
1919

20-
__version__ = "4.1.2"
20+
__version__ = "4.1.3"

0 commit comments

Comments
 (0)