parameters: (received_header)
docstring: Helper function to grab the 'from' part of a Received email header.
docstring_summary: Helper function to grab the 'from' part of a Received email header.
docstring_tokens: Helper function to grab the from part of a Received email header .
function: def _get_received_from(received_header):
      """
      Helper function to grab the 'from' part of a Received email header.
      """
  
      received_header = received_header.replace('\r', '').replace('\n', '')
      info = received_header.split('by ')
      try:
          return info[0]
      except:
          ''
function_tokens: def _get_received_from ( received_header ) : received_header = received_header . replace ( '\r' , '' ) . replace ( '\n' , '' ) info = received_header . split ( 'by ' ) try : return info [ 0 ] except : ''