mirror of
				https://github.com/sqlmapproject/sqlmap.git
				synced 2025-11-04 09:57:38 +03:00 
			
		
		
		
	Merge branch 'master' of github.com:sqlmapproject/sqlmap
This commit is contained in:
		
						commit
						11e27f07e0
					
				| 
						 | 
					@ -30,6 +30,10 @@ TO = "dev@sqlmap.org"
 | 
				
			||||||
SUBJECT = "Regression test results on %s using revision %s" % (TIME, REVISION)
 | 
					SUBJECT = "Regression test results on %s using revision %s" % (TIME, REVISION)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
def prepare_email(content):
 | 
					def prepare_email(content):
 | 
				
			||||||
 | 
					    global FROM
 | 
				
			||||||
 | 
					    global TO
 | 
				
			||||||
 | 
					    global SUBJECT
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    msg = MIMEMultipart()
 | 
					    msg = MIMEMultipart()
 | 
				
			||||||
    msg["Subject"] = SUBJECT
 | 
					    msg["Subject"] = SUBJECT
 | 
				
			||||||
    msg["From"] = FROM
 | 
					    msg["From"] = FROM
 | 
				
			||||||
| 
						 | 
					@ -40,6 +44,10 @@ def prepare_email(content):
 | 
				
			||||||
    return msg
 | 
					    return msg
 | 
				
			||||||
 | 
					
 | 
				
			||||||
def send_email(msg):
 | 
					def send_email(msg):
 | 
				
			||||||
 | 
					    global SMTP_SERVER
 | 
				
			||||||
 | 
					    global SMTP_PORT
 | 
				
			||||||
 | 
					    global SMTP_TIMEOUT
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    try:
 | 
					    try:
 | 
				
			||||||
        s = smtplib.SMTP(host=SMTP_SERVER, port=SMTP_PORT, timeout=SMTP_TIMEOUT)
 | 
					        s = smtplib.SMTP(host=SMTP_SERVER, port=SMTP_PORT, timeout=SMTP_TIMEOUT)
 | 
				
			||||||
        #s.set_debuglevel(1)
 | 
					        #s.set_debuglevel(1)
 | 
				
			||||||
| 
						 | 
					@ -50,6 +58,8 @@ def send_email(msg):
 | 
				
			||||||
        print "Failure to send email: %s" % str(e)
 | 
					        print "Failure to send email: %s" % str(e)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
def main():
 | 
					def main():
 | 
				
			||||||
 | 
					    global SUBJECT
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    content = ""
 | 
					    content = ""
 | 
				
			||||||
    test_counts = []
 | 
					    test_counts = []
 | 
				
			||||||
    attachments = {}
 | 
					    attachments = {}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue
	
	Block a user