Roundcube Community Forum

News and Announcements => General Discussion => Topic started by: pgy on April 17, 2009, 03:54:49 AM

Title: Rouncube webmail notifier
Post by: pgy on April 17, 2009, 03:54:49 AM
Does any has a firefox/mozilla add-on for RoundCube email manager, which can receive new mail notifications?
Title: Rouncube webmail notifier
Post by: Julius Caesar on April 17, 2009, 04:38:38 AM
RC is a email client, not a server. You can use any notifier that uses your mailserver to determine if there is a new mail (which most notifiers do).
Title: Rouncube webmail notifier
Post by: pgy on April 20, 2009, 06:58:37 PM
Yes, I'm thinking if there is any like Gmail notifer program which connects through the http protocol and can monitor new emails arriving.

so I think it needs a dedicated roundcube notifer program, the Gmail notifer doesn't work for roundcube web client.
Title: Rouncube webmail notifier
Post by: Julius Caesar on April 21, 2009, 03:40:03 AM
Quote from: pgy;18572
so I think it needs a dedicated roundcube notifer program,

Think of RoundCube as a program like Outlook or Thunderbird. Mail arrives at your mailserver not your client. To use a notifier, you will have to check the server not the program.

So you need a notifier which check your IMAP mailserver. Unfortunately, there are no free configurable IMAP notifiers for Firefox yet.

