mirror of
https://github.com/chillout2k/gulag.git
synced 2025-12-13 16:00:18 +00:00
msg_size fixed
This commit is contained in:
parent
1e35dfef7a
commit
6c0b07aa08
@ -83,7 +83,8 @@ class Gulag:
|
||||
uris = {}
|
||||
uid = unseen['imap_uid']
|
||||
msg = email.message_from_bytes(unseen['msg'])
|
||||
msg_size = len(msg)
|
||||
# msg_size = len(msg)
|
||||
msg_size = len(msg.as_string())
|
||||
r5321_from = email.header.decode_header(msg['Return-Path'])[0][0]
|
||||
if(r5321_from is not '<>'):
|
||||
r5321_from = r5321_from.replace("<","")
|
||||
|
||||
Loading…
Reference in New Issue
Block a user