Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 82030 Details for
Bug 116637
elog can-t send email thru common smtp...
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
another patch
portage_elog_mail_sender.patch (text/plain), 1.40 KB, created by
catfish
on 2006-03-13 11:58:00 UTC
(
hide
)
Description:
another patch
Filename:
MIME Type:
Creator:
catfish
Created:
2006-03-13 11:58:00 UTC
Size:
1.40 KB
patch
obsolete
>--- mod_mail.py.ori 2006-03-13 00:56:32.000000000 -0700 >+++ mod_mail.py 2006-03-13 01:57:08.000000000 -0700 >@@ -33,7 +33,10 @@ > myrecipient = mysettings["PORTAGE_ELOG_MAILURI"] > try: > mymessage = email.Message.Message() >- mymessage.set_unixfrom("portage") >+ if mymailhost != "localhost": >+ mymessage.set_unixfrom("portage@"+socket.getfqdn()) >+ else: >+ mymessage.set_unixfrom("portage") > mymessage.set_payload(fulltext) > mymessage["To"] = myrecipient > mymessage["Subject"] = "[portage] Ebuild log for %s" % cpv >@@ -45,7 +48,10 @@ > myconn = smtplib.SMTP(mymailhost, mymailport) > if mymailuser != "" and mymailpasswd != "": > myconn.login(mymailuser, mymailpasswd) >- myconn.sendmail("portage", myrecipient, mymessage.as_string()) >+ if mymailhost != "localhost": >+ myconn.sendmail("portage@"+socket.getfqdn(), myrecipient, mymessage.as_string()) >+ else: >+ myconn.sendmail("portage", myrecipient, mymessage.as_string()) > myconn.quit() > except smtplib.SMTPException, e: > raise portage_exception.PortageException("!!! An error occured while trying to send logmail:\n"+str(e))
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 116637
:
75462
|
79186
| 82030