Skip to content

Instantly share code, notes, and snippets.

@lichengwu
Created January 12, 2013 10:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lichengwu/4517147 to your computer and use it in GitHub Desktop.
Save lichengwu/4517147 to your computer and use it in GitHub Desktop.
meituan mail script for x-notifier
/**********************************************************
mail.meituan.com
@author:lichengwu
@created:2013-01-11
@version:1.0
**********************************************************/
var name="Meituan Mail";
var ver="2013-01-11";
function init(){
this.dataURL="http://mail.meituan.com/zimbra/?client=standard";
this.loginData=["http://mail.meituan.com/zimbra.pl","login","password"];
this.mailURL="http://mail.meituan.com/zimbra";
this.viewURL="http://mail.meituan.com/"
}
function getCount(aData){
var fnd=aData.match(/Zimbra: Inbox \((\d+?)\)/); //nombre de mail non lu
if(fnd)
{
return fnd[1];
}
else
{
var fnd_aucun =aData.match(/Zimbra: Inbox/); //aucun mail non lu
if (fnd_aucun)
{
return 0;
}
else
{
return -1;//affiche message non verifie
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment