Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 116637 | Differences between
and this patch

Collapse All | Expand All

(-)portage-2.1_pre4/pym/elog_modules/mod_mail.py (-2 / +2 lines)
Lines 33-39 Link Here
33
			myrecipient = mysettings["PORTAGE_ELOG_MAILURI"]
33
			myrecipient = mysettings["PORTAGE_ELOG_MAILURI"]
34
	try:
34
	try:
35
		mymessage = email.Message.Message()
35
		mymessage = email.Message.Message()
36
		mymessage.set_unixfrom("portage")
36
		mymessage.set_unixfrom(mysettings["PORTAGE_ELOG_MAILFROM"])
37
		mymessage.set_payload(fulltext)
37
		mymessage.set_payload(fulltext)
38
		mymessage["To"] = myrecipient
38
		mymessage["To"] = myrecipient
39
		mymessage["Subject"] = "[portage] Ebuild log for %s" % cpv
39
		mymessage["Subject"] = "[portage] Ebuild log for %s" % cpv
Lines 45-51 Link Here
45
			myconn = smtplib.SMTP(mymailhost, mymailport)
45
			myconn = smtplib.SMTP(mymailhost, mymailport)
46
		if mymailuser != "" and mymailpasswd != "":
46
		if mymailuser != "" and mymailpasswd != "":
47
			myconn.login(mymailuser, mymailpasswd)
47
			myconn.login(mymailuser, mymailpasswd)
48
		myconn.sendmail("portage", myrecipient, mymessage.as_string())
48
		myconn.sendmail(mysettings["PORTAGE_ELOG_MAILFROM"], myrecipient, mymessage.as_string())
49
		myconn.quit()
49
		myconn.quit()
50
	except smtplib.SMTPException, e:
50
	except smtplib.SMTPException, e:
51
		raise portage_exception.PortageException("!!! An error occured while trying to send logmail:\n"+str(e))
51
		raise portage_exception.PortageException("!!! An error occured while trying to send logmail:\n"+str(e))

Return to bug 116637