UPDATED FOR v0.2-stableCurrent Version: 1.1.1
This addon gives Roundcube the ability to change passwords, forward email and create vacation messages or also known as auto-responders.
Tested on Roundcube v0.2-stable and works.
Has been tested and works with cPanel 11 w/ X3 theme.
This addon does NOT require any additional libraries, such as curl. It works with pure PHP.
If you find this plugin/modification to Roundcube useful and would like to make
a donation via paypal. Please feel free to do so, send all donations to:
[email protected]Thanks.
Update:
v1.1.1 - Updated README for v0.2-stable
v1.1 - updated to work with v0.2-beta & Rev 2076.
v1.0 - initial release
Note:
- If you do not use the X3 theme for cPanel and your hosting provider uses a custom theme. Visit http://yourdomain:2095/ which is your webmail. Your site should forward to like http://yourdomain:2095/webmail//?login=1 once you log in. In your program/include/cpanel.php file you'll see a variable that says this 'var $path = "webmail/x3/mail";'. So replace x3 with .
Download: RoundCube Webmail Forum - RoundCube Forum Community Downloads - cPanel Addon (Password, Forward & Vacation) v1.1.1 (http://www.roundcubeforum.net/downloads.php?do=file&id=4)
I am not speak English....
Estimado, necesariamente tengo que usar el Cpanel para poder usar el vacation ??
Lo pregunto para saber de donde bajarlo.
At.
José.
QuoteI am not speak English....
Estimado, necesariamente tengo que usar el Cpanel para poder usar el vacation ??
Lo pregunto para saber de donde bajarlo.
At.
José.
Quote from: TranslationI am not speak English....
I'm guessing i need to use cPanel to use the vacation? I ask to know where to download it.
At.
José.
Hola, mi espanol es asi asi, pero si, para este modificacion usa cPanel para comunicar con los servicios. cPanel es una programa que necessitas pagar por, no es gratis. Los companias que vende espacio para la internet son los que tambien dar informacion para tu cPanel cuenta cuando compras espacio para la internet.
Roger.
Quote from: TranslationHello, my spanish is a little off, but yes, this modification uses cPanel to communicate with the services. cPanel is a program that you have to pay for, its not free. The web hosting companies are the ones that also give you information for your cPanel account when you buy web space.
Roger
This plugin sounds great! Many people on shared hosting are on Cpanel. Little question:
Does it work on the latest stable version of Roundcube as well? Or do I just have to try :-)
Quote from: emphyrio;12221This plugin sounds great! Many people on shared hosting are on Cpanel. Little question:
Does it work on the latest stable version of Roundcube as well? Or do I just have to try :-)
No, it doesn't work with the latest stable, it works with the latest development release of RoundCube. There has been many changes to the framework for roundcube, and i decided to do the latest development in anticipation of it becoming the newest stable release.
I haven't really had any problems with the development copy as of yet, but i really haven't used it a lot either, just every day use, checking once or twice a day.
Thanks, I'll install the latest development and try your plugin with that.
Quote from: emphyrio;12223Thanks, I'll install the latest development and try your plugin with that.
If you're unsure about the development copy, what I'd recommend doing is leaving the stable copy in place, install the development to a seperate folder and do the plugin.
That way if anything goes wrong, you won't loose your stable install.
Did exactly what you recommended: clean install in a new directory. The new tabs are available, unfortunately they don't seem to work. They all say they're succesfull after clicking Save, but the password remains unchanged, forwarder or vacation message aren't set.
I think it's because Bluehost doesn't use X3 theme, but it has a custom developed 'bluehost' theme for Cpanel 11.
Do you have any pointers how I can make the necessary changes to your scripts? I'd love to get it working.
Quote from: emphyrio;12240Did exactly what you recommended: clean install in a new directory. The new tabs are available, unfortunately they don't seem to work. They all say they're succesfull after clicking Save, but the password remains unchanged, forwarder or vacation message aren't set.
I think it's because Bluehost doesn't use X3 theme, but it has a custom developed 'bluehost' theme for Cpanel 11.
Do you have any pointers how I can make the necessary changes to your scripts? I'd love to get it working.
There's a class that you'll need to change a bit. Look at:
program/include/cpanel.php
You should see the following line:
var $path = "webmail/x3/mail";
It does not use the normal cPanel, it uses the webmail cPanel. For example, when i visit my webmail, http://www.example.com/webmail it forwards me to http://www.example.com:2095/
Once i successfully log in, it forwards me:
http://www.example.com:2095/webmail/x3/
Now hovering over any of the links across the bottom, for example, forwarding options, shows that it goes to:
http://www.example.com:2095/webmail/x3/mail/fwds.html
which is where the mail at the end comes from at the end of that $path variable.
I just had to change 'x3' to 'bluehost' for $path and I was done :)
Thanks! It works like a charm!
Thanks for this, I have been looking for the Auto-Responder for quite some time. Can you tell me what the "Server" field is on the latest SVN, or where I can get the documentation on the SVN releases? Sorry if this is posted in the wrong forum.
Any help is appreciated.
Quote from: blair.sawler;12266Thanks for this, I have been looking for the Auto-Responder for quite some time. Can you tell me what the "Server" field is on the latest SVN, or where I can get the documentation on the SVN releases? Sorry if this is posted in the wrong forum.
Any help is appreciated.
What server field are you talking about?
Quote from: Nemesis02;12267What server field are you talking about?
It is on the main login screen. I have attached a screen capture.
Thats if you don't have the config set to a static server, it'll show that. Since i have mine on static, it doesn't show.
Quote from: Nemesis02;12269Thats if you don't have the config set to a static server, it'll show that. Since i have mine on static, it doesn't show.
Okay, thanks. The Stable version does not do that. Do you know where you set the static server?
Quote from: blair.sawler;12272Okay, thanks. The Stable version does not do that. Do you know where you set the static server?
Nevermind. Duh! I found it, was too late last night when I was working on this.
I will try implementing your plug-in now.
Thanks!
That works great. Thanks so much!
I had the password plugin before this, but had always wanted the "Auto Reply" the forwarding tab is just a bonus!
Do you know how you could auto-fill in the fields Sender and Subject?
Ideally I would like to have "Sender" have the name from the Identidies, or their E-mail address by default.
In the Subject Field, it would be great to have [Out of Office] %subject%
Thanks again!
-Blair
Quote from: blair.sawler;12275That works great. Thanks so much!
I had the password plugin before this, but had always wanted the "Auto Reply" the forwarding tab is just a bonus!
Do you know how you could auto-fill in the fields Sender and Subject?
Ideally I would like to have "Sender" have the name from the Identidies, or their E-mail address by default.
In the Subject Field, it would be great to have [Out of Office] %subject%
Thanks again!
-Blair
Unfortunately, the email part of the auto-responder cannot be changed, it uses your default cPanel account to set it up. You can set the subject as [Out of Office] %subject%, it shuld take it, and I can take a look at having a drop down menu for the sender for identities.
Quote from: Nemesis02;12278Unfortunately, the email part of the auto-responder cannot be changed, it uses your default cPanel account to set it up. You can set the subject as [Out of Office] %subject%, it shuld take it, and I can take a look at having a drop down menu for the sender for identities.
Thanks, what about passing a tag to insert in-front of the subject?
Is it possible to use this plug-in without cpanel?
Quote from: jcip;12366Is it possible to use this plug-in without cpanel?
No, this plugin requires the use of the cPanel backend to interact with the email systems, sorry.
Quote from: jcip;12366Is it possible to use this plug-in without cpanel?
I've been applying the patch without using cPanel, but I'm still working with the password plugin because I had some problems.
It's no so difficult to change the password, I removed the lines which refers to cPanel and added a query to my database (mysql) in password.inc file:
$cons =
"UPDATE " . $rcmail_config['mydb_table_users'] .
" SET password=. crypt($new_password).
"\" WHERE email=\"" . $_SESSION['username'] ."\";" ;
$link=mysql_connect('localhost',$rcmail_config['mydb_user'],$rcmail_config['mydb_password']);
mysql_select_db($rcmail_config['mydb_db_name'],$link) or die("Error al abrir la Base de Datos");
mysql_query($cons,$link);
mysql_close($link);It's also necessary to create a new file named mydb.inc.php into config folder and fill it with the info of your database, the variables will be similar to the db.inc.php ones. After that, include this file in the beginning of password.inc.
This updates the database perfectly but there's some problem after that, because user logs out. I think it's a problem of this line, [FONT="Courier New]$_SESSION['password'] = encrypt_password($new_password);[/FONT] , but I don't find the problem and I'm almost sure it is not related to the cPanel.
any idea?
Thanks
i installed the MOD... works like a charm... awesome tool!!!
I have noticed however that my email folders are no longer present... just the INBOX folder...
any idea on what could of caused this?
No, i've installed this many several times just to test it when following the instructions, and haven't had a problem. Try re-installing roundcube and re-installing the mod, i'd try doing it in another location, and if that one ends up working, overwrite your old one with it.
can anyone throw together a quick script will LOG if a password change has been made... i don't the new password to be logged, just the change itself... preferably in a separate file from the other two logs
thanks
hello guys i have been trying to install the plug in in a non cpanel install but had no luck so far! has any of you work it out yet? would love to know how!
cheers
ps: i'm runing round cube on a Xserve but if you had luck installing this plug in on a linux system i'm interested too
:confused:
Quote from: sickthor;13738hello guys i have been trying to install the plug in in a non cpanel install but had no luck so far! has any of you work it out yet? would love to know how!
cheers
ps: i'm runing round cube on a Xserve but if you had luck installing this plug in on a linux system i'm interested too
:confused:
This mod is designed specifically to be used w/ cPanel, it does not work with anything else. Its made for people who are on shared hosting.
Is there an easy way to do this without cpanel. I'm just running Ubuntu 8.04/Apache/Postfix/Dovecot.... This feature is a deal breaker for the company...ughh..
Thanks Nemesis02, you are the best.
I can not use RC without addons like this.
HJ
hello, I've tried installing this addon. I check the cpanel.php file probably 20 - 30 times and I believe I have it correct. when i go to options though I see the three tabs but when I click on them it sends me back to the main pref page. not sure whats going on there. any suggestions would help.
I managed to get the GUI all setup for 0.2 beta but the cpanel.php file isn't working. I think it's not picking up the username and password. Any resolution? Hmmmm
My scenario is like this:
My hosting comes with cPanel 11 and a default selection menu when you access the email via //www.xxxxxxxxx.com/webmail => //www.xxxxxxxxx.com:2096
I installed a stand-alone client and intend to put in this functionality into the new Roundcube stand-alone client. So far all the installation works fine, but I can't figure out how to work the cpanel.php file properly.
Quote from: saosangm;14488I'm using the latest version of RC, when I click on password button, I get the blank page and I walk into errors log file, there are these lines:
[06-Oct-2008 16:49:33] PHP Fatal error: Call to undefined function get_form_tags() in /home/xmail/program/steps/settings/password.inc on line 37
[06-Oct-2008 16:52:52] PHP Fatal error: Call to undefined function get_form_tags() in /home/xmail/program/steps/settings/password.inc on line 37
Please help me
saosangm - i was getting similar results and found the solution in the related thread as it relates to .2-beta. this is an incredible plugin. my thanks to Nemesis02. contribution to follow when my clients thank me with cash.
RoundCube Webmail Forum - RoundCube Forum Community Downloads - [v0.2] cPanel Addon (Password, Forward & Vacation) (http://www.roundcubeforum.net/downloads/plugins-patches/3/v0-2-cpanel-addon-password-forward-vacation-4/)
Quote from: tedateoperu;15310saosangm - i was getting similar results and found the solution in the related thread as it relates to .2-beta. this is an incredible plugin. my thanks to Nemesis02. contribution to follow when my clients thank me with cash.
RoundCube Webmail Forum - RoundCube Forum Community Downloads - [v0.2] cPanel Addon (Password, Forward & Vacation) (http://www.roundcubeforum.net/downloads/plugins-patches/3/v0-2-cpanel-addon-password-forward-vacation-4/)
I'll reload the newest version of roundcube and see bout the installation.
this es fine for Firefox but Internet explorer dont Work!!!! help me?
It looks like that some changes have been made to the SVN on how roundcube handles directing traffic around, I'll continue looking to see whats goin on. I installed it on the latest SVN which is 2076 for me.
After looking at the logs, I get this error msg:
Quote[Fri Nov 21 22:03:49 2008] [error] [client 127.0.0.1] PHP Notice: _doQuery: [Error message: Could not execute statement]\n[Last executed query: PREPARE mdb2_statement_mysql_605941167ffb529e51a96418663477b36f5367c14 FROM 'SELECT cache_id\\r\\n FROM cache\\r\\n WHERE user_id=?\\r\\n AND cache_key=?']\n[Native code: 2006]\n[Native message: MySQL server has gone away]\n in C:\\xampplite\\htdocs\\roundcube\\roundcubemail\\program\\include\\bugs.inc on line 101, referer: http: //localhost/roundcube/roundcubemail/?_task=settings&_action=identities
I'll continue looking.
Just so you all know, sorry about not responding sooner, this post should have been set on instant notification but the most recent notification i received was a few days ago.
Ok, the problem is in Rev. 1939 they deprecated the function rcube_add_label which was causing the problems i ran into. Besides that, following the instructions as said and the changes to the index.php it worked fine.
I'm going to make the changes needed and re-upload the file.
*UPDATE*
Ok, its been updated and reuploaded.
Quote from: ositobad4;15340this es fine for Firefox but Internet explorer dont Work!!!! help me?
What won't work in IE? I've tested the password changing myself and it works.
FYI - I have collected together a tutorial on my site about how to change email password for virtual users with multiple email domains without needing C-Panel.
Props goes to Nemesis02 and xul for the code !! :)
Change Roundcube Password (http://wheaties.us/blog/2008/12/21/change-password-roundcube/)
Quote from: wheaties82;15821FYI - I have collected together a tutorial on my site about how to change email password for virtual users with multiple email domains without needing C-Panel.
Props goes to Nemesis02 and xul for the code !! :)
Change Roundcube Password (http://wheaties.us/blog/2008/12/21/change-password-roundcube/)
Cool, thanks for the recognition :) Appreciate it.
Hi wheaties82!
I did it. Before that I had to add one field for password in database.
How I can change login to ask database for password?
I am not sure I understand your question -- depending on how your setup is configured the roundcube login should authenticate against the users and their respective passwords in your database. When you use the change password function it doesn't look up your password from the database again, rather it just gets the password from the current email session and checks against that password.
Please clarify what you are asking when you want to look up a user's password on login?
If you are asking how to configure roundcube to lookup usernames and passwords via a database, please refer to the Roundcube wiki found here: h t t p : / / t r a c . r o u n d c u b e . n e t / w i k i / H o w t o _ C o n f i g
Look where it says "Configuring for Virtual Users " about 1/2 way down the page. :)
OK. Obviously I have to start with question from the beginning. I've installed last version of RoundCube (roundcubemail-0.2-beta2) on my mail server (postfix, dovecot, poppassd, apache2, mysql, ...), and it work nice. You can try it on RoundCube Webmail :: Welcome to RoundCube Webmail (http://mail.cis.ac.me) with username "cubemail", password "1234"!
But, I need to install "change password" option for our users. I already have installed poppassd which work on port 106. I've tried to install addon "Plesk (poppassd) Password Change for 0.1.1" but it seems don't work on my version of RoundCube. Then, I tried to install "cPanel Addon" but I don't have cPanle :(
Last chance was to install what you suggest and I'm not shure that I understood you very well. I've applied new field for password in the table "users". Then I changed the line with sql command according with it. I got the encrypted password in the databases but nothing happened with the password from the current email session (id est linux password)!
Current instalation is with cPanel Addon only with options for password. So, what how ... I think you understand me :)
Thanks!
I have not figured out what is wrong, I am trying to use this but the tabs thing doesn't find it!
Hi,
My domain uses cPanel but this Plug in is not working normally when I change the password, it goes to http://webmail.xxxx.com/webmail/x3/mail/passwdpop.html?redirectdomain=&email=myname&domain=xxxxx.com
How do I change this path?
Regards,
Nitin
I can't use it. When I click on pass tab doesn't load, and the same with forwards and vacation.
Great plugin! I'm getting an error on the page that you set up forwarders. First the page appears stretched past the normal size and then I'm getting the following error:
[21-Mar-2009 03:59:18] PHP Warning: fputs(): supplied argument is not a valid stream resource in /home/guerbes0/public_html/email/program/lib/imap.inc on line 209
Here is the coding from that line:
function iil_PutLine($fp, $string, $endln=true) {
// console('C: '. rtrim($string));
return fputs($fp, $string . ($endln ? "\r\n" : ''));
I believe the stretch is from the error taking up to much space when it displays on the page.
Any thoughts?
Has anyone got this working on 0.2.1 and if so would you be willing to share your modified files?
Quote from: paullittrell;18100Has anyone got this working on 0.2.1 and if so would you be willing to share your modified files?
My RC is 0.2.2 and every thing works just fine (after that - a change 'X3' for 'bluehost' - it's a cPanel theme in my hoster)
Nemesis02 Thank you very much for mod. I'd like to make a donation, but PayPal have no good look for Russia and they're citizens. Sorry.
Has anyone been able to get this to work with RC 0.2.2? I know this thread indicates it works for 0.2 STABLE, but I was hoping to get (this great add-on) to work with the latest RC version.
My host uses CPanel 11.24.4 with the X3 theme... I installed the add-on and modified all the files. The problem I'm having is that while I can see the three tabs (Password, Forward, Vacation), nothing happens when I click on them - so I can't navigate to the content on the tab. I can still navigate to the standard tabs (Preferences, Folders, Identities) within the Personal Settings area of RC.
Any recommendations on how to make this work? Thanks in advance!
I know this is probably rushing this, but any news on compatibility with 0.3-stable?
Thanks!
-Blair
Please guide me how to install password plugin in new version 3.01 roundcube and activate it and how password can be changed ,.please please.. I wil be really greatful to you .. waiting .. hope i get my answer...
beatnik:
QuoteHas anyone been able to get this to work with RC 0.2.2? I know this thread indicates it works for 0.2 STABLE, but I was hoping to get (this great add-on) to work with the latest RC version.
My host uses CPanel 11.24.4 with the X3 theme... I installed the add-on and modified all the files. The problem I'm having is that while I can see the three tabs (Password, Forward, Vacation), nothing happens when I click on them - so I can't navigate to the content on the tab. I can still navigate to the standard tabs (Preferences, Folders, Identities) within the Personal Settings area of RC.
Any recommendations on how to make this work? Thanks in advance!
I got the same problem with beatnik..Why the tabs cannot work at all? Beatnik, are you have solved it yet? or anybody can help me solve it.. plz.. thanks...
Password changing is already implemented in RC 3.01. Take a look at this link, hope it will help you. http://www.roundcubeforum.net/api-based-plugins/5715-password-plugin-cpanel.html