Hola,

('3 (RFC822.HEADER {2617}', 'Received: from gw.server.com ([10.10.10.1]) by
> remapost.server.net with Microsoft SMTPSVC(6.0.3790.3959);\r\n\t Mon, 5
> Apr 2010 14:55:45 -0500\r\nReceived: from correo3.cyberline.com.pe (
> mail30.aueraventuro.cxm.ee [211.62.156.1])\r\n\tby gw.server.com  with
> ESMTP id o35JsxnB00 9112\r\n\tfor <c...@server.com>; Mon, 5 Apr 2010
> 14:54:59 -0500\r\nReceiv
>
> Segun lo poco que entiendo, esta regresando una lista, una variable de esta
> lista es '3 (RFC822.HEADER {2617}', el segundo valor es todo el encabezado :
>
> 'Received: from gw.server.com ([10.10.10....'
> De ese segundo encabezado, existe la forma de unicamente extraer lo que se
> encuentre en "from:" para otra variable string ?
>

google < mail header parser python

http://code.activestate.com/recipes/577128-working-with-an-emails-headers/

--
Reynaldo
_______________________________________________
Python-es mailing list
Python-es@python.org
http://mail.python.org/mailman/listinfo/python-es
FAQ: http://python-es-faq.wikidot.com/

Responder a