Remove spaces in messageids
authorMagnus Hagander <magnus@hagander.net>
Tue, 20 Nov 2018 20:29:22 +0000 (21:29 +0100)
committerMagnus Hagander <magnus@hagander.net>
Tue, 20 Nov 2018 20:29:22 +0000 (21:29 +0100)
They shouldn't be there in the first place. Sigh. But if they're there
just pretend they don't exist, so we get a working messageid.

loader/lib/parser.py

index d0e53025c45a1b4a4d4dd5d1974610494b96850a..871cea78cb38d761008f93b3a63f596758f15001 100644 (file)
@@ -343,7 +343,7 @@ class ArchivesParser(object):
                                log.status("Could not parse messageid '%s', ignoring it" % messageid)
                                return None
                        raise IgnorableException("Could not parse message id '%s'" % messageid)
-               return m.groups(1)[0]
+               return m.groups(1)[0].replace(' ','')
 
 #      _date_multi_re = re.compile(' \((\w+\s\w+(\s+\w+)*|)\)$')
        # Now using [^\s] instead of \w, to work with japanese chars