Search The ForumSearch   RegisterRegister  LoginLogin

MailBee Objects

 AfterLogic Forum : MailBee Objects
Subject Topic: Subject is missing line break Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
macbuoy
Newbie
Newbie
Avatar

Joined: 29 June 2010
Location: United States
Online Status: Offline
Posts: 4
Posted: 29 June 2010 at 1:35pm | IP Logged Quote macbuoy

I'm using 5.2 via ColdFusion MX 7.
I'm retrieving messages and, sometimes, find that the subject given by Mailbee
is missing line breaks that the sending server has placed in the subject. I have
downloaded the message first in Thunderbird and get the following in the header:

Subject: test 2 test 2 test 2 test 2 test 2 test 2 test 2 test 2 test 2 test 2
test 2
test 2 test 2 test 2 te

But, when I use Mailbee to read this subject, the line break (CRLF) is missing
AND there is no single space in it's place. Mailbee gives me this:

test 2 test 2 test 2 test 2 test 2 test 2 test 2 test 2 test 2 test 2 test 2test
2 test 2 test 2 te

The subject the customer is sending is like this:

test 2 test 2 test 2 test 2 test 2 test 2 test 2 test 2 test 2 test 2 test 2
test 2 test 2 test 2 te

They have told me that the sending server will break long subjects up into multi
line. My application depends on the ability to match the received subject
exactly to what the customer reported. When Mailbee removes the CRLF, that is
fine but the missing space is a problem.

Is this possibly resolved in 5.8 and does my 5.2 license entitle me to 5.8?
Back to Top View macbuoy's Profile Search for other posts by macbuoy
 
Alex
AfterLogic Support
AfterLogic Support
Avatar

Joined: 19 November 2003
Online Status: Offline
Posts: 2206
Posted: 29 June 2010 at 2:28pm | IP Logged Quote Alex

You can get the latest version from http://www.afterlogic.com/updates/mailbee.zip

Yes, your license does entitle you to use 5.8 with your existing key.

The update may help although you should not there is no strict rule of joining lines in headers. In some cases, space should be removed or should be preserved. So it's not completely reliable to rely on certain behavior. It could be good idea to have the subject line stripped from whitespaces at all and saved in the database in such form. For instance, MIME often makes no difference between tab and space and can get a situation when the code stucks expecting space when tab was actually delivered.

Regards,
Alex
Back to Top View Alex's Profile Search for other posts by Alex
 
macbuoy
Newbie
Newbie
Avatar

Joined: 29 June 2010
Location: United States
Online Status: Offline
Posts: 4
Posted: 29 June 2010 at 2:40pm | IP Logged Quote macbuoy

Thanks! I'll try 5.8 and see if this changes.

I still think this is a bug. Subjects come into Thunderbird with this:

prefixCRLFspaceSuffix

But Mailbee gives it back as:

prefixSuffix

Basically, I'm fine with the CRLF being removed but other space being removed is
erroneously greedy of Mailbee.
Back to Top View macbuoy's Profile Search for other posts by macbuoy
 

If you wish to post a reply to this topic you must first login
If you are not already registered you must first register

  Post ReplyPost New Topic
Printable version Printable version

Forum Jump

Powered by Web Wiz Forums version 7.9
Copyright ©2001-2004 Web Wiz Guide