prepare for new laptop
[dotfiles.git] / email / .config / offlineimap / offlineimap.py
index 9e1bd88..c2fcee0 100644 (file)
@@ -3,10 +3,12 @@ import datetime
 import re
 
 
-def mailpasswd():
+def mailpasswdnet():
     return subprocess.check_output('pass mail/mart@martlubbers.net',
                                    shell='/bin/bash').strip()
-
+def mailpasswdru():
+    return subprocess.check_output('pass science.ru.nl/mlubbers',
+                                   shell='/bin/bash').strip()
 
 def folderfilter(x):
     match = re.match('archive\.(\d\d\d\d).(\d\d)', x)
@@ -15,4 +17,4 @@ def folderfilter(x):
                    datetime.date(int(match.group(1)), int(match.group(2)), 1)
                    ).days <= 31*6
     else:
-        return not x.startswith('archive')
+        return not x.startswith('archive') and not (x == "INBOX.Junk")