Rated 3 out of 5 stars

this is the OWA (Outlook Web Access) script I wrote for my company:

=======================================
function initHandler(handler)
{
handler.name="MyMail";
handler.dataURL="https://webmail.xxxx.com/owa/";
handler.loginData=["https://webmail.xxxx.com/CookieAuth.dll?Logon",
"username",
"password",
"flags="+encodeURIComponent("0")+"&curl=Z2Fexchange&forcedownlevel=0&formdir=1&trusted=0&SubmitCreds=Log+On"];
handler.mailURL="https://webmail.xxxx.com/owa";
handler.getData=function(aData){
var fnd="";
fnd=aData.match(/Inbox \((\d+)\)/);
if(fnd){
return fnd[1];
}
fnd=aData.match(/Inbox /);
if(fnd){
return 0;
}
return -1;
};
}
=======================================

This review is for a previous version of the add-on (1.5.3).