|
Hi i am making a webmail app in .Net using System.Net.Sockets. Its all working but i have no idea how to parse and remove the message headers e.g.
Return-Path: Received: from moutng.kundenserver.de ([212.227.126.184]) by mta03-svc.ntlworld.com (InterMail vM.4.01.03.37 201-229-121-137-20020806) with ESMTP id <20030823164514.RTXG14590.mta03-svc.ntlworld.com@moutng.k undenserver.de> for ; Sat, 23 Aug 2003 17:45:14 +0100 Received: from [212.227.126.148] (helo=mxng05.kundenserver.de) by moutng.kundenserver.de with esmtp (Exim 3.35 #1) id 19qbVq-0005eb-00 for mailto:x@x.com - x@x.com ; Sat, 23 Aug 2003 18:45:14 +0200 Received: from [66.35.110.10] (helo=web01.portalwebhosting.com) by mxng05.kundenserver.de with esmtp (Exim 3.35 #1) id 19qbVn-0008Bb-00 for x@x.com; Sat, 23 Aug 2003 18:45:12 +0200 Received: from mail pickup service by web01.portalwebhosting.com with Microsoft SMTPSVC; Sat, 23 Aug 2003 12:47:00 -0400 From: To: Subject: DotNetNuke - The Web of the Future New User Registration Date: Sat, 23 Aug 2003 12:47:00 -0400 Message-ID: <000401c36996$2c0a76c0$0a6e2342@portalwebhosting.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Mailer: Microsoft CDO for Windows 2000 Thread-Index: AcNpliwK5NmSpPJFQQut8EGNhjK/jA== Content-Class: urn:content-classes:message X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 X-OriginalArrivalTime: 23 Aug 2003 16:47:00.0156 (UTC) FILETIME=[2C0CE7C0:01C36996]
blah blah blah
Get things like subject, date, to and then hide the headers so it would be like this
Subject: DotNetNuke - The Web of the Future New User Registration blah blah blah
Could anyone help me?
Thanks, Mart.
|