Skip to content

Commit f01296b

Browse files
committed
Bad References make the script stop; this helps
1 parent 6a0e122 commit f01296b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/cleanup-maildir.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ def getInReplyTo(self):
166166

167167
def getReferences(self):
168168
references = self.get('References')
169-
if references is None:
169+
if not references:
170170
return []
171171
# remove commas between references before splitting
172172
references = re.sub(r'>\s*,\s*<', '> <', references).strip()

0 commit comments

Comments
 (0)