so get two strings: only headers, and the whole message.<br>find the length of the headers, and chop that off the beginning of the whole message:<br><br><blockquote style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;" class="gmail_quote">
message=whole_message[len(headers):None]</blockquote><div><br>You can omit the word None: it is just there for clarity purposes.<br></div><br><br><div><span class="gmail_quote">On 3 Apr 2007 12:36:10 -0700, <b class="gmail_sendername">
flit</b> <<a href="mailto:superflit@gmail.com">superflit@gmail.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hello All,
<br><br>Using poplib in python I can extract only the headers using the .top,<br>there is a way to extract only the message text without the headers?<br><br>like remove the fields below:<br>"<br>Return-Path:<br>X-Original-To:
<br>Received: from [<br>        by (Postfix) with ESMTP id B32382613C<br>        for  Tue,  3 Apr 2007 09:54:28 -0300 (BRT)<br>Date: Tue, 03 Apr 2007 09:52:15 -0300<br>From:  <@><br>To:<br>Subject: test<br>Message-Id:
<br>MIME-Version: 1.0<br>Content-Type: text/plain; charset="US-ASCII"<br>Content-Transfer-Encoding: 7bit<br>X-Mailer: Becky! ver. 2.24.02 [en]<br>X-UIDL: !Dn!!HKT!!/k<br>Status: RO<br>"<br>and only get this:
<br><br>this is a text message..<br>..<br><br>Thanks<br><br>--<br><a href="http://mail.python.org/mailman/listinfo/python-list">http://mail.python.org/mailman/listinfo/python-list</a><br></blockquote></div><br>