SMTP RFC 822 parsing

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • vsmsc
    New Member
    • Oct 2007
    • 1

    #1

    SMTP RFC 822 parsing

    Hi all,
    I'm using subethasmtp api for receiving SMTP messages. The format is actually

    RFC 822:
    MAIL FROM: aaa@xxx.yyy.com \r\n
    250 Sender ok\r\n
    RCPT TO: xxx@yyy.zzz.com \r\n
    250 Recipient ok\r\n
    DATA\r\n
    354 Enter mail, end with "." on a line by itself\r\n
    Subject: \r\n
    TO: xxx@yyy.zzz.com \r\n
    Some text.\r\n
    .\r\n

    My question is how I can parse the DATA. When using the MimeMessage class, the text is not parsed (or maybe I am doing something wrong).
    Thank you.
  • heat84
    New Member
    • Nov 2007
    • 118

    #2
    Whats the point in parsing? Why not get the e-mail using java mail package and do whatever you want to do .

    Comment

    Working...