myl 0.9.4__py3-none-any.whl → 0.9.5__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
- Metadata-Version: 2.2
1
+ Metadata-Version: 2.4
2
2
  Name: myl
3
- Version: 0.9.4
3
+ Version: 0.9.5
4
4
  Summary: Dead simple IMAP CLI client
5
5
  Author-email: Philipp Schmitt <philipp@schmitt.co>
6
6
  License: GNU GENERAL PUBLIC LICENSE
@@ -689,8 +689,9 @@ Description-Content-Type: text/markdown
689
689
  License-File: LICENSE
690
690
  Requires-Dist: imap-tools<2.0.0,>=1.5.0
691
691
  Requires-Dist: myl-discovery>=0.6.1.dev0
692
- Requires-Dist: rich<14.0.0,>=13.0.0
692
+ Requires-Dist: rich<15.0.0,>=13.0.0
693
693
  Requires-Dist: html2text>=2024.2.26
694
+ Dynamic: license-file
694
695
 
695
696
  # 📧 myl
696
697
 
@@ -0,0 +1,7 @@
1
+ myl.py,sha256=kpqFXlQHFwFaQkL7tUQyAlxvhZrbqAb4m5wu8WueoCY,15282
2
+ myl-0.9.5.dist-info/licenses/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
3
+ myl-0.9.5.dist-info/METADATA,sha256=yKk6uf8gGT56MmtyiCkinWNlvC6Yl5NI90bYL9Jd6zI,43469
4
+ myl-0.9.5.dist-info/WHEEL,sha256=CmyFI0kx5cdEMTLiONQRbGQwjIoR1aIYB7eCAQ4KPJ0,91
5
+ myl-0.9.5.dist-info/entry_points.txt,sha256=q6nr0Kzim7JzreXQE3BTU4asLh2sx5-D0w1yLBOcHxc,33
6
+ myl-0.9.5.dist-info/top_level.txt,sha256=Wn88OJVVWyYSsKVoqzlHXxfFxh5IbrJ_Yw-ldNLe7Po,4
7
+ myl-0.9.5.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: setuptools (75.9.1)
2
+ Generator: setuptools (78.1.0)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5
 
myl.py CHANGED
@@ -3,6 +3,7 @@
3
3
 
4
4
  from importlib.metadata import version, PackageNotFoundError
5
5
  import argparse
6
+ import base64
6
7
  import logging
7
8
  import ssl
8
9
  import sys
@@ -59,7 +60,17 @@ def mail_to_dict(msg, date_format="%Y-%m-%d %H:%M:%S"):
59
60
  "html": msg.html,
60
61
  "text": msg.text,
61
62
  },
62
- "attachments": msg.attachments,
63
+ "attachments": [
64
+ {
65
+ "filename": x.filename,
66
+ "content_id": x.content_id,
67
+ "content_type": x.content_type,
68
+ "content_disposition": x.content_disposition,
69
+ "payload": base64.b64encode(x.payload).decode("utf-8"),
70
+ "size": x.size,
71
+ }
72
+ for x in msg.attachments
73
+ ],
63
74
  }
64
75
 
65
76
 
@@ -1,7 +0,0 @@
1
- myl.py,sha256=7cluVkTXZ3P3OqsmFt-UGw0gVeszVPrRTtwJMhW3jXo,14909
2
- myl-0.9.4.dist-info/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
3
- myl-0.9.4.dist-info/METADATA,sha256=eRJywRLPB_y5g0wS7za44MfPqWzGEJbplbFs_4W8CJo,43447
4
- myl-0.9.4.dist-info/WHEEL,sha256=EaM1zKIUYa7rQnxGiOCGhzJABRwy4WO57rWMR3_tj4I,91
5
- myl-0.9.4.dist-info/entry_points.txt,sha256=q6nr0Kzim7JzreXQE3BTU4asLh2sx5-D0w1yLBOcHxc,33
6
- myl-0.9.4.dist-info/top_level.txt,sha256=Wn88OJVVWyYSsKVoqzlHXxfFxh5IbrJ_Yw-ldNLe7Po,4
7
- myl-0.9.4.dist-info/RECORD,,