Commits

php  committed 79e7eaf

Allow everything in front of [PATCH]

If you forward a mail [PATCH] is prefixed with Fwd: or Re: so let
mbox be able to handle this too

  • Participants
  • Parent commits afa9505

Comments (0)

Files changed (1)

 class mboxerror(Exception):
     pass
 
-re_patch = re.compile(r'^\s*\[PATCH(?:\s+(\d+)\s+of\s+(\d+))?\]\s*(.+)$')
+re_patch = re.compile(r'^.*\[PATCH(?:\s+(\d+)\s+of\s+(\d+))?\]\s*(.+)$')
 
 def parsesubject(s):
     s = s.replace('\n\t', ' ')