summaryrefslogtreecommitdiff
path: root/alot/helper.py
diff options
context:
space:
mode:
authorpazz <patricktotzke@gmail.com>2011-06-22 23:25:29 +0100
committerpazz <patricktotzke@gmail.com>2011-06-22 23:25:29 +0100
commitc2dad59bba232b396f487d9ba33fe77a12790f7c (patch)
treea238a0bb5fa961f1d2fdce92db37a5083c284e82 /alot/helper.py
parentb64c9809eead156ac154951171808106cfe509ae (diff)
added accounts and sender, sendCmd works
Diffstat (limited to 'alot/helper.py')
-rw-r--r--alot/helper.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/alot/helper.py b/alot/helper.py
index 6efb396f..cdc471bc 100644
--- a/alot/helper.py
+++ b/alot/helper.py
@@ -21,6 +21,7 @@ from datetime import timedelta
import shlex
import subprocess
+import email
def shorten(string, maxlen):
@@ -46,3 +47,7 @@ def pretty_datetime(d):
def cmd_output(command_line):
args = shlex.split(command_line)
return subprocess.check_output(args)
+
+def parse_addr(addr):
+ return email.Utils.parseaddr(addr)
+