Date: prev next · Thread: first prev next last
2013 Archives by date, by thread · List index


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@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@canonical.com>


Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.