Results 1 to 2 of 2

Thread: Urgent pop3 mail format

Hybrid View

  1. #1

    Thread Starter
    Lively Member AjayKumar's Avatar
    Join Date
    Nov 2003
    Location
    Noida
    Posts
    94

    Urgent pop3 mail format

    Hi,
    I have connected to my mail server through pop3.I got mails by using 'stat' command.Mail is coming in this format

    Top of message follows
    Return-Path:
    Received: from POOJA (prime-pci.com [127.0.0.1])
    by prime-pci.com (8.11.6/8.11.6) with SMTP id j3CARYB13847
    for ; Tue, 12 Apr 2005 15:57:34 +0530
    From: [email protected]
    thread-index: AcU/SdPNS3YDHF6QRH6pZfC35I+foQ==
    Thread-Topic: hi
    To:
    Subject: hi
    Date: Tue, 12 Apr 2005 15:54:36 +0530
    Message-ID: <[email protected]>
    MIME-Version: 1.0
    Content-Type: multipart/alternative;
    boundary="----=_NextPart_000_000D_01C53F77.ED8A9E70"
    X-Mailer: Microsoft CDO for Windows 2000
    Content-Class: urn:content-classes:message
    Importance: normal
    Priority: normal
    X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106
    Status: O

    This is a multi-part message in MIME format.

    ------=_NextPart_000_000D_01C53F77.ED8A9E70
    Content-Type: text/plain;
    charset="iso-8859-1"
    Content-Transfer-Encoding: 7bit

    hi

    ------=_NextPart_000_000D_01C53F77.ED8A9E70




    now i want to extract MessageID:,From:,To:,Date:.How can i do that in asp.net?Its urgent help plz
    HI ITs exciting!!!!!

  2. #2
    Frenzied Member dj4uk's Avatar
    Join Date
    Aug 2002
    Location
    Birmingham, UK Lobotomies: 3
    Posts
    1,131

    Re: Urgent pop3 mail format

    I'd look into regular expressions.

    For example you could return matches for the first single line that starts with "Subject:" to return the subject.

    HTH

    DJ

    If I have been helpful please rate my post. If I haven't tell me!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width