[PATCH 3/5] parsemail: Strip list ID prefix from subject lines
Nate Case
ncase at xes-inc.com
Fri Mar 20 05:59:54 EST 2009
In addition to stripping out the project linkname, also
strip out the list ID for the cases that linkname != listid.
For example, for our 'linux' project, every patch was getting
[Linux-devel] as part of the patch name.
Signed-off-by: Nate Case <ncase at xes-inc.com>
---
Rebased against latest HEAD.
apps/patchwork/bin/parsemail.py | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/apps/patchwork/bin/parsemail.py b/apps/patchwork/bin/parsemail.py
index 995b59f..aa85fbe 100755
--- a/apps/patchwork/bin/parsemail.py
+++ b/apps/patchwork/bin/parsemail.py
@@ -165,7 +165,8 @@ def find_content(project, mail):
if patchbuf:
mail_headers(mail)
- name = clean_subject(mail.get('Subject'), [project.linkname])
+ name = clean_subject(mail.get('Subject'),
+ [project.linkname, project.listid.split(".")[0]])
patch = Patch(name = name, content = patchbuf,
date = mail_date(mail), headers = mail_headers(mail),
log_msg = clean_content(commentbuf))
--
1.6.2
More information about the Patchwork
mailing list