qa/bugzillaReport.py | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+)
New commits: commit 600719778d25c7493ee5ac473bd2d39fa4105add Author: Xisco Fauli <xiscofa...@libreoffice.org> AuthorDate: Wed Aug 7 21:30:28 2019 +0200 Commit: Xisco Fauli <xiscofa...@libreoffice.org> CommitDate: Wed Aug 7 21:31:09 2019 +0200 QA: add script for sending email reports diff --git a/qa/bugzillaReport.py b/qa/bugzillaReport.py new file mode 100755 index 0000000..f4ee6b4 --- /dev/null +++ b/qa/bugzillaReport.py @@ -0,0 +1,33 @@ +#!/usr/bin/env python3 +# +# This file is part of the LibreOffice project. +# +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, You can obtain one at http://mozilla.org/MPL/2.0/. +# + +import common +from datetime import date + +data = { + 'bugzilla' : { + 'fileName' : '/tmp/bugzilla_report.txt', + 'emails': [] + }, + 'users' : { + 'fileName' : '/tmp/bugzilla_users_report.txt', + 'emails': [] + }, +} +def sendReports(): + for k, v in data.items(): + with open(v['fileName'], 'r') as content_file: + text = content_file.read() + + for email in v['emails']: + common.sendMail({'mail': {'bcc': None}}, email, + 'Bugzilla Report from ' + date.today().strftime("%y/%m/%d"), text, None) + +if __name__ == '__main__': + sendReports() _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits