Commit cf19a4d4 authored by Seblu's avatar Seblu
Browse files

Allow from to be chaned in config

parent ca0bf52d
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -181,7 +181,7 @@ def send_build_report(config, localpkg, aurpkg, status, logfile):
	msg = MIMEMultipart()
	msg["Subject"] = "Build %s for %s %s" % (
		"successful" if status else "failure", localpkg.name, aurpkg.version)
	msg["From"] = "Aurbot"
	msg["From"] = config.get("from", "Aurbot")
	msg["To"] = config["notify"]
	msg["Date"] = formatdate(localtime=True)
	# attach logfile
@@ -203,7 +203,7 @@ def send_maintainer_report(config, localpkg, aurpkg):
		"\r\n"
		"Your aurbot configuration need to be updated!\r\n")
	msg["Subject"] = "Invalid maintainer for %s" % localpkg.name
	msg["From"] = "Aurbot"
	msg["From"] = config.get("from", "Aurbot")
	msg["To"] = config["notify"]
	msg["Date"] = formatdate(localtime=True)
	send_message(msg)
+1 −0
Original line number Diff line number Diff line
@@ -3,6 +3,7 @@ build_cmd = seblu-build
commit_cmd = seblu-push
check_interval = 86400
timeout = 30
from = noreply@example.com
notify = seblu@example.com

[virtualbox-ext-oracle]
+1 −0
Original line number Diff line number Diff line
[DEFAULT]
build_cmd = makepkg
from = noreply@seblu.net
notify = seblu@seblu.net

[python-sjrpc]