Webmail Notifier est un plugin pour Firefox qui vous permet de vérifier l’arrivée de nouveaux messages sur vos différents comptes de messagerie.
Régler le temps de vérifications de vos comptes est Webmail Notifier vous préviendras par Pop-Up ou par un avertissement sonore de l’arrivée de nouveaux courriels.
Webmail Notifier supporte les messageries Hotmail, Gmail, Yahoo, Daum, Naver, Empas, etc.
Vous pouvez également créer vos scripts personnels si vous utilisez une messagerie différente.
Pour les utilisateurs des messageries Zenbe et Free (Zimbra) voilà les scripts à utiliser :
Pour Zenbe
/*
* File: zenbe_webmailnotifier_v2.js
* Date: 6/29/2008
* Author: Robert K. - Zenbe, Inc.
* Comments & suggestions: http://forums.zenbe.com/topic/87
*
* User script for the Firefox WebMailNotifier addon, available at
* https://addons.mozilla.org/en-US/firefox/addon/4490
*/
function initHandler(handler) {
var CLIENT = 'WebMailNotifier_2';
// Function for counting just the unread messages in the inbox
var COUNT_INBOX_ONLY = function(tagData) {
return /^Inbox$/.test(tagData.name) ? tagData.counts.unread_messages : 0;
};
// Function for counting all *unviewed* messages in the inbox and any other
// tags the user has. Note: This will more accurately notify you when there's
// new mail, but the
// message count shown in the notifier will not be very meaningful
var COUNT_ALL_UNVIEWED = function(tagData) {
return (/^Inbox$/.test(tagData.name) || tagData.user_id ) ? tagData.counts.unviewed_messages : 0;
};
// Zenbe.com configuration for MailNotifier addon
// See http://tobwithu.tistory.com/14 for details
handler.name ='Zenbe';
handler.dataURL = 'http://www.zenbe.com/tags.json?client='+CLIENT;
handler.mailURL = 'http://www.zenbe.com';
handler.loginData = ['https://www.zenbe.com/sessions.json?client='+CLIENT, 'login', 'password', 'remember_me=1'];
// Set the counting logic to use
handler.tagCounter = COUNT_INBOX_ONLY;
handler.getData = function(aData) {
// Turn JSON data into an object (array of tag info)
aData = eval('(' + aData + ')');
// Return -1 if we can't don't have tag data (for whatever reason)
if (!aData || !aData.tags) return -1;
// Calculate message count
var count = 0;
for (var i = 0; i < aData.tags.length; i++) count += this.tagCounter(aData.tags[i]);
return count;
};
} |
Pour Free
function initHandler(handler){
handler.name="Zimbra Free";
handler.dataURL="http://zimbra.free.fr/zimbra/?client=standard";
handler.loginData=["http://zimbra.free.fr/zimbra.pl","login","password"];
handler.mailURL="http://zimbra.free.fr/zimbra";
handler.getData=function(aData){
var fnd=aData.match(/Zimbra: Inbox \((\d+?)\)/); // nombre de mails non lus
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 le message "non verifié"
}
}
};
} |
Un plugin que j’ai découvert il y a quelques temps est que j’ai adopté immédiatement.






Commentaires