myl 0.8.5__py3-none-any.whl → 0.8.7__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.5
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,9 +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.0.0)
687
- Requires-Dist: myl-discovery (==0.5.2)
688
- Requires-Dist: rich (==13.4.2)
686
+ Requires-Dist: imap-tools ==1.5.0
687
+ Requires-Dist: myl-discovery ==0.5.7
688
+ Requires-Dist: rich >=13.7.0
689
689
 
690
690
  # 📧 myl
691
691
 
@@ -0,0 +1,7 @@
1
+ myl.py,sha256=tyXYwSNAkaq2rNasB1OtBldpDE209l6IzvaF_Qa1aZQ,6843
2
+ myl-0.8.7.dist-info/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
3
+ myl-0.8.7.dist-info/METADATA,sha256=yz8_wODPddW5YKNmsJT7M6wT4af5kHwLeUzBVxsCICw,43013
4
+ myl-0.8.7.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
5
+ myl-0.8.7.dist-info/entry_points.txt,sha256=q6nr0Kzim7JzreXQE3BTU4asLh2sx5-D0w1yLBOcHxc,33
6
+ myl-0.8.7.dist-info/top_level.txt,sha256=Wn88OJVVWyYSsKVoqzlHXxfFxh5IbrJ_Yw-ldNLe7Po,4
7
+ myl-0.8.7.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: bdist_wheel (0.40.0)
2
+ Generator: bdist_wheel (0.42.0)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5
 
myl.py CHANGED
@@ -112,7 +112,9 @@ def main():
112
112
  else:
113
113
  if args.auto:
114
114
  try:
115
- settings = autodiscover(args.username, password=args.password).get("imap")
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(f"📎 Attachment: {att.filename}", file=sys.stderr)
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
- subj_suffix = "📎 " if len(msg.attachments) > 0 else ""
196
+ subj_prefix = "📎 " if len(msg.attachments) > 0 else ""
192
197
  table.add_row(
193
198
  msg.uid if msg.uid else "???",
194
- subj_suffix
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 "???",
@@ -1,7 +0,0 @@
1
- myl.py,sha256=QPQuL8yqqUWZ98uzsHagR_sXPnxEouxUYiTDYwqI4J0,6750
2
- myl-0.8.5.dist-info/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
3
- myl-0.8.5.dist-info/METADATA,sha256=34sZ7iXJdhAptHyDXMQloKmOfD3wDD4YPDbtSfnMpac,43019
4
- myl-0.8.5.dist-info/WHEEL,sha256=pkctZYzUS4AYVn6dJ-7367OJZivF2e8RA9b_ZBjif18,92
5
- myl-0.8.5.dist-info/entry_points.txt,sha256=q6nr0Kzim7JzreXQE3BTU4asLh2sx5-D0w1yLBOcHxc,33
6
- myl-0.8.5.dist-info/top_level.txt,sha256=Wn88OJVVWyYSsKVoqzlHXxfFxh5IbrJ_Yw-ldNLe7Po,4
7
- myl-0.8.5.dist-info/RECORD,,
File without changes