A stand-alone notifier you can use is this (http://www.dynadvance.com/download.html#dynadvance-notifier) one.
Title: Rouncube webmail notifier
Post by: rosali on April 21, 2009, 10:01:37 AM
... I believe he thinks about a tool which connects to RC by http to use the check-recent request. Not bad, because it would be a bridge to connect to IMAP servers behind RC. Easily done by a simple hta (IE based) app ... sorry, I'm not skilled enough to code a real platform independent application.
Title: Rouncube webmail notifier
Post by: Julius Caesar on April 21, 2009, 10:22:13 AM
Quote from: rosali;18592
... I believe he thinks about a tool which connects to RC by http to use the check-recent request. Not bad, because it would be a bridge to connect to IMAP servers behind RC. Easily done by a simple hta (IE based) app ... sorry, I'm not skilled enough to code a real platform independed application.


Well he wants an add-on for Firefox, not a stand-alone notifier.
Title: Rouncube webmail notifier
Post by: pgy on April 22, 2009, 03:25:57 AM
connecting to IMAP server directly is one option, but sometimes the IMAP server port is not open to outside.

If you check this extension of firefox "Gmail Manager" tLo : Gmail Manager (http://www.longfocus.com/firefox/gmanager/),  it check new emails through the http not IMAP, what I need is the same program like the "Gmail Manager" but not check gmail, instead it is to check RoundCube mail.
Title: Rouncube webmail notifier
Post by: dano on April 22, 2009, 12:30:37 PM
Quote
                 connecting to IMAP server directly is one option, but sometimes the IMAP server port is not open to outside.

Sounds like the server administrator's don't want you to to be able to do so.

Either way what you're looking for is not specific to Roundcube at all it's simply a FF extension for email notification.  You should be looking at FF addons. (https://addons.mozilla.org/en-US/firefox)  But if you can't connect using IMAP or POP3 then it's not likely you'll find one anyways.
Title: Rouncube webmail notifier
Post by: jonie on October 15, 2009, 02:59:46 PM
RC is the command line interpreter for Version 10 Unix and Plan 9 from Bell Labs operating systems. It resembles the Bourne shell....
Title: Rouncube webmail notifier
Post by: neon on January 14, 2010, 03:24:59 AM
Sorry to dig up that old thread, but it wasn't answered and I feel like nobody here really understood, what pgy wanted to know.

pgy was asking how to configure the Firefox Webmail Notifier plugin for Roundcubemail.

WebMail Notifier - Notifier for gmail, yahoo, hotmail and more (http://webmailnotifier.mozdev.org/)

This is exactly the problem that I have.

What this plugin does, is creating an url, containing the user ID and password and send it to a webmail frontend to check frequently if there are new mails. This is mostly needed, when you are sitting behind a company's firewall where you can only use the HTTP ports.

Firefox Webmail Notifier plugin works with user customized js-scripts, that have to be configured to match the syntax of the webmail-frontend that's installed on the Mail-Server.

Here is an example for Lycos:


Code: [Select]
/**********************************************************
Lycos
**********************************************************/
var name="Lycos";
var ver="2009-01-06"

function init(){
  this.hostString="";
  this.dataURL="http://mail.lycos.com/lycos/Welcome.lycos";
  this.loginData=["https://registration.lycos.com/login.php?m_PR=27","m_U","m_P","m_CBURL="+encodeURIComponent("http://mail.lycos.com")];
  this.mailURL="http://mail.lycos.com/lycos/Index.lycos";
}
function getCount(aData){
  var fnd=aData.match(/You have <font.+?>(\d+?)<\/font> new message/);
  if(fnd){
    return fnd[1];
  }else{
    return -1;
  }
}


So, does anyone know how the syntax of the roundcubemail login interface url looks like?
Title: Rouncube webmail notifier
Post by: rosali on January 14, 2010, 07:47:42 AM
We have to code a plugin for that. Please remember me in a week or so ...

Here is what Squirrelmail does:

/**********************************************************
SquirrelMail
  * Enable Unread Message Notification in Folder Preferences
**********************************************************/
var name="Squirrel";
var ver="2009-01-13"
var needServer=true;

function init(){
  if(this.server){
    if(this.server.indexOf("http")!=0)this.server="http://"+this.server;
    if(this.server.charAt(this.server.length-1)=="/")this.server=this.server.substring(0,this.server.length-1);
  }else if(this.user.indexOf("@")!=-1)this.server="http://mail."+this.user.split("@")[1];
  this.loginData=[this.server+"/src/redirect.php","login_username", "secretkey",];
  this.dataURL=this.server+"/src/left_main.php";
  this.mailURL=this.server+"/src/webmail.php";
}

function getCount(aData) {
  var fnd=aData.match(/left_main.php\?fold=INBOX.+?(?:.*?\((\d+)(?:\/\d+)?\).*?<\/small>)?<\/span>/);
  if(fnd) {
    return fnd[1]?fnd[1]:0;
  }else{
    return -1;
  }
}


It should be easy to show by a plugin request only the unread count of the Inbox and nothing else.
Title: Rouncube webmail notifier
Post by: neon on January 14, 2010, 08:03:08 AM
Thanks for your fast answer.

What do you mean with 'have to code a plugin'?

A plugin for roundcubemail? I have no access to the mailserver or the roundcubemail-configuration.
Title: Rouncube webmail notifier
Post by: rosali on January 14, 2010, 08:17:48 AM
Yes, a plugin for roundcubemail. If you don't have access to roundcubemail, your host has to install the plugin.
Title: Rouncube webmail notifier
Post by: SKaero on January 14, 2010, 08:48:34 AM
Or if you have hosting you could install your own copy of RoundCube.
Title: Rouncube webmail notifier
Post by: neon on January 14, 2010, 09:15:35 AM
;-)

In this case, it would be easier to forward my mails to my gmx-account, for which I have a script. That's no solution. I want to monitor my existing account.

I will ask the server admin if he would install a plugin. Otherwise it wouldn't be necessary to write it, except someone else needs it.

So I guess that there is no way to send user ID and password with an URL to roundcubemail?
Title: Rouncube webmail notifier
Post by: rosali on January 14, 2010, 10:19:55 AM
As you see here ... WebMail Notifier - Notifier for gmail, yahoo, hotmail and more (http://webmailnotifier.mozdev.org/scripts.html) ... all scripts (except Squirrelmail) are made for hosting services. The squirrelmail script would also fail if the host does not use the default skin or if there are some modification to the default skin in use.

So a script for Roundcube which parses the message count from the default skin output isn't a good solution.

Either you ask Roundcube devs (Roundcube Webmail (http://trac.roundcube.net)) to implement a request which returns just the messagecount or we do it by a plugin which could be part of the default Roundcube release (if devs accept the plugin of course).
Title: Rouncube webmail notifier
Post by: neon on January 14, 2010, 11:09:53 AM
I see, so it seems more complicated than I thought.

I asked the admin of the mail server and he said it's no problem to install a plugin when it's available. The Server will move to another platform during the next weeks, where the current version of RC is installed.

I Don't know if it's worth the effort, but the Notifier plugin is a good and easy to use tool, that can also handle multiple mail accounts and is updated frequently, so supporting it would be a good benefit in my opinion.
Title: Rouncube webmail notifier
Post by: mmaraghy on January 16, 2010, 02:13:58 PM
I would also be interested in having the webmail notifier plugin for firefox work with roundcube. It works really well with the services it currently supports, and it would be a nice addition for roundcube users.

rosali - do you think you could make a roundcube plugin and webmail notifier user script to make this work when you have time?
Title: Rouncube webmail notifier
Post by: rosali on January 17, 2010, 03:01:27 AM
I have it on my ToDo's for next weekend. This weekend I was busy with coding RSS plugin which will be released soon.
Title: Thanks
Post by: mmaraghy on January 17, 2010, 10:10:19 AM
Rosali - Thanks for putting the webmail notifier on your to do list. Looking forward to your RSS plugin, too.
Title: Webmail Notifier Plugin
Post by: rosali on January 19, 2010, 11:05:10 AM
Here is my first attempt. It is working great for me. Unzip into plugins folders and follow instructions:
Code: [Select]

/** USAGE
 *
 * #1- Register plugin (&quot;./config/main.inc.php ::: $rcmail_config['plugins']&quot;).
 * #2- Edit Webmail Notifier interface js script: ./plugins/webmail_notifier/scripts/roundcube.js
 * #3- Distribute roundcube.js to your users
 *
 **/
 
/** NOTICE
 *
 * #1- Designed for Webmail Notifier Firefox Addon 2.1 (http://webmailnotifier.mozdev.org)
 * #2- Edit $flag below (return unseen or recent count):
 * #3- Due to restrictions in Webmail Notifier plugin will not work if Roundcube is running
 *     on a test environment on localhost!
 *     ->Workaround for Windows: Fake hosts file
 *
 **/  
Title: Rouncube webmail notifier
Post by: rosali on January 20, 2010, 05:05:53 AM
Some completition:

Currently a browser check that the plugin is only active for Firefox is missing.

It is also planned to add a Preference Section:

Check Flag RECENT or UNSEEN
Get Webmail Notifier Addon
Get Webmail Notifer Client Script

Any other ideas about further setting options?

Also I plan to remove the options to choose what folders should be checked
from the client script. This job will be done by the usersettings php code.

Finally I will code the "Get Webmail Notifier Script" part to return a script code
that has not to be edited by the end user anymore.
Title: Rouncube webmail notifier
Post by: lacri on January 20, 2010, 05:07:14 AM
nice work rosali :) many thanks
Title: Rouncube webmail notifier
Post by: mmaraghy on January 20, 2010, 10:58:53 AM
works great. thanks for all your hard work on this.
Title: webmail notifier plugin is finished
Post by: rosali on January 21, 2010, 03:50:24 PM
Here is the final release.

There is no (easy) way to detect if webmail notifier firefox addon is installed. So, I display just display a customizable downlod link even it the plugin is already there.

Enjoy - it is bundled with MyRoundcube plugins.

EDIT: Attachment removed. Get plugin from http://myroundcube.googlecode.com
Title: Great!
Post by: mmaraghy on January 21, 2010, 06:27:40 PM
Rosali -

Very nice work as usual. The plugin works perfectly. I really like the feature that names the script with the provider name for download.

Thanks again.
Title: Rouncube webmail notifier
Post by: rosali on January 25, 2010, 05:12:28 AM
Webmail Notifier plugin is now available at WMN official website Get it! (http://webmailnotifier.mozdev.org/scripts.html)
Title: Rouncube webmail notifier
Post by: lacri on January 25, 2010, 05:59:11 AM
Wow Rosali thats now perfect with your last changes :)

Many thanks
Title: how to install
Post by: tparvais on February 01, 2010, 06:15:29 AM
sorry for this dummy question:

how to install ?

I unzip plugin in right directory, edit config.php and add the plugin in roundcube config_file.

I install the firefox plugin . what kind of email check type should i Use ? There is only POP3, that does not work (not HTTP....)

should I install the javascript script from roundcube plugin into firefox plugin ?

Tx
Title: Rouncube webmail notifier
Post by: rosali on February 01, 2010, 07:18:27 AM
Posted via Mobile Device

Install plugin, navigate into RC settings, download the script from there and add to firefox addon.
Title: Broken
Post by: mmaraghy on February 11, 2010, 10:46:58 AM
The webmail notifier stopped working for me. I updated to the latest Roundcube SVN - could that have done it?
Title: Rouncube webmail notifier
Post by: rosali on February 12, 2010, 03:30:09 AM
I use SVN r3239 and it works there. Could you please revert back and test. Let me know.
Title: Rouncube webmail notifier
Post by: mmaraghy on February 12, 2010, 08:13:07 AM
I reverted all the way back to the 0.3.1 release and it works fine. I also tried SVN r3266 but with no luck. I currently have r3240 running and the plugin works. Seems like something changed between r3240 (31Jan2010) and r3266 (12Feb2010) that is causing a bug in the plugin.
Title: Rouncube webmail notifier
Post by: rosali on February 12, 2010, 08:55:57 AM
I will look inside asap (not before mid of next week) ...
Title: Rouncube webmail notifier
Post by: rosali on February 15, 2010, 01:26:10 AM
There is a simple fix for that. We have to bind the plugin to new introduced "login" task:

webmail_notifier.php
Code: [Select]

public $task = &quot;login|mail|settings&quot;;

instead of ...
Code: [Select]

public $task = "mail|settings";
Title: Rouncube webmail notifier
Post by: rosali on March 12, 2010, 12:48:35 AM
There is no ring-home code or something similar in my code. I can't say if the Firefox Addon is responsible for that.
Title: Rouncube webmail notifier
Post by: TopQuark on July 18, 2010, 07:27:18 PM
Is this working in the latest Firefox 3.6.6 and latest Webmail Notifier?  I cannot get it to work.  Here's what I did:

1. Modified the config.inc.php file to replace the default "Mail4Us.net" to my "domain.net" provider.

2. Modified the roundcube.js script to change the var name to "domain.net" and weburl to "http://www.domain.net/webmail".

3. Uploaded everything to /var/www/roundcube/plugins/

4. Modified the file, main.inc.php, in /var/www/roundcube/config to add "webmail_notifier" in $rcmail_config['plugins'] array.

When I check on the email in Webmail Notifier, I am getting "not checked" message.  I know my roundcube configuration works because when I typed the url "http://www.domain.net/webmail/?_action=plugin.webmail_notifier", I am getting the correct number of new emails.

Thanks in advance.
Title: Rouncube webmail notifier
Post by: rosali on July 19, 2010, 12:22:48 AM
It works for me on 3.6.6. You should not edit the js file. Download it from settings section.
Title: Rouncube webmail notifier
Post by: sydneysolar on July 19, 2010, 03:05:02 PM
I can't say if the Firefox Addon is responsible for that.

______________________
solar panel (http://www.gpgsolar.com.au) solar house (http://www.gpgsolar.com.au)
Title: Rouncube webmail notifier
Post by: TopQuark on July 19, 2010, 10:23:26 PM
Quote from: rosali;28796
It works for me on 3.6.6. You should not edit the js file. Download it from settings section.


How can I miss that important step!  Big thanks! :D

Thanks for the script, by the way.  I think this script will become more popular now that Simple Mail addon for Firefox is no longer supported.
Title: Rouncube webmail notifier
Post by: psk on November 15, 2010, 02:29:51 AM
Quote from: rosali;28796
It works for me on 3.6.6. You should not edit the js file. Download it from settings section.


I can't download from setting section. I only can see the text (localized):

"Obtén el Plugin de Firefox para el Notificador de Webmail" (Get plugin...)
"Obtén el Script Notificador de Webmail para Firefox" (Get script...)

but I can't see any link for download, only the text...
Title: Rouncube webmail notifier
Post by: psk on November 15, 2010, 02:42:22 AM
Quote from: psk;31291
I can't download from setting section. I only can see the text (localized):

"Obtén el Plugin de Firefox para el Notificador de Webmail" (Get plugin...)
"Obtén el Script Notificador de Webmail para Firefox" (Get script...)

but I can't see any link for download, only the text...


I've needed access to setting section with Google Chrome and then I could see a little box for click and download the script.

It's a firefox addons, but I need Chrome for can configure it :D

Now work fine, thank you very much.

Regards!
Title: Rouncube webmail notifier
Post by: rosali on November 15, 2010, 03:48:00 AM
There should be icons right to the text. Click on the icons.
Title: Rouncube webmail notifier
Post by: RandomUsername on February 21, 2011, 12:57:42 PM
I'm not sure if this is due to an updated WMN addon or an updated RC plugin but my WMN no longer works.

If I right-click and choose "Check Now" when I hover over the icon it says "Home Mail: Not checked". Can anyone else confirm this or give some pointers on debugging it? I've reinstalled the addon and the script from RC.

Thanks.
Title: Rouncube webmail notifier
Post by: rosali on February 22, 2011, 12:17:25 AM
The new CSFR protection of the login procedure in Roundcube 0.5.1 is the culprit.

I have released an updated version @ Scripts - WebMail Notifier (http://webmailnotifier.mozdev.org/scripts/)