infocalypse
 
(Steve Dougherty)
2013-07-08: Fix assuming prefix presense; subject always starting at prefix.

Fix assuming prefix presense; subject always starting at prefix.

diff --git a/infocalypse/wot.py b/infocalypse/wot.py
--- a/infocalypse/wot.py
+++ b/infocalypse/wot.py
@@ -128,8 +128,7 @@ def check_notifications(ui, from_identit
     subjects = [x[1] for x in subjects]
 
     # Remove field name and trim whitespace.
-    subjects = [subject.rstrip()[subject.index(VCS_PREFIX):] for subject in
-                subjects]
+    subjects = [subject.rstrip()[len('Subject: '):] for subject in subjects]
 
     for subject in subjects:
         if subject.startswith(VCS_PREFIX):