INNER CODE UNIT · Python

mailfrom

netkiller/netkiller.github.io · postgres/python/server.py:45

    mailfrom = data[10:-2]
    conn.send("250 OK\r\n")

data = conn.recv(1024)
if data[:8] == "RCPT TO:":
    mailto = data[8:-2]
    conn.send("250 OK\r\n")

data = conn.recv(1024)
if data == "DATA\r\n":
    conn.send("354 Start mail input; end with <CRLF>.<CRLF>\r\n")
#        while 1 :
#    data = conn.recv(1024)   
while 1:
    data = conn.recv(1024)
    text += data
    if data[-3:] == ".\r\n":
        conn.send("250 OK\r\n")

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…