myl 0.8.5__tar.gz → 0.8.7__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.
- {myl-0.8.5 → myl-0.8.7}/.github/workflows/lint.yaml +2 -2
- {myl-0.8.5 → myl-0.8.7}/.github/workflows/pypi.yaml +2 -2
- {myl-0.8.5 → myl-0.8.7}/.github/workflows/release.yaml +1 -1
- {myl-0.8.5 → myl-0.8.7}/PKG-INFO +4 -1
- {myl-0.8.5 → myl-0.8.7}/myl.egg-info/PKG-INFO +4 -1
- myl-0.8.7/myl.egg-info/requires.txt +3 -0
- {myl-0.8.5 → myl-0.8.7}/myl.py +9 -4
- {myl-0.8.5 → myl-0.8.7}/pyproject.toml +4 -4
- myl-0.8.5/myl.egg-info/requires.txt +0 -3
- {myl-0.8.5 → myl-0.8.7}/.github/dependabot.yml +0 -0
- {myl-0.8.5 → myl-0.8.7}/.gitignore +0 -0
- {myl-0.8.5 → myl-0.8.7}/LICENSE +0 -0
- {myl-0.8.5 → myl-0.8.7}/README.md +0 -0
- {myl-0.8.5 → myl-0.8.7}/myl.egg-info/SOURCES.txt +0 -0
- {myl-0.8.5 → myl-0.8.7}/myl.egg-info/dependency_links.txt +0 -0
- {myl-0.8.5 → myl-0.8.7}/myl.egg-info/entry_points.txt +0 -0
- {myl-0.8.5 → myl-0.8.7}/myl.egg-info/top_level.txt +0 -0
- {myl-0.8.5 → myl-0.8.7}/setup.cfg +0 -0
@@ -17,10 +17,10 @@ jobs:
|
|
17
17
|
permissions:
|
18
18
|
id-token: write # IMPORTANT: this permission is mandatory for trusted publishing
|
19
19
|
steps:
|
20
|
-
- uses: actions/checkout@
|
20
|
+
- uses: actions/checkout@v4
|
21
21
|
|
22
22
|
- name: Set up Python
|
23
|
-
uses: actions/setup-python@
|
23
|
+
uses: actions/setup-python@v5
|
24
24
|
with:
|
25
25
|
python-version: '3.x'
|
26
26
|
|
{myl-0.8.5 → myl-0.8.7}/PKG-INFO
RENAMED
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: myl
|
3
|
-
Version: 0.8.
|
3
|
+
Version: 0.8.7
|
4
4
|
Summary: Dead simple IMAP CLI client
|
5
5
|
Author-email: Philipp Schmitt <philipp@schmitt.co>
|
6
6
|
License: GNU GENERAL PUBLIC LICENSE
|
@@ -683,6 +683,9 @@ Classifier: Programming Language :: Python :: 3
|
|
683
683
|
Requires-Python: >=3.8
|
684
684
|
Description-Content-Type: text/markdown
|
685
685
|
License-File: LICENSE
|
686
|
+
Requires-Dist: imap-tools==1.5.0
|
687
|
+
Requires-Dist: myl-discovery==0.5.7
|
688
|
+
Requires-Dist: rich>=13.7.0
|
686
689
|
|
687
690
|
# 📧 myl
|
688
691
|
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: myl
|
3
|
-
Version: 0.8.
|
3
|
+
Version: 0.8.7
|
4
4
|
Summary: Dead simple IMAP CLI client
|
5
5
|
Author-email: Philipp Schmitt <philipp@schmitt.co>
|
6
6
|
License: GNU GENERAL PUBLIC LICENSE
|
@@ -683,6 +683,9 @@ Classifier: Programming Language :: Python :: 3
|
|
683
683
|
Requires-Python: >=3.8
|
684
684
|
Description-Content-Type: text/markdown
|
685
685
|
License-File: LICENSE
|
686
|
+
Requires-Dist: imap-tools==1.5.0
|
687
|
+
Requires-Dist: myl-discovery==0.5.7
|
688
|
+
Requires-Dist: rich>=13.7.0
|
686
689
|
|
687
690
|
# 📧 myl
|
688
691
|
|
{myl-0.8.5 → myl-0.8.7}/myl.py
RENAMED
@@ -112,7 +112,9 @@ def main():
|
|
112
112
|
else:
|
113
113
|
if args.auto:
|
114
114
|
try:
|
115
|
-
settings = autodiscover(
|
115
|
+
settings = autodiscover(
|
116
|
+
args.username, password=args.password
|
117
|
+
).get("imap")
|
116
118
|
except Exception:
|
117
119
|
error_msg("Failed to autodiscover IMAP settings")
|
118
120
|
if args.debug:
|
@@ -122,6 +124,7 @@ def main():
|
|
122
124
|
args.server = settings.get("server")
|
123
125
|
args.port = settings.get("port", IMAP_PORT)
|
124
126
|
args.starttls = settings.get("starttls")
|
127
|
+
|
125
128
|
if args.sent:
|
126
129
|
args.folder = "Sent"
|
127
130
|
|
@@ -177,7 +180,9 @@ def main():
|
|
177
180
|
return 0
|
178
181
|
print(msg.text if not args.html else msg.html)
|
179
182
|
for att in msg.attachments:
|
180
|
-
print(
|
183
|
+
print(
|
184
|
+
f"📎 Attachment: {att.filename}", file=sys.stderr
|
185
|
+
)
|
181
186
|
return 0
|
182
187
|
|
183
188
|
for msg in mailbox.fetch(
|
@@ -188,10 +193,10 @@ def main():
|
|
188
193
|
mark_seen=args.mark_seen,
|
189
194
|
headers_only=False, # required for attachments
|
190
195
|
):
|
191
|
-
|
196
|
+
subj_prefix = "📎 " if len(msg.attachments) > 0 else ""
|
192
197
|
table.add_row(
|
193
198
|
msg.uid if msg.uid else "???",
|
194
|
-
|
199
|
+
subj_prefix
|
195
200
|
+ (msg.subject if msg.subject else "<no-subject>"),
|
196
201
|
msg.from_,
|
197
202
|
msg.date.strftime("%H:%M %d/%m/%Y") if msg.date else "???",
|
@@ -16,11 +16,11 @@ classifiers = [
|
|
16
16
|
"Programming Language :: Python :: 3",
|
17
17
|
]
|
18
18
|
dependencies = [
|
19
|
-
"imap-tools == 1.
|
20
|
-
"myl-discovery == 0.5.
|
21
|
-
"rich
|
19
|
+
"imap-tools == 1.5.0",
|
20
|
+
"myl-discovery == 0.5.7",
|
21
|
+
"rich >= 13.7.0",
|
22
22
|
]
|
23
|
-
version = "0.8.
|
23
|
+
version = "0.8.7"
|
24
24
|
|
25
25
|
[tool.black]
|
26
26
|
line-length = 79
|
File without changes
|
File without changes
|
{myl-0.8.5 → myl-0.8.7}/LICENSE
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|