mailfmt 1.0.0__tar.gz → 1.0.2__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {mailfmt-1.0.0 → mailfmt-1.0.2}/PKG-INFO +3 -4
- mailfmt-1.0.2/justfile +21 -0
- {mailfmt-1.0.0 → mailfmt-1.0.2}/mailfmt.py +6 -5
- {mailfmt-1.0.0 → mailfmt-1.0.2}/pyproject.toml +3 -4
- {mailfmt-1.0.0 → mailfmt-1.0.2}/uv.lock +1 -1
- {mailfmt-1.0.0 → mailfmt-1.0.2}/.gitignore +0 -0
- {mailfmt-1.0.0 → mailfmt-1.0.2}/.python-version +0 -0
- {mailfmt-1.0.0 → mailfmt-1.0.2}/LICENSE +0 -0
- {mailfmt-1.0.0 → mailfmt-1.0.2}/README.md +0 -0
@@ -1,13 +1,12 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: mailfmt
|
3
|
-
Version: 1.0.
|
4
|
-
Summary:
|
3
|
+
Version: 1.0.2
|
4
|
+
Summary: Heuristic plain text email formatter.
|
5
5
|
Project-URL: Repository, https://git.sr.ht/~ficd/mailfmt
|
6
|
-
Project-URL: Homepage, https://sr.ht/~ficd/mailfmt
|
7
6
|
Author-email: Daniel Fichtinger <daniel@ficd.ca>
|
8
7
|
License-Expression: ISC
|
9
8
|
License-File: LICENSE
|
10
|
-
Keywords: email,formatter
|
9
|
+
Keywords: cli,email,formatter
|
11
10
|
Requires-Python: >=3.11
|
12
11
|
Description-Content-Type: text/markdown
|
13
12
|
|
mailfmt-1.0.2/justfile
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
clean:
|
2
|
+
#!/bin/sh
|
3
|
+
if [ ! -d "dist" ] && [ ! -d "__pycache__" ]; then
|
4
|
+
echo "Nothing to clean."
|
5
|
+
exit 0
|
6
|
+
fi
|
7
|
+
if [ -d "dist" ]; then
|
8
|
+
echo "Removing dist/"
|
9
|
+
rm -r dist/
|
10
|
+
fi
|
11
|
+
if [ -d "__pycache__" ]; then
|
12
|
+
echo "Removing __pycache__/"
|
13
|
+
rm -r "__pycache__"
|
14
|
+
fi
|
15
|
+
publish:
|
16
|
+
#!/bin/sh
|
17
|
+
just clean
|
18
|
+
uv build
|
19
|
+
export UV_PUBLISH_TOKEN="$(pass show pypi)"
|
20
|
+
uv publish
|
21
|
+
|
@@ -75,7 +75,7 @@ def main() -> None:
|
|
75
75
|
if not signoff_cache and 1 <= n <= 5 and line[-1] == ",":
|
76
76
|
return True
|
77
77
|
# second potential line
|
78
|
-
elif signoff_cache and 1 <= n <= 5
|
78
|
+
elif signoff_cache and 1 <= n <= 5:
|
79
79
|
for w in words:
|
80
80
|
if not w[0].isupper():
|
81
81
|
return False
|
@@ -84,11 +84,12 @@ def main() -> None:
|
|
84
84
|
return False
|
85
85
|
|
86
86
|
parser = argparse.ArgumentParser(
|
87
|
-
description=
|
87
|
+
description="Heuristic formatter for plain text email. Preserves markup, signoffs, and signature blocks.",
|
88
88
|
epilog="""
|
89
|
-
Author
|
90
|
-
|
91
|
-
|
89
|
+
Author : Daniel Fichtinger
|
90
|
+
Repository: https://git.sr.ht/~ficd/mailfmt
|
91
|
+
License : ISC
|
92
|
+
Contact : daniel@ficd.ca
|
92
93
|
""",
|
93
94
|
formatter_class=argparse.RawDescriptionHelpFormatter,
|
94
95
|
)
|
@@ -1,7 +1,7 @@
|
|
1
1
|
[project]
|
2
2
|
name = "mailfmt"
|
3
|
-
version = "1.0.
|
4
|
-
description = "
|
3
|
+
version = "1.0.2"
|
4
|
+
description = "Heuristic plain text email formatter."
|
5
5
|
readme = "README.md"
|
6
6
|
authors = [
|
7
7
|
{ name = "Daniel Fichtinger", email = "daniel@ficd.ca" }
|
@@ -10,11 +10,10 @@ requires-python = ">=3.11"
|
|
10
10
|
dependencies = []
|
11
11
|
license = "ISC"
|
12
12
|
license-files = ["LICENSE"]
|
13
|
-
keywords = ["email", "formatter"]
|
13
|
+
keywords = ["email", "formatter", "cli"]
|
14
14
|
|
15
15
|
[project.urls]
|
16
16
|
Repository = "https://git.sr.ht/~ficd/mailfmt"
|
17
|
-
Homepage = "https://sr.ht/~ficd/mailfmt"
|
18
17
|
|
19
18
|
[project.scripts]
|
20
19
|
mailfmt = "mailfmt:main"
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|