summaryrefslogtreecommitdiff
path: root/modules/maillist.py
diff options
context:
space:
mode:
Diffstat (limited to 'modules/maillist.py')
-rw-r--r--modules/maillist.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/modules/maillist.py b/modules/maillist.py
index cf8cb990f..f60eb7eff 100644
--- a/modules/maillist.py
+++ b/modules/maillist.py
@@ -465,3 +465,13 @@ class MailList(MailCommandHandler, HTMLFormatter, Deliverer, ListAdmin,
self._lock_file.lock('u')
self._lock_file.close()
self._lock_file = None
+
+def all_listpaths():
+ """Return the paths to all lists in default list directory."""
+ got = []
+ for prospect in os.listdir(mm_cfg.LIST_DATA_DIR):
+ it = os.path.join(mm_cfg.LIST_DATA_DIR, prospect)
+ if os.path.isdir(it):
+ got.append(it)
+ return got
+