From 387381fa8fac818f0afe932b27a172494084a411 Mon Sep 17 00:00:00 2001 From: Armin Ronacher Date: Thu, 15 Jul 2010 20:24:16 +0200 Subject: [PATCH] Actual fix --- sync-librelist.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sync-librelist.py b/sync-librelist.py index 8eb409e7..b58d8400 100644 --- a/sync-librelist.py +++ b/sync-librelist.py @@ -125,7 +125,7 @@ class Tree(object): def add_thread_for(self, mail): self.threads.append({ - 'title': mail['subject'] or '[No Subject]', + 'title': mail['subject'], 'slug': self.generate_slug(mail), 'date': mail['date'], 'author': mail['author'], @@ -260,7 +260,7 @@ def parse_mail(f, fsid): 'references': references, 'author': split_email(headers['from']), 'date': headers['Date'], - 'subject': strip_subject_prefix(headers['subject']), + 'subject': strip_subject_prefix(headers['subject'] or 'No Subject'), 'text': body, 'children': [] }