I know that this is an old thread, but I seem to have been travelling a well worn path to the conclusion that Webmail+OWA doesn't work with an Exchange 2007 server. In particular, Webmail+OWA is throwing exceptions becuase HTML "<BASE tags" are not being found:

From: dbarstis <[email protected]>
Date: May 15 2008, 1:11 pm
Subject: OWA and Exchange 2007
To: Thunderbird Webmail Extension
[...]
nsOWA.js: loginHandler : Exception : TypeError.
Error message: szResponse.match(kBaseURL) has no properties
162

From: Dejan <[email protected]>
Date: Feb 28 2009, 10:04 am
Subject: OWA - Exchange 2007 - Negative vibes
To: Thunderbird Webmail Extension
[...]
05:43:42 PM--nsOWA.js: loginHandler : Exception : ReferenceError.
Error message: kOWABaseAlt is not defined
186

I got similar errors when trying to use the "owa-0-7-0a36.xpi" package I downloaded from the newsgroup, so I checked out the sources from the CVS repository, under Linux, to have a look and see why this is happening:

  cd /usr/local/src
  cvs -d :pserver:guest:[email protected]:/cvs login
  cvs -z3 -d :pserver:[email protected]:/cvs co webmail

There is a "build.xml" file, so I used "ant" to rebuild the package:

  cd webmail/src/owa
  ant

So far so good - I can now rebuild the *.xpi package. I looked at the source code where the errors are reported in:

  owa/content/owa/OWA-ScreenRipper-POP.js

               case 1: //get base URL
                    try
                    {
                        mainObject.m_szBaseURL = szResponse.match(kBaseURL)[1];
                    }
                    catch(e)
                    {
mainObject.m_szBaseURL = szResponse.match(kOWABaseAlt)[1]; } mainObject.m_Log.Write("nsOWA - loginOnloadHandler - m_szBaseURL :" +mainObject.m_szBaseURL);

In my case "kBaseURLAlt" was not defined so I edited:

  owa/content/owa/OWA-Constants.js
  ...
  const kBaseURL = /<BASE href="(.*?)">/i;
  const kBaseURLAlt = /<BASE target="(.*?)">/i;
  ...

There are two formats of "<BASE" tag so I assume that the first exception is caught in case it is in the Alternative "<BASE target" tag. However, the constant had not been defined. In the case where the first "<BASE" tag was found an exception would not be thrown, and this must be the case for Exchange 2003 or the code would not work at all.

So I rebuilt the *.xpi package and installed it, but I quickly realised that no "<BASE tags" are actually generated by the Exchange 2007 server.

The more I look into the problem, the more I realise that the regular expressions defined in "OWA-Constants.js" are not appropriate for the Exchange 2007 OWA server. I've changed some of the regular expressions and managed to get TB+Webmail+OWA to login on an Exchange 2007 server, capture the URI of the OWA Inbox and the page number it is on, but I've not managed to read the email into TB.

Before I go any further with this project I'd like to know if anyone else is working on modifying the OWA Webmail addon source code for an Exchange 2007 OWA server?

Thanks,

  Tony.




-- 
You received this message because you are subscribed to the Google Groups 
"Thunderbird Webmail Extension" group.
To post to this group, send email to 
[email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/thunderbird-webmail-extension?hl=en.


Reply via email to