GiveYouAMail 1.0.1__py3-none-any.whl → 1.0.3__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.
- {giveyouamail-1.0.1.dist-info → giveyouamail-1.0.3.dist-info}/METADATA +1 -1
- giveyouamail-1.0.3.dist-info/RECORD +9 -0
- gyam/__init__.py +1 -1
- gyam/main_script.py +2 -7
- giveyouamail-1.0.1.dist-info/RECORD +0 -9
- {giveyouamail-1.0.1.dist-info → giveyouamail-1.0.3.dist-info}/WHEEL +0 -0
- {giveyouamail-1.0.1.dist-info → giveyouamail-1.0.3.dist-info}/entry_points.txt +0 -0
- {giveyouamail-1.0.1.dist-info → giveyouamail-1.0.3.dist-info}/top_level.txt +0 -0
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
gyam/30MMCLI.py,sha256=GCHPcFx3z7NuwCO0TjG6-3WZEYFNVX2SImMtCcLUw4k,4004
|
|
2
|
+
gyam/__init__.py,sha256=zsEGqfxUbO3JSTtrGADNALjgM-afZpUQ8KQ1P7HJTl0,30
|
|
3
|
+
gyam/gyam.py,sha256=eZhvEjEdDa2Z6kos6pFNF2psQDxLXOEtSr-Hb1oBc_4,4334
|
|
4
|
+
gyam/main_script.py,sha256=L7DHRcSPNW279BEd09TvurrcJGpyqDJC_6dHnnuIvJs,4221
|
|
5
|
+
giveyouamail-1.0.3.dist-info/METADATA,sha256=iV-LNy8B4xyFpOyVWlrV2C1EYDPIwmMylzA9hos7dA8,206
|
|
6
|
+
giveyouamail-1.0.3.dist-info/WHEEL,sha256=wUyA8OaulRlbfwMtmQsvNngGrxQHAvkKcvRmdizlJi0,92
|
|
7
|
+
giveyouamail-1.0.3.dist-info/entry_points.txt,sha256=uOLs7uymvTrRJz1O8e6eyWdKVujKNH5ITzRajEpZE9k,47
|
|
8
|
+
giveyouamail-1.0.3.dist-info/top_level.txt,sha256=FtRwkE3gNQ7_pMjYVSxZBSmUpjt1eOwE7An9fdQJ3Es,5
|
|
9
|
+
giveyouamail-1.0.3.dist-info/RECORD,,
|
gyam/__init__.py
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
from .
|
|
1
|
+
from .main_script import main
|
gyam/main_script.py
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
#!/usr/bin/env python
|
|
2
1
|
import requests, sys, re, json, os, curses
|
|
3
2
|
|
|
4
3
|
API = "https://api.mail.tm"
|
|
@@ -17,7 +16,6 @@ def read_msg(stdscr, token, msg_id):
|
|
|
17
16
|
stdscr.addstr(3, 2, "╚" + "═"*(w-6) + "╝")
|
|
18
17
|
stdscr.attroff(curses.color_pair(1))
|
|
19
18
|
|
|
20
|
-
# Exibe o corpo do e-mail (quebra linha simples)
|
|
21
19
|
lines = body.split('\n')
|
|
22
20
|
for i, line in enumerate(lines[:h-10]):
|
|
23
21
|
stdscr.addstr(5+i, 4, line[:w-8])
|
|
@@ -41,7 +39,6 @@ def tui_original(stdscr, token, email):
|
|
|
41
39
|
while True:
|
|
42
40
|
stdscr.clear()
|
|
43
41
|
h, w = stdscr.getmaxyx()
|
|
44
|
-
|
|
45
42
|
stdscr.attron(curses.color_pair(1) | curses.A_BOLD)
|
|
46
43
|
stdscr.addstr(1, 2, "╔" + "═"*(w-6) + "╗")
|
|
47
44
|
stdscr.addstr(2, 2, f"║ GiveYouAMail CLI {' '*(w-25)}║")
|
|
@@ -70,13 +67,11 @@ def tui_original(stdscr, token, email):
|
|
|
70
67
|
|
|
71
68
|
stdscr.refresh()
|
|
72
69
|
k = stdscr.getch()
|
|
73
|
-
|
|
74
70
|
if k in [ord('q'), ord('Q'), 27]: break
|
|
75
71
|
elif k == curses.KEY_UP and idx > 0: idx -= 1
|
|
76
72
|
elif k == curses.KEY_DOWN and idx < len(items)-1: idx += 1
|
|
77
|
-
elif k in [10, 13]:
|
|
78
|
-
if items:
|
|
79
|
-
read_msg(stdscr, token, items[idx]['id'])
|
|
73
|
+
elif k in [10, 13]:
|
|
74
|
+
if items: read_msg(stdscr, token, items[idx]['id'])
|
|
80
75
|
elif k in [ord('r'), ord('R')]: idx = 0
|
|
81
76
|
|
|
82
77
|
def main():
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
gyam/30MMCLI.py,sha256=GCHPcFx3z7NuwCO0TjG6-3WZEYFNVX2SImMtCcLUw4k,4004
|
|
2
|
-
gyam/__init__.py,sha256=9ci1ihou4EF-iRfYJxTHM4IFmXdtXiDLmh62Af1p1bk,26
|
|
3
|
-
gyam/gyam.py,sha256=eZhvEjEdDa2Z6kos6pFNF2psQDxLXOEtSr-Hb1oBc_4,4334
|
|
4
|
-
gyam/main_script.py,sha256=eZhvEjEdDa2Z6kos6pFNF2psQDxLXOEtSr-Hb1oBc_4,4334
|
|
5
|
-
giveyouamail-1.0.1.dist-info/METADATA,sha256=uvJ_--2tibBJzFk09_gf1LmuP7NkXX5h4m078RYNDC0,206
|
|
6
|
-
giveyouamail-1.0.1.dist-info/WHEEL,sha256=wUyA8OaulRlbfwMtmQsvNngGrxQHAvkKcvRmdizlJi0,92
|
|
7
|
-
giveyouamail-1.0.1.dist-info/entry_points.txt,sha256=uOLs7uymvTrRJz1O8e6eyWdKVujKNH5ITzRajEpZE9k,47
|
|
8
|
-
giveyouamail-1.0.1.dist-info/top_level.txt,sha256=FtRwkE3gNQ7_pMjYVSxZBSmUpjt1eOwE7An9fdQJ3Es,5
|
|
9
|
-
giveyouamail-1.0.1.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|