summaryrefslogtreecommitdiffstats
path: root/hyperkitty/lib
diff options
context:
space:
mode:
Diffstat (limited to 'hyperkitty/lib')
-rw-r--r--hyperkitty/lib/__init__.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/hyperkitty/lib/__init__.py b/hyperkitty/lib/__init__.py
index 1970917..8149ac5 100644
--- a/hyperkitty/lib/__init__.py
+++ b/hyperkitty/lib/__init__.py
@@ -27,6 +27,10 @@ def get_store(request):
def stripped_subject(mlist, subject):
if mlist is None:
return subject
+ if not subject:
+ return u"(no subject)"
+ if not mlist.subject_prefix:
+ return subject
if subject.lower().startswith(mlist.subject_prefix.lower()):
subject = subject[len(mlist.subject_prefix) : ]
return subject