Ignoring header stuff at start of message body?
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Steven_Branker
Posted On:   Wednesday, November 21, 2001 10:30 PM

Hi. When I get email from certain email clients it appends the following at the start of message body. Is there away to have JavaMail ignore all that other stuff and just send actual text in the body? X-Apparently-To: xhale@email.com via web10404; 21 Nov 2001 19:45:38 -0800 (PST) X-Track: 1: 40 Received: from femail5.sdc1.sfba.email.com (24.0.95.85) by mta447.mail.yahoo.com with SMTP; 21 Nov 2001 19:45:38 -0800 (PST) Received: from email.com([24.14.157.203]) by femail5.sdc1.sfba.email.com (InterMail vM.4.01.03.20 201-229-121-120-20010223) with ESMTP id <20011122034537.OQJ24213.femail5.sdc1.sfba.home.com@email.com> for ; Wed, 21 Nov 2001 19:45:37 -0800    More>>

Hi. When I get email from certain email clients it appends the following at the start of message body. Is there away to have JavaMail ignore all that other stuff and just send actual text in the body?


			
X-Apparently-To: xhale@email.com via web10404; 21 Nov 2001 19:45:38 -0800 (PST)
X-Track: 1: 40
Received: from femail5.sdc1.sfba.email.com (24.0.95.85)
by mta447.mail.yahoo.com with SMTP; 21 Nov 2001 19:45:38 -0800 (PST)
Received: from email.com([24.14.157.203])
by femail5.sdc1.sfba.email.com
(InterMail vM.4.01.03.20 201-229-121-120-20010223) with ESMTP
id <20011122034537.OQJ24213.femail5.sdc1.sfba.home.com@email.com>
for ; Wed, 21 Nov 2001 19:45:37 -0800
Message-ID: <3BFC74D0.5AC5DB3C@email.com>
Date: Wed, 21 Nov 2001 19:45:20 -0800
From: My Name
Reply-To: my@email.com
X-Mailer: Mozilla 4.75 [en] (WinNT; U)
X-Accept-Language: en
MIME-Version: 1.0
To: my@email.com
Subject: Test """"""
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
   <<Less

Re: Ignoring header stuff at start of message body?

Posted By:   MOA_javafanatic  
Posted On:   Monday, January 14, 2002 05:37 AM

What fixed it for me was trimming the subject string.

I had been doing this:

msg.setSubject ( subject );

but doing this prevented the header information from being displayed in the message body.

msg.setSubject ( subject.trim() );
About | Sitemap | Contact