From: Jason Stubbs Date: Fri, 30 Dec 2005 06:48:50 +0000 (-0000) Subject: Split email addresses on the final "@" so as to allow "@" within the username X-Git-Tag: v2.1_pre3~7 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=066f60343f2abfbdf3eee0ed3fab2aea5e1ff977;p=portage.git Split email addresses on the final "@" so as to allow "@" within the username portion of the address. svn path=/main/trunk/; revision=2497 --- diff --git a/pym/elog_modules/mod_mail.py b/pym/elog_modules/mod_mail.py index a007833ee..59fd56a8e 100644 --- a/pym/elog_modules/mod_mail.py +++ b/pym/elog_modules/mod_mail.py @@ -18,7 +18,7 @@ def process(mysettings, cpv, logentries, fulltext): if " " in mysettings["PORTAGE_ELOG_MAILURI"]: myrecipient, mymailuri = mysettings["PORTAGE_ELOG_MAILURI"].split() if "@" in mymailuri: - myauthdata, myconndata = mymailuri.split("@") + myauthdata, myconndata = mymailuri.rsplit("@", 1) try: mymailuser,mymailpasswd = myauthdata.split(":") except ValueError: