Did you receive some new tasks ?
I wait for some news of "little" since 1st of may ...
It's about task 20 result, so i'm in a hurry :-)
On Sat, May 3, 2014 at 12:10 PM, Lucas Tanure <tanure@xxxxxxxxx> wrote:
Hi,I sent my task two over two days ago and didn't receive the task 03.I already sent 6 times the task 02 answer, but I got nothing instead.I used mutt, and a python script.The first time that I sent was two days ago.Has Eudyptula Challenge died ?Is down for a few days ?Thanks a Lot.Lucas Tanure
--The Python scripttanure@archNote email $ cat sender.py#!/usr/bin/python3from smtplib import SMTPfrom itertools import chainfrom errno import ECONNREFUSEDfrom mimetypes import guess_typefrom subprocess import Popen, PIPEfrom email.mime.base import MIMEBasefrom email.mime.text import MIMETextfrom socket import error as SocketErrorfrom email.mime.multipart import MIMEMultipartfrom os.path import abspath, basename, expanduserimport getpass# Define IDid_eudyptula = '[404ba4c8fd16]'# Define email addresses to useaddr_to = 'little@xxxxxxxxxxxxxxxxxxxxxxx'addr_from = 'tanure@xxxxxxxxx'# Define SMTP email server detailssmtp_server = SMTP("smtp.gmail.com",587)smtp_user = 'ltanure@xxxxxxxxx'smtp_pass = getpass.getpass()def get_mimetype(filename):content_type, encoding = guess_type(filename)if content_type is None or encoding is not None:content_type = "application/octet-stream"return content_type.split("/", 1)def mimify_file(filename):filename = abspath(expanduser(filename))basefilename = basename(filename)msg = MIMEBase(*get_mimetype(filename))msg.set_payload(open(filename, "r").read())msg.add_header("Content-Disposition", "attachment", filename=basefilename)#encode_base64(msg)return msgdef send_email(subject, text, files):# Prepare Messagemsg = MIMEMultipart()msg.preamble = subjectmsg.add_header("From", addr_from)msg.add_header("Subject", id_eudyptula + ' ' + subject)msg.add_header("To",addr_to)# Attach the main textmsg.attach(MIMEText(text))# Attach any files[msg.attach(mimify_file(filename)) for filename in files]# Contact local SMTP server and send Messagetry:smtp_server.ehlo()smtp_server.starttls()smtp_server.ehlo()smtp_server.login(smtp_user, smtp_pass)smtp_server.sendmail(addr_from, addr_to, msg.as_string())smtp_server.quit()except SocketError as e:print(e)if __name__ == "__main__":text = open('text','r').read()send_email("Task 02 of the Eudyptula Challenge",text,['.config','dmesg'])
_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@xxxxxxxxxxxxxxxxx
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
_______________________________________________ Kernelnewbies mailing list Kernelnewbies@xxxxxxxxxxxxxxxxx http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies