]> git.ipfire.org Git - thirdparty/patchwork.git/commit
parsemail: Handle cover letters sent in reply
authorStephen Finucane <stephen.finucane@intel.com>
Thu, 28 Jan 2016 12:15:55 +0000 (12:15 +0000)
committerStephen Finucane <stephen.finucane@intel.com>
Thu, 14 Apr 2016 16:29:18 +0000 (17:29 +0100)
commitd2370d1a878a5f2c794620fd8b632078c4ba40f6
tree59eff69e815bea1581aa55e9b68500ab6ae977f9
parent36953bbdfab103b6617510ceeab6074382d7d5a3
parsemail: Handle cover letters sent in reply

Some people send cover letters (and therefore series) as replies to
existing series. Apply a second set of heuristics to cover this case:

* The message contains a '[0/n]' marker tag in the subject
* The message is not the root message, but the subject is unique, i.e.
  it is not a reply to a cover letter already stored in Patchwork

It is theoretically possible that the message could be a reply to a
cover letter that's been missed, but such occurences should be rare
and only get rarer the longer an instance is running.

Note that there is a third case which is not yet covered: a cover
letter with the same name but a different number of patches. This
will have to wait until series support is fully implemented.

Signed-off-by: Stephen Finucane <stephen.finucane@intel.com>
Reviewed-by: Andy Doan <andy.doan@linaro.org>
patchwork/bin/parsemail.py