original_docstring: 
          generates a report out of a mail
  
          :param msg: email.parser.Message object
          :return: post: report.Report object
          
docstring: generates a report out of a mail
docstring_tokens: generates a report out of a mail
code: def make_report(self, msg):
          """
          generates a report out of a mail
  
          :param msg: email.parser.Message object
          :return: post: report.Report object
          """
          # get a comparable date out of the email
          date_tuple = email.utils.parsedate_tz(msg['Date'])
          date_tuple = datetime.datetime.fromtimestamp(email.utils.mktime_tz(date_tuple))
          date = (date_tuple-datetime.datetime(1970,1,1)).total_seconds()
  
          author = msg.get("From")  # get mail author from email header
          # :todo take only the part before the @
  
          text = msg.get_payload()
          post = report.Report(author, "mail", text, None, date)
          self.last_mail = date
          self.save_last()
          return post
code_tokens: def make_report ( self , msg ) : date_tuple = email . utils . parsedate_tz ( msg [ 'Date' ] ) date_tuple = datetime . datetime . fromtimestamp ( email . utils . mktime_tz ( date_tuple ) ) date = ( date_tuple - datetime . datetime ( 1970 , 1 , 1 ) ) . total_seconds ( ) author = msg . get ( "From" ) text = msg . get_payload ( ) post = report . Report ( author , "mail" , text , None , date ) self . last_mail = date self . save_last ( ) return post
short_docstring: generates a report out of a mail
short_docstring_tokens: generates a report out of a mail
comment: """
          generates a report out of a mail
  
          :param msg: email.parser.Message object
          :return: post: report.Report object
          """$SEP$# get a comparable date out of the email$SEP$# get mail author from email header$SEP$# :todo take only the part before the @