To make your own script, you should be able to handle javascript and regular expressions.

When the login form of your webmail provider is like this,
<form action="https://logins.foo.com/login" method="post">
<input name="user">
<input name="passwd" type="password">
<input name="key" value="abc=12" type="hidden">
<input value="Login" type="submit">
</form>
the corresponding script is as below.
Save below codes as 'mymail.js'(or other name that ends with '.js')
And install it in WebMail Notifier preferences.
function initHandler(handler){
handler.name="MyMail";
handler.dataURL="http://welcome.foo.com";
handler.loginData=["https://logins.foo.com/login",
"user","passwd","key="+encodeURIComponent("abc=12")];
handler.mailURL="http://mail.foo.com";

handler.getData=function(aData){ //aData is a html source in dataURL
var fnd=aData.match(......); //find mail count
if(fnd){
var num;
//get mail count here
return num;
}else{
return -1;//display 'not checked' message
}
};
}
  • name : the provider name that wiil be shown in WebMail Notifier
  • dataURL : the url where you can get mail count
  • loginData : [formSubmitURL,usernameField,passwordField,additionalData]
    • formSubmitURL : action url of the login form
    • usernameField : input field name of username
    • passwordField : input field name of password
    • additionalData : other input fields data
  • mailURL : the url that will be opened when you click the icon or menuitem
  1. 이전 댓글 더보기
  2. Henrik M 2009.01.23 16:35 신고

    Ok. I'm not the best person to make a script, since I don't know JS, but I'm trying anyway.
    I've used the free.fr script as a base, since both it and my webmail.abo.fi run on horde.
    The problem is I have no idea how to find the var fnd=aData.match(......) input from the dataURL. I've looked att all the scripts here, but I never find the a.Data.match(...) input in the dataURL source code.

    My code looks as follows (the whole of the handler.getData part is from the free.fr script):
    function initHandler(handler){
    handler.name="AA Webmail";
    handler.dataURL="https://webmail.abo.fi/";
    handler.loginData=["https://webmail.abo.fi/horde/imp/login.php",
    "horde_user","horde_pass"];
    handler.mailURL="https://webmail1.abo.fi/horde/imp/";

    handler.getData=function(aData){
    var fnd=aData.match(/<span dir="ltr">Bo.te de r.ception \((\d+)\)&nbsp;<\/span>/); //nombre de mail non lu

    if(fnd)
    {
    return fnd[1];
    }
    else
    {
    var fnd_aucun =aData.match(/<span dir="ltr">Bo.te de r.ception&nbsp;<\/span>/); //aucun mail non lu
    if (fnd_aucun)
    {
    return 0;
    }
    else
    {
    return -1;//affiche message non verifie
    }
    }
    };
    }

  3. Felipe 2009.01.29 03:38 신고

    Hello fellows, I was just trying the script for SquirrelMail (posted above), everything went well, except for the notifications. The extension won't notify me of new e-mails. I don't know much about JS, so if someone could please help me find the mistake or correct the code, I would greatly appreciate it. Here it is (obtained from earlier post):

    function initHandler(handler){
    handler.name="UdeC";
    handler.dataURL="http://webmail.udec.cl/src/left_main.php";
    handler.loginData=["http://webmail.udec.cl/src/redirect.php","login_username", "secretkey", "just_logged_in=1"];
    handler.mailURL="http://webmail.udec.cl/src/webmail.php";
    handler.getData=function(aData){
    var fnd=aData.match(/<font color="#770000">INBOX<\/font><\/a><\/b>&nbsp;<small>\((\d+)\)<\/small>/);
    if(fnd){
    return fnd[1];
    }else{
    return -1;
    }
    };
    }

    Thanks in advance! Hope someone can give me a hand here. Cheers.

  4. dimidola 2009.02.09 05:41 신고

    Hey,
    love the code, used it for most my e-mails...
    Have a problem with Horde though...

    function initHandler(handler){
    handler.name="UOC";
    handler.dataURL="https://webmail.edu.materials.uoc.gr/horde/imp/";
    handler.loginData=["https://webmail.edu.materials.uoc.gr/horde/imp/login.php",
    "imapuser","pass","new_lang=el_GR","select_view=imp"];
    handler.mailURL="https://webmail.edu.materials.uoc.gr/horde/imp/mailbox.php?mailbox=INBOX";

    handler.getData=function(aData){
    var fnd=aData.match(/Inbox \((\d+?)\)/);
    if(fnd)
    {
    return fnd[1];
    }
    else
    {
    var fnd_aucun =aData.match(/Inbox/);
    if (fnd_aucun)
    {
    return 0;
    }
    else
    {
    return -1;//affiche message non verifi.
    }
    }
    };
    }

    that's my university's mail and I can't seem to make it work... When I right-click it will open the main page where I have to login. No way I can make it check my mail.. any thoughts???

  5. cpanel 2009.02.09 09:42 신고

    great add on. question- my webhost has its webmail pages on password protected pages, so when I wrote a js script to access the login page, an authentication (login / password) pop-up comes up first, b/c that page itself is protected. the only thing i could think of is to embed the login/password into the URL like: http://[USER]:[PASS]@http://webhost.com/webmail. is there a way to access the variable for USER/PASS inside the js? I could hardcode, but defeats the purpose a little.

  6. Dakshika Jayahitlaka 2009.02.26 04:35 신고

    Thank you very much.. I did this for our company mail

  7. Mersad 2009.03.03 23:49 신고

    Is it possible to access Firebug console or log what my script is doing (because I cant make it to work, so I need some way to debug it).

  8. 2009.07.03 14:57

    비밀댓글입니다

  9. 엉뚱뽀이 2009.07.08 09:50 신고

    안녕하세요? 덕분에 좋은 파폭 확장기능을 유용하게 사용하고 있습니다. ^^
    그런데 다름이 아니고 제가 웹메일알림이를 네이트(아이디는 라이코스)를 사용하는데 클릭하면 자동으로 메일 페이지는 열리더군요. 그런데 메일 확인은 안되네요. 네이트아이디가 아니라 통합계정인 라이코스아이디라서 그런걸까요? 만약 그렇다면 사용할 수 있는 방법이 있을까요? 바쁘신데 이런 질문 드려 죄송합니다. ^^

    • 밝은영혼 2009.07.08 12:39 신고

      죄송합니다. 제가 라이코스 아이디가 없어서 확인이 불가능하네요.

  10. fishpen0 2009.07.24 12:01 신고

    Hi, my university uses Microsoft Outlook Web Access. I was wondering if there is a premade script for outlook based sites. If there isn't, can someone help me make one? The specific page for my school is email.easternct.edu.

  11. n5zhkyln 2009.08.25 04:55 신고

    I have the same problem as this guy here: http://tobwithu.tistory.com/14#comment1863724 .

    To work around it, I had to change the file "WebMailNotifier.js", adding these line to initHandlers function:
    if(obj.loginData[LOGIN_URL].match(/https:\/\/\[USER\]:\[PASS\]@.+/)) {
    obj.loginData[LOGIN_URL]=obj.loginData[LOGIN_URL].replace("[USER]", encodeURIComponent(obj.user))
    obj.loginData[LOGIN_URL]=obj.loginData[LOGIN_URL].replace("[PASS]", encodeURIComponent(obj.password))
    }

    Those line goes right before this line:
    var post=(obj.loginData[LOGIN_DATA]?obj.loginData[LOGIN_DATA]:"");

    And then I created a user script like this:
    function initHandler(handler) {
    handler.name = "My Webmail Name";
    handler.dataURL = "https://my.webmail.server/exchange/?Cmd=contents&ShowFolders=1";
    handler.loginData = [
    "https://[USER]:[PASS]@my.webmail.server/exchange/"
    ];
    handler.mailURL = "https://my.webmail.server/exchange/";

    handler.getData = function(aData) {
    var fnd = aData.match(/inbox\.gif(.+)outbox\.gif/i);
    if (fnd) {
    fnd = fnd[1].match(/\((\d+)\)/);
    return (fnd ? fnd[1] : 0);
    }
    else {
    return -1;
    }
    };
    }

    Mr. Byungwook Kang, I wonder if you could add those three lines to Webmail Notifier, please.
    Otherwise, every time the add-on needs an update, I have to add those line again.

    Anyway, thank you so much for your magnificent add-on!

    • 밝은영혼 2009.08.26 08:47 신고

      No modification needed.

      Just use this.

      handler.loginData = [
      "https://"+handler.user+":"+handler.password+"@my.webmail.server/exchange/"
      ];

  12. Anon 2009.09.05 02:24 신고

    The preference get automatically deleted. How to solve this problem.

  13. dimidola 2009.09.07 19:18 신고

    Hey, I'm just wondering if there might EVER be a reply to my post... My problem remains and I can't seem to find the problem... All I get is access to the main intro page where I have to input my name and pass... Can ANYONE help??

    (check previous post from dimidola to check my code)

  14. Jack 2009.10.01 02:49 신고

    Thanks for Webmail Notifier.

    However, I have a small issue with Gmail. WN correctly checks and reports unread mail as expected, but remains logged into Google instead of logging off. It does not do so with other accounts, such as Yahoo.

    Is there a way to ensure that it logs off from Google automatically?

    • 밝은영혼 2009.10.01 09:10 신고

      It's because of iGoogle.
      Some people use iGoogle as startup page, and don't want to be logged off from it.

      Log off from iGoogle, and restart firefox.

  15. Jack 2009.10.09 02:04 신고

    Thanks for your reply.

    Fortunately or not, I do not use iGoogle, nor am I logged into it.

    I think the issue is at FF startup, and there are existing tabs to be opened and one is on a Google page or cached page, when WN logs in to check the mail the login is preserved. With new tab to Google (news, for example) the users is logged in. This is undesired. This is not as with others, eg., Yahoo. Maybe WN should wait until all existing tabs are loaded, then check mail made as a setting in Preferences?

  16. yrht 2009.10.16 23:42 신고

    trhtrh

  17. peter 2009.10.22 19:59 신고

    Is it possible to write a loginscript vor roundcoube mail?
    http://mail4us.homeip.net:7777/mail/
    user: tester
    password: roundcube
    thanks a lot for your help

  18. Jack 2009.10.23 22:37 신고

    Hello. Any response to the persistent login with Google issue as related on 2009/10/01 02:49. Thanks.

  19. Randy Thiesen 2009.10.31 10:04 신고

    I'm having trouble with the check hotmail since I downloaded Firefox 3.5.4. It doesn't check my hotmail at all. It just says Hotmail not checked

  20. Felipe.- 2009.12.27 09:23 신고

    Mr. Byungwook Kang:

    Please make a working script for SquirrelMail, me and many others would greatly appreciate it.

    Thanks in advance!

    Happy holidays.

  21. Verit 2009.12.29 12:03 신고

    Hi, I need use Zoho.com mail... how can somebody help me using this add? Is it possible? Please, help me.


This is a user script for fastmail.fm
If you want to use fastmail.fm in WebMail Notifier, install this script.

  1. Matt 2007.11.14 01:19 신고

    This script no longer works...

  2. 2008.07.05 12:56

    비밀댓글입니다

  3. mimi 2010.09.15 14:41 신고

    can some onw help me to create webmail with this details i try but not responding

This is a user script example.


Above is a script library.
If you install this library script, WebMail Notifier will become 'Web Update Notifier'.
You can check the update of webpage with WebMail Notifier.
But this script does not work alone.


This script is for monitoring AMO.
You can check a new post in addons.mozilla.org

Install these two script. Then you will see the host name 'AMO' in the list.
Make a account.
Set username as the name of addon.
Set password as the addon number.(you can see the number in the url of addon.)

Now you can see the notificatio of WebMail Notifier when there is a new posting in AMO.
  1. itsmydime 2009.03.18 03:50 신고

    Firefox just downloaded latest version of Webmail notifier...now it doesnt check email addresses.. I have to manually do it and it doesnt show new mail....I then deleted and tried again..still not working~!

    Please advise

    itsmydime@hotmail.com

+ Recent posts