kernelnewbies.kernelnewbies.org archive mirror
 help / color / mirror / Atom feed
* [Eudyptula Challenge] Not receiving tasks.
@ 2014-05-03 10:10 Lucas Tanure
  2014-05-03 12:27 ` Greg Freemyer
  2014-05-05  8:15 ` Denis Pithon
  0 siblings, 2 replies; 21+ messages in thread
From: Lucas Tanure @ 2014-05-03 10:10 UTC (permalink / raw)
  To: kernelnewbies

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 script

tanure at archNote  email $ cat sender.py
#!/usr/bin/python3
from smtplib import SMTP
from itertools import chain
from errno import ECONNREFUSED
from mimetypes import guess_type
from subprocess import Popen, PIPE
from email.mime.base import MIMEBase
from email.mime.text import MIMEText
from socket import error as SocketError
from email.mime.multipart import MIMEMultipart
from os.path import abspath, basename, expanduser
import getpass

# Define ID
id_eudyptula = '[404ba4c8fd16]'

# Define email addresses to use
addr_to   = 'little at eudyptula-challenge.org'
addr_from = 'tanure at linux.com'

# Define SMTP email server details
smtp_server = SMTP("smtp.gmail.com",587)
smtp_user   = 'ltanure at gmail.com'
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 msg


def send_email(subject, text, files):
    # Prepare Message
    msg = MIMEMultipart()
    msg.preamble = subject
    msg.add_header("From", addr_from)
    msg.add_header("Subject", id_eudyptula + ' ' + subject)
    msg.add_header("To",addr_to)

    # Attach the main text
    msg.attach(MIMEText(text))

    # Attach any files
    [msg.attach(mimify_file(filename)) for filename in files]

    # Contact local SMTP server and send Message
    try:
        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'])
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20140503/d738778b/attachment.html 

^ permalink raw reply	[flat|nested] 21+ messages in thread
* [Eudyptula Challenge] Not receiving tasks.
@ 2014-05-16 13:20 Eduardo Barretto
  2014-05-16 13:29 ` Julio Faracco
  0 siblings, 1 reply; 21+ messages in thread
From: Eduardo Barretto @ 2014-05-16 13:20 UTC (permalink / raw)
  To: kernelnewbies

Hello everybody!

I've sent Task 03 a week agora and now answer from little.
I've sent the results twice and also an email asking if there was any
problem, but still no answer.

Are any of you still having this problem?

Best Regards,

Eduardo

^ permalink raw reply	[flat|nested] 21+ messages in thread

end of thread, other threads:[~2014-05-17  0:10 UTC | newest]

Thread overview: 21+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-05-03 10:10 [Eudyptula Challenge] Not receiving tasks Lucas Tanure
2014-05-03 12:27 ` Greg Freemyer
2014-05-03 12:32   ` Lucas Tanure
2014-05-03 14:59   ` Kai Bojens
2014-05-05  8:15 ` Denis Pithon
2014-05-05 11:30   ` Lucas Tanure
2014-05-05 13:19     ` Denis Pithon
  -- strict thread matches above, loose matches on Subject: below --
2014-05-16 13:20 Eduardo Barretto
2014-05-16 13:29 ` Julio Faracco
2014-05-16 13:36   ` Eduardo Barretto
2014-05-16 13:38     ` Eduardo Barretto
2014-05-16 13:38     ` leo kirotawa
2014-05-16 13:42       ` Lucas Tanure
2014-05-16 13:45         ` Sudip Mukherjee
2014-05-16 13:47           ` Lucas Tanure
2014-05-16 14:06             ` Sudip Mukherjee
2014-05-16 21:49               ` Kai Bojens
2014-05-17  0:10                 ` Julio Faracco
2014-05-16 14:13       ` Land Ho
2014-05-16 14:17         ` Lucas Tanure
2014-05-16 14:19         ` Eduardo Barretto

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).