myl 0.8.10__py3-none-any.whl → 0.8.11__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.8.10
3
+ Version: 0.8.11
4
4
  Summary: Dead simple IMAP CLI client
5
5
  Author-email: Philipp Schmitt <philipp@schmitt.co>
6
6
  License: GNU GENERAL PUBLIC LICENSE
@@ -690,6 +690,7 @@ License-File: LICENSE
690
690
  Requires-Dist: imap-tools <2.0.0,>=1.5.0
691
691
  Requires-Dist: myl-discovery >=0.6.0
692
692
  Requires-Dist: rich <14.0.0,>=13.0.0
693
+ Requires-Dist: html2text >=2024.2.26
693
694
 
694
695
  # 📧 myl
695
696
 
@@ -0,0 +1,7 @@
1
+ myl.py,sha256=1TZZLxqXVr6YMo5q60n8KYxiLI1uColJp_IItPtAM10,10170
2
+ myl-0.8.11.dist-info/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
3
+ myl-0.8.11.dist-info/METADATA,sha256=-PtYBX_cOR3oTgRq6sNRlQub4BcO9-SITZGqWBOcFgo,43318
4
+ myl-0.8.11.dist-info/WHEEL,sha256=P9jw-gEje8ByB7_hXoICnHtVCrEwMQh-630tKvQWehc,91
5
+ myl-0.8.11.dist-info/entry_points.txt,sha256=q6nr0Kzim7JzreXQE3BTU4asLh2sx5-D0w1yLBOcHxc,33
6
+ myl-0.8.11.dist-info/top_level.txt,sha256=Wn88OJVVWyYSsKVoqzlHXxfFxh5IbrJ_Yw-ldNLe7Po,4
7
+ myl-0.8.11.dist-info/RECORD,,
myl.py CHANGED
@@ -1,4 +1,8 @@
1
+ #!/usr/bin/env python3
2
+ # coding: utf-8
3
+
1
4
  import argparse
5
+ import html2text
2
6
  import json
3
7
  import logging
4
8
  import ssl
@@ -234,7 +238,13 @@ def main():
234
238
  )
235
239
  return 0
236
240
 
237
- print(msg.text if not args.html else msg.html)
241
+ output = msg.text
242
+ if args.html:
243
+ if args.raw:
244
+ output = msg.html
245
+ else:
246
+ output = html2text.html2text(msg.html)
247
+ print(output)
238
248
  for att in msg.attachments:
239
249
  print(
240
250
  f"📎 Attachment: {att.filename}", file=sys.stderr
@@ -1,7 +0,0 @@
1
- myl.py,sha256=Fl41na7U0JOiyoebMhLMWSkMHd578sNrpHWZURRL-WM,9894
2
- myl-0.8.10.dist-info/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
3
- myl-0.8.10.dist-info/METADATA,sha256=oLqUBwsPgTLYLpU0rAjQ0dnzRAiST2sDEBM5ECF7WRs,43281
4
- myl-0.8.10.dist-info/WHEEL,sha256=P9jw-gEje8ByB7_hXoICnHtVCrEwMQh-630tKvQWehc,91
5
- myl-0.8.10.dist-info/entry_points.txt,sha256=q6nr0Kzim7JzreXQE3BTU4asLh2sx5-D0w1yLBOcHxc,33
6
- myl-0.8.10.dist-info/top_level.txt,sha256=Wn88OJVVWyYSsKVoqzlHXxfFxh5IbrJ_Yw-ldNLe7Po,4
7
- myl-0.8.10.dist-info/RECORD,,
File without changes
File without changes