myl 0.5__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: myl
3
- Version: 0.5
3
+ Version: 0.6
4
4
  Summary: Dead simple IMAP CLI client
5
5
  Author-email: Philipp Schmitt <philipp@schmitt.co>
6
6
  License: GNU GENERAL PUBLIC LICENSE
@@ -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
@@ -36,6 +36,7 @@ def parse_args():
36
36
  "-t", "--no-title", help="Do not show title", action="store_true"
37
37
  )
38
38
  parser.add_argument("-f", "--folder", help="IMAP folder", default="INBOX")
39
+ parser.add_argument("-S", "--search", help="Search string", default="ALL")
39
40
  parser.add_argument("-w", "--wrap", help="Wrap text", action="store_true")
40
41
  parser.add_argument("-H", "--html", help="Show HTML", action="store_true")
41
42
  parser.add_argument("MAILID", help="Mail ID to fetch", nargs="?")
@@ -66,16 +67,16 @@ def main():
66
67
  args.username, args.password, args.folder
67
68
  ) as mailbox:
68
69
  if args.MAILID:
69
- msg = [
70
- x
71
- for x in mailbox.fetch(
70
+ msg = next(
71
+ mailbox.fetch(
72
72
  f"UID {args.MAILID}", mark_seen=args.mark_seen
73
73
  )
74
- ][0]
74
+ )
75
75
  print(msg.text if not args.html else msg.html)
76
76
  return 0
77
77
 
78
78
  for msg in mailbox.fetch(
79
+ criteria=args.search,
79
80
  reverse=True,
80
81
  bulk=True,
81
82
  limit=args.count,
myl-0.5.dist-info/RECORD DELETED
@@ -1,7 +0,0 @@
1
- myl.py,sha256=9sYmgW8U1Onzf2c-gLcJERTDMhUdTDpiPIdi_i83o5E,3174
2
- myl-0.5.dist-info/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
3
- myl-0.5.dist-info/METADATA,sha256=fjNs-0mvS-NOxsxKV2OQ9WbaNJtodfb6LmTJuVMAbPk,40955
4
- myl-0.5.dist-info/WHEEL,sha256=pkctZYzUS4AYVn6dJ-7367OJZivF2e8RA9b_ZBjif18,92
5
- myl-0.5.dist-info/entry_points.txt,sha256=q6nr0Kzim7JzreXQE3BTU4asLh2sx5-D0w1yLBOcHxc,33
6
- myl-0.5.dist-info/top_level.txt,sha256=Wn88OJVVWyYSsKVoqzlHXxfFxh5IbrJ_Yw-ldNLe7Po,4
7
- myl-0.5.dist-info/RECORD,,
File without changes
File without changes
File without changes