myl 0.4__py3-none-any.whl → 0.6__py3-none-any.whl
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.4.dist-info → myl-0.6.dist-info}/METADATA +1 -1
- myl-0.6.dist-info/RECORD +7 -0
- myl.py +11 -5
- myl-0.4.dist-info/RECORD +0 -7
- {myl-0.4.dist-info → myl-0.6.dist-info}/LICENSE +0 -0
- {myl-0.4.dist-info → myl-0.6.dist-info}/WHEEL +0 -0
- {myl-0.4.dist-info → myl-0.6.dist-info}/entry_points.txt +0 -0
- {myl-0.4.dist-info → myl-0.6.dist-info}/top_level.txt +0 -0
myl-0.6.dist-info/RECORD
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
myl.py,sha256=Efk9yL6Wvpfiut-9RjHxgLG5JoSHvynxD2G2Se_8RxA,3261
|
2
|
+
myl-0.6.dist-info/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
|
3
|
+
myl-0.6.dist-info/METADATA,sha256=qk88IT6hKZ8qdu_pWmbi-FdFB-ZgAYx4yUIHyBQOuBc,40955
|
4
|
+
myl-0.6.dist-info/WHEEL,sha256=pkctZYzUS4AYVn6dJ-7367OJZivF2e8RA9b_ZBjif18,92
|
5
|
+
myl-0.6.dist-info/entry_points.txt,sha256=q6nr0Kzim7JzreXQE3BTU4asLh2sx5-D0w1yLBOcHxc,33
|
6
|
+
myl-0.6.dist-info/top_level.txt,sha256=Wn88OJVVWyYSsKVoqzlHXxfFxh5IbrJ_Yw-ldNLe7Po,4
|
7
|
+
myl-0.6.dist-info/RECORD,,
|
myl.py
CHANGED
@@ -17,7 +17,11 @@ def parse_args():
|
|
17
17
|
parser.add_argument("-P", "--port", help="IMAP server port", default=143)
|
18
18
|
parser.add_argument("--starttls", help="Start TLS", action="store_true")
|
19
19
|
parser.add_argument(
|
20
|
-
"-c",
|
20
|
+
"-c",
|
21
|
+
"--count",
|
22
|
+
help="Number of messages to fetch",
|
23
|
+
default=10,
|
24
|
+
type=int,
|
21
25
|
)
|
22
26
|
parser.add_argument(
|
23
27
|
"-m", "--mark-seen", help="Mark seen", action="store_true"
|
@@ -32,6 +36,7 @@ def parse_args():
|
|
32
36
|
"-t", "--no-title", help="Do not show title", action="store_true"
|
33
37
|
)
|
34
38
|
parser.add_argument("-f", "--folder", help="IMAP folder", default="INBOX")
|
39
|
+
parser.add_argument("-S", "--search", help="Search string", default="ALL")
|
35
40
|
parser.add_argument("-w", "--wrap", help="Wrap text", action="store_true")
|
36
41
|
parser.add_argument("-H", "--html", help="Show HTML", action="store_true")
|
37
42
|
parser.add_argument("MAILID", help="Mail ID to fetch", nargs="?")
|
@@ -62,20 +67,21 @@ def main():
|
|
62
67
|
args.username, args.password, args.folder
|
63
68
|
) as mailbox:
|
64
69
|
if args.MAILID:
|
65
|
-
msg =
|
66
|
-
|
67
|
-
for x in mailbox.fetch(
|
70
|
+
msg = next(
|
71
|
+
mailbox.fetch(
|
68
72
|
f"UID {args.MAILID}", mark_seen=args.mark_seen
|
69
73
|
)
|
70
|
-
|
74
|
+
)
|
71
75
|
print(msg.text if not args.html else msg.html)
|
72
76
|
return 0
|
73
77
|
|
74
78
|
for msg in mailbox.fetch(
|
79
|
+
criteria=args.search,
|
75
80
|
reverse=True,
|
76
81
|
bulk=True,
|
77
82
|
limit=args.count,
|
78
83
|
mark_seen=args.mark_seen,
|
84
|
+
headers_only=True,
|
79
85
|
):
|
80
86
|
table.add_row(
|
81
87
|
msg.uid if msg.uid else "???",
|
myl-0.4.dist-info/RECORD
DELETED
@@ -1,7 +0,0 @@
|
|
1
|
-
myl.py,sha256=D0LGOQGBY8eV6UhEWjC1g7j-sCKdgXkWkW2po5TaSXM,3106
|
2
|
-
myl-0.4.dist-info/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
|
3
|
-
myl-0.4.dist-info/METADATA,sha256=Bw7Z6pvLDIPCzlutr0-3YDN41cavYqVKmJX4dgqk8sU,40955
|
4
|
-
myl-0.4.dist-info/WHEEL,sha256=pkctZYzUS4AYVn6dJ-7367OJZivF2e8RA9b_ZBjif18,92
|
5
|
-
myl-0.4.dist-info/entry_points.txt,sha256=q6nr0Kzim7JzreXQE3BTU4asLh2sx5-D0w1yLBOcHxc,33
|
6
|
-
myl-0.4.dist-info/top_level.txt,sha256=Wn88OJVVWyYSsKVoqzlHXxfFxh5IbrJ_Yw-ldNLe7Po,4
|
7
|
-
myl-0.4.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|