This is regarding a program using Javamail API
The program read POP mail with and without attachments.
I tried the program given in http://www.jguru.com/faq/view.jsp?
EID=26996
It works. But there is a small problem.
When the email is only text and no attachments, The complete header
and body is printed.
example output ....
<########### start of output #############>
Return-Path: <hello@...>
Delivered-To: a0015236-test@...
Received: (qmail 8825 invoked from network); 22 Jan 2003 12:20:47 -
0000
Received: from web13801.mail.yahoo.com (216.136.175.11)
by destination.com - 216.136.175.11 with SMTP; 22 Jan 2003
12:20:47 -0000
Message-ID: <200301232132047.68411.qmail@...>
Received: from [62.41.52.241] by web13801.mail.yahoo.com via HTTP;
Wed, 22 Jan 2
003 04:20:47 PST
Date: Wed, 22 Jan 2003 04:20:47 -0800 (PST)
From: Hello <hello@...>
Subject: test subj 3
To: test@...
Cc: cc@...
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
test body 3