[Libreoffice-commits] dev-tools.git: gerritbot/mangleandmailtodevlist
Bjoern Michaelsen
bjoern.michaelsen at canonical.com
Tue Feb 26 14:40:20 PST 2013
gerritbot/mangleandmailtodevlist | 19 -------------------
1 file changed, 19 deletions(-)
New commits:
commit 044bd64ccc23ed6ebd3ba77f334f7dece90debf8
Author: Bjoern Michaelsen <bjoern.michaelsen at canonical.com>
Date: Tue Feb 26 23:20:22 2013 +0100
remove prefixsubject and removeboilerplate as we have our own templates now
Change-Id: I85e4bbca8fc0a41a9c55b0d7da65a7733e2af0df
Reviewed-on: https://gerrit.libreoffice.org/2431
Reviewed-by: Björn Michaelsen <bjoern.michaelsen at canonical.com>
Tested-by: Björn Michaelsen <bjoern.michaelsen at canonical.com>
diff --git a/gerritbot/mangleandmailtodevlist b/gerritbot/mangleandmailtodevlist
index e661846..027ad1d 100755
--- a/gerritbot/mangleandmailtodevlist
+++ b/gerritbot/mangleandmailtodevlist
@@ -4,23 +4,6 @@ import sys
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 @@ def adddevlisttocc(message):
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
More information about the Libreoffice-commits
mailing list