Search The ForumSearch   RegisterRegister  LoginLogin

MailBee Objects

 AfterLogic Forum : MailBee Objects
Subject Topic: Error when encoding " ? Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
tim
Newbie
Newbie


Joined: 01 June 2007
Location: Denmark
Online Status: Offline
Posts: 31
Posted: 08 April 2008 at 5:55am | IP Logged Quote tim

I'm doing a oMSG.EncodeHeaderText(HeaderName, HeaderText, 'iso-8859-1', 2) on the FROM field.

If I encode this:

"C.Travel (Customer DEB0062) cw@cronustravel.com"<accounting@matriks.com>

I get this:

From: =?iso-8859-1?Q?"Cronus_Travel__(Customer_DEB0062)_c?=
     =?iso-8859-1?Q?w@cronustravel. com"?=<accounting@matriks.com>

and it does not display correctly in outlook 2007.

If I encode this (removing the "):

C.Travel (Customer DEB0062) cw@cronustravel.com<accounting@matriks.com>

I get this:

From: =?iso-8859-1?Q?C.Travel__(Customer_DEB0062)_cw@cron?=
     =?iso-8859-1?Q?ustravel.com?=& lt;accounting@matriks.com>

and it displays correctly in outlook 2007

I'm using 5.5.0.121.

Any ideas? Are the "'s safe to omit?
Back to Top View tim's Profile Search for other posts by tim
 
Andrew
AfterLogic Support
AfterLogic Support


Joined: 28 April 2006
Location: United States
Online Status: Offline
Posts: 1189
Posted: 08 April 2008 at 6:09am | IP Logged Quote Andrew

Yes, it's safe to omit quotes. Moreover, we recommend you to reduce friendly name length because some mail clients may process lengthy friendly names incorrectly.

Best regards,
Andrew
Back to Top View Andrew's Profile Search for other posts by Andrew
 
tim
Newbie
Newbie


Joined: 01 June 2007
Location: Denmark
Online Status: Offline
Posts: 31
Posted: 08 April 2008 at 6:27am | IP Logged Quote tim

Andrew wrote:
Yes, it's safe to omit quotes. Moreover, we recommend you to reduce friendly name length because some mail clients may process lengthy friendly names incorrectly.

Best regards,
Andrew


However,

I put a , in the name like
"Cronus Travel, Inc. (Customer DEB0062) cw@cronustravel.com" the " is NOT safe to omit. Then the friendly name is omitted completely.
Back to Top View tim's Profile Search for other posts by tim
 
Andrew
AfterLogic Support
AfterLogic Support


Joined: 28 April 2006
Location: United States
Online Status: Offline
Posts: 1189
Posted: 08 April 2008 at 6:37am | IP Logged Quote Andrew

Of course if a friendly name contains a comma, omitting quotes is not safe. In such case you should use a short friendly name with quotes. If you use a long friendly name, the resulting string may be longer than 76 chars and so it'll be split to some lines according to MIME standard, but some mailers would have troubles with this.

Best regards,
Andrew
Back to Top View Andrew's Profile Search for other posts by Andrew
 
tim
Newbie
Newbie


Joined: 01 June 2007
Location: Denmark
Online Status: Offline
Posts: 31
Posted: 08 April 2008 at 6:49am | IP Logged Quote tim

Hmm. Dont know what to do then. Currently I cannot determine if it is your encode or outlook 2007's presentation that is flawed. Sometimes it works. Sometimes it fails. Very annoying.
Back to Top View tim's Profile Search for other posts by tim
 
iconbill
Valued Community Member
Valued Community Member


Joined: 07 March 2007
Location: Netherlands
Online Status: Offline
Posts: 76
Posted: 08 April 2008 at 7:08am | IP Logged Quote iconbill

Hi Tim,

I advise you to receive your test messages in different emailprograms because sometimes they have indeed problems with messages. (Outlook POP, G-Mail, Hotmail, Thunderbird).

ps Outlook 2003 IMAP is not working at all with international mails here
Back to Top View iconbill's Profile Search for other posts by iconbill
 
Alex
AfterLogic Support
AfterLogic Support
Avatar

Joined: 19 November 2003
Online Status: Offline
Posts: 2206
Posted: 08 April 2008 at 10:34am | IP Logged Quote Alex

We made another fix to the logic so that it can now produce lines with more than 76 characters. Although this is violation of MIME, it seems to be less evil than Outlook limitations.

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

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


Joined: 01 June 2007
Location: Denmark
Online Status: Offline
Posts: 31
Posted: 09 April 2008 at 1:07am | IP Logged Quote tim

Alex wrote:
We made another fix to the logic so that it can now produce lines with more than 76 characters. Although this is violation of MIME, it seems to be less evil than Outlook limitations.

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

Regards,
Alex


Great stuff!

I'll take it for a spin ;-)
Back to Top View tim's Profile Search for other posts by tim
 
tim
Newbie
Newbie


Joined: 01 June 2007
Location: Denmark
Online Status: Offline
Posts: 31
Posted: 09 April 2008 at 1:34am | IP Logged Quote tim

iconbill wrote:
Hi Tim,

I advise you to receive your test messages in different emailprograms because sometimes they have indeed problems with messages. (Outlook POP, G-Mail, Hotmail, Thunderbird).

ps Outlook 2003 IMAP is not working at all with international mails here


Yes, I normally test with outlook 2007 and gmail, and gmail seems to be the most compliant/forgiving of the 2.

However, our product (http://www.matriks.com/docs/ENU-Matriks-Mail-110-Fact-Sheet .pdf) typically needs to work with outlook since this is what this particular userbase employs. *sigh*


Back to Top View tim's Profile Search for other posts by tim
 
tim
Newbie
Newbie


Joined: 01 June 2007
Location: Denmark
Online Status: Offline
Posts: 31
Posted: 09 April 2008 at 1:35am | IP Logged Quote tim

Sorry, fixed link
Back to Top View tim's Profile Search for other posts by tim
 
tim
Newbie
Newbie


Joined: 01 June 2007
Location: Denmark
Online Status: Offline
Posts: 31
Posted: 09 April 2008 at 2:10am | IP Logged Quote tim

Btw, I cannoit regsvr32 this build. Gives me an DLLRegisterserver initialize error
Back to Top View tim's Profile Search for other posts by tim
 
tim
Newbie
Newbie


Joined: 01 June 2007
Location: Denmark
Online Status: Offline
Posts: 31
Posted: 09 April 2008 at 2:25am | IP Logged Quote tim

Ok,

I gmail it shows ok:
From: =?iso-8859-1?Q?"Cronus_Travel,_Inc.__(Customer_DEB0062)_cw@c ronustravel.com"?=<accounting@matriks.com>

I outlook 2007 it does not:
From: =?iso-8859-1?Q?"Cronus_Travel,_Inc.__(Customer_DEB0062)_cw@c ronustravel.com"?=<accounting@matriks.com>

But at least the string looks a lot simpler now, even though the result is the same.

Suppose I just have to shorten string somehow. This seems to be the only way to make outlook 2007 perform ok.
Back to Top View tim's Profile Search for other posts by tim
 
tim
Newbie
Newbie


Joined: 01 June 2007
Location: Denmark
Online Status: Offline
Posts: 31
Posted: 09 April 2008 at 2:43am | IP Logged Quote tim

I think I cracked it. Outlook 2007 is not sensitive to the friendly name lenghts I've been throwing at it.

It is sensitive to commas in long strings.
And it is sensitive to @'s even in short friendly names.

So no commas and @ it is then.
Back to Top View tim's Profile Search for other posts by tim
 
Andrew
AfterLogic Support
AfterLogic Support


Joined: 28 April 2006
Location: United States
Online Status: Offline
Posts: 1189
Posted: 09 April 2008 at 5:58am | IP Logged Quote Andrew

Quote:
Btw, I cannoit regsvr32 this build. Gives me an DLLRegisterserver initialize error


Were you able to resolve this? We've just successfully registered the new .dll again on several machines.

Best regards,
Andrew
Back to Top View Andrew's Profile Search for other posts by Andrew
 
tim
Newbie
Newbie


Joined: 01 June 2007
Location: Denmark
Online Status: Offline
Posts: 31
Posted: 10 April 2008 at 2:26am | IP Logged Quote tim

Andrew wrote:
Quote:
Btw, I cannoit regsvr32 this build. Gives me an DLLRegisterserver initialize error


Were you able to resolve this? We've just successfully registered the new .dll again on several machines.

Best regards,
Andrew


I just re-built my setup.exe with the new dll and installed it that way.
Back to Top View tim's Profile Search for other posts by tim
 

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