@@ -171,7 +171,8 @@ def find_content(project, mail):
if patchbuf:
mail_headers(mail)
- name = clean_subject(mail.get('Subject'), [project.linkname])
+ prefixes = [project.subjectprefix or project.linkname]
+ name = clean_subject(mail.get('Subject'), prefixes)
patch = Patch(name = name, content = patchbuf,
date = mail_date(mail), headers = mail_headers(mail))
@@ -64,6 +64,7 @@ class Project(models.Model):
name = models.CharField(max_length=255, unique=True)
listid = models.CharField(max_length=255, unique=True)
listemail = models.CharField(max_length=200)
+ subjectprefix = models.CharField(max_length=255, null=True, blank=True)
def __str__(self):
return self.name
new file mode 100644
@@ -0,0 +1,3 @@
+BEGIN;
+ALTER TABLE patchwork_project ADD COLUMN subjectprefix varchar(255) NULL;
+COMMIT;