[PATCH] [PATCH] remove prefixsubject and removeboilerplate as we have our ow...

Björn Michaelsen (via_Code_Review) gerrit at gerrit.libreoffice.org
Tue Feb 26 14:20:58 PST 2013


Hi,

I have submitted a patch for review:

    https://gerrit.libreoffice.org/2431

To pull it, you can do:

    git pull ssh://gerrit.libreoffice.org:29418/dev-tools refs/changes/31/2431/1

remove prefixsubject and removeboilerplate as we have our own templates now

Change-Id: I85e4bbca8fc0a41a9c55b0d7da65a7733e2af0df
---
M gerritbot/mangleandmailtodevlist
1 file changed, 0 insertions(+), 19 deletions(-)



diff --git a/gerritbot/mangleandmailtodevlist b/gerritbot/mangleandmailtodevlist
index e661846..027ad1d 100755
--- a/gerritbot/mangleandmailtodevlist
+++ b/gerritbot/mangleandmailtodevlist
@@ -4,23 +4,6 @@
 import email
 import smtplib
 
-def prefixsubject(message):
-        subject = message['Subject']
-        messagetype = message['X-Gerrit-MessageType']
-        if messagetype == 'merged':
-                subject = '[PUSHED] %s' % subject
-        elif messagetype == 'newchange':
-                subject = '[PATCH] %s' % subject
-        del message['Subject']
-        message['Subject'] = subject
-
-def removeboilerplate(message):
-        boilerplate = 'Change in core[master]:'
-        subject = message['Subject']
-        if subject.startswith(boilerplate):
-                del message['Subject']
-                message['Subject'] = subject.replace(boilerplate, '', 1)
-
 def adddevlisttocc(message):
         devlist = 'LibreOffice Developer List <libreoffice at lists.freedesktop.org>'
         if 'cc' in message:
@@ -32,8 +15,6 @@
 
 message = email.message_from_file(sys.stdin)
 adddevlisttocc(message)
-removeboilerplate(message)
-prefixsubject(message)
 
 # we are watching for comments but not sending mails for those in hope to evade
 # http://code.google.com/p/gerrit/issues/detail?id=1465

-- 
To view, visit https://gerrit.libreoffice.org/2431
To unsubscribe, visit https://gerrit.libreoffice.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I85e4bbca8fc0a41a9c55b0d7da65a7733e2af0df
Gerrit-PatchSet: 1
Gerrit-Project: dev-tools
Gerrit-Branch: master
Gerrit-Owner: Björn Michaelsen <bjoern.michaelsen at canonical.com>



More information about the LibreOffice mailing list