diff options
author | Gabriel Pérez-Cerezo <gabriel@gpcf.eu> | 2020-10-17 13:43:41 +0200 |
---|---|---|
committer | Gabriel Pérez-Cerezo <gabriel@gpcf.eu> | 2020-10-17 13:43:41 +0200 |
commit | 01920a5eb9690324967c5ffe7a6f3c006a1f48b2 (patch) | |
tree | 77cb66d46a18b5198c87a48b0df13189d7a189ff | |
parent | fbea971f5b9aaf1a7b26f8b19dfde68ad27a40d3 (diff) | |
download | hemiptera-master.tar.gz hemiptera-master.tar.bz2 hemiptera-master.zip |
-rwxr-xr-x | hemiptera | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -113,7 +113,11 @@ def write_message(path, m) : def get_message_data(m) : """ returns subject and content of message """ - content = m.get_body("plain").get_content() + content = "" + try : + content = m.get_body("plain").get_content() + except : + pass subject = m["Subject"] return subject,content |