Fix registrazione HDmario

This commit is contained in:
mac12m99
2021-04-18 20:15:31 +02:00
parent da6f697e8d
commit 673dc5c540
3 changed files with 29 additions and 11 deletions
+7 -1
View File
@@ -122,7 +122,13 @@ class Gmailnator(Mailbox):
def readLast(self):
inbox = self.inbox()
if inbox:
self.user, id = support.match(inbox[0]['content'], patron='([^\/]+)\/messageid\/#([a-z0-9]+)').match
for m in inbox:
email = support.match(m['content'], patron='([^\/]+)\/messageid\/#([a-z0-9]+)').match
if email:
break
else:
return
self.user, id = email
#<b>subject<\/b><div>2 minutes ago</div><hr \/><div dir="ltr">body</div>
html = httptools.downloadpage(self.baseUrl + 'mailbox/get_single_message/', post={'csrf_gmailnator_token': self.csrf, 'action': 'get_message', 'message_id': id, 'email': self.user}).data
html = literal_eval('"""' + html + '"""')