1. David Soria Parra
  2. hgmbox


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
  • Branches default

Comments (0)

Files changed (1)

File mbox.py

View file
 class mboxerror(Exception):
-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', ' ')