aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTeddy Wing2021-03-14 00:43:16 +0100
committerTeddy Wing2021-03-14 00:43:16 +0100
commitb96a8f39aba1b84ae876db89e1d066afb99f1413 (patch)
tree91ad30b3b8e815bfab1243c9ca7c983ffd2c9aae
parent7c1ee045f154176d3daa6cff604f0adc1053eaeb (diff)
downloadmutt-ottolangy-b96a8f39aba1b84ae876db89e1d066afb99f1413.tar.bz2
Remove mail.py
Now that I've figured out what was wrong with parsing email bodies.
-rw-r--r--mail.py25
1 files changed, 0 insertions, 25 deletions
diff --git a/mail.py b/mail.py
deleted file mode 100644
index e3a10ae..0000000
--- a/mail.py
+++ /dev/null
@@ -1,25 +0,0 @@
-#!/usr/bin/env python3
-
-# from email import parser
-import email
-import sys
-
-# p = parser.BytesFeedParser()
-# p.feed(sys.stdin)
-# msg = p.close()
-
-with open('en-mail', 'r') as f:
- msg = email.message_from_file(f)
-
- # print(msg.items())
- # print(msg.get_body())
- # print(type(msg))
- # for p in msg.iter_parts():
- # print(p)
-
- for p in msg.walk():
- print(p.get_content_type())
-
- if p.get_content_type() == 'text/plain':
- print(dir(p))
- print(p.get_payload())