PDA

View Full Version : Email Level SquirrelMail Plugin



DirectAdmin Support
05-21-2009, 03:34 AM
Hello,

Version: 0.1.beta1

Due to numerous requests for it, I've taken the Email Level plugin for DirectAdmin, and turned it into a Squirrelmail Plugin.

The plugins has the same functionality as the DirectAdmin plugin.
- Shows the account usage, including the breakdown on the left, below the IMAP boxes.
- Link for "Change Password", and automatically updates the SM session password, so you don't get booted out after changing it.
- Link for "Vacation Message", allowing you to set, update and delete your vacation message through Squirrelmail.

Keep in mind I've never created a Squirrelmail plugin before, so forgive me if I didn't follow any of their rules for creating plugins (just let me know if you spot any violations).

Please don't email us about this plugin, it's provided "as-is", keep all discussion in this thread.

Do not submit this to www.squirrelmail.org. If and when it's time to do so, we'll do it.

If you wish to give the plugin a test drive, run the following:
cd /var/www/html/squirrelmail/plugins
wget http://files.directadmin.com/services/all/squirrelmail_plugin/directadmin-0.1.beta1.tar.gz
tar xvzf directadmin-0.1.beta1.tar.gz
chown -R webapps:webapps directadmin
cd ../config
./conf.plType 8 for Plugins.
Type in the number listed beside "directadmin", press enter.
Press Q to quit, and save the config.php (Y)

If you've got DA running in SSL, you'll need to tell the plugin, edit:
/var/www/html/squirrelmail/plugins/directadmin/include/config.php
set:
$da_ssl=true;

same idea for the $da_port value if needed.

If you update your version of SquirrelMail, you'll have to install this again.

Enjoy ;)

John

DirectAdmin Support
05-21-2009, 03:38 AM
Here is a screenshot for anyone wanting to know what it looks like.

getUP
05-21-2009, 05:25 AM
Great job John, looking good. Installation was straight forward, no errors at all. It does not work for main accounts though. Ie. using the username instead of the user@domain.com credentials.

Will this be included in custombuild if all tests work out?

DirectAdmin Support
05-21-2009, 01:49 PM
Yes, it will likely come with our SquirrelMail installs, once it's considered stable.

John

jca
05-22-2009, 11:00 PM
Nice, I love it thanks John, I really look forward to it to became stable, fix the little bugs (like the one getUP said) and be included in custombuild. Maybe include it either way via an extra option so if a new squirrelmail (or beta) comes out it automatically updates?

Thanks again

Jose

Alex1
05-25-2009, 04:06 AM
Here is a screenshot for anyone wanting to know what it looks like.
i try it but graphical issue regarding space don't work for me, i have only text

DirectAdmin Support
05-25-2009, 04:35 AM
If you have unlimited space, there will be no bars, as there would be no point to have a graphical representation of x/unlimited.

John

elvandar
05-25-2009, 11:34 AM
Hmm, fetching the tar.gz file, unpacking it, changing the owner and enabling it in the very latest squirrelmail (via the directadmin scripts) results in a blank page while trying to logon. Something that I did wrong?

hostpc.com
06-12-2009, 02:30 PM
We've got random customer complaints that the first login attempt fails, but then login with the exact same credentials the second time. I personally can't reproduce the issue, but we've got more than one unrelated customer complaint over it.

This is only after the plugin/upgrade to the latest squirrelmail version.

Thank you.

hostpc.com
06-12-2009, 02:54 PM
Just checked with one user experiencing the issue.

I disabled the DA plugin, same result. So I'm thinking it's got to be a squirrelmail related issue.

Anyone else experiencing this? Ideas?

keefe007
09-13-2010, 06:56 PM
Any idea why this doesn't work with the newest squirrelmail SVNs?

Keefe

harro
09-30-2010, 11:06 PM
it's now a year and a half later since this plugin was published - it this still the latest version and functions well with the current squirrelmail version?

Thanks for the info!

Kind regards,

Harro

In addition (tested it, still works fine) - when you have unlimited email space, it does not only leave out the graphics, but it shows the used space to 8 decimal points. That is perhaps a bit over the top :) (and doesn't fit in the column).

Is there a way to make it one decimal (or none)? Thanks for pointers!

Example:

Total Usage: 423.5546875 Meg
of: Unlimited

Inbox: 1.33984375 Meg
Spam: 8 Kb
Webmail: 0 Bytes
IMAP Data: 422.21484375 Meg
Refresh

urgido
10-10-2010, 06:49 PM
Can I translate it into my natal language? How?

adatrem
10-22-2010, 09:05 PM
I changed $da_ssl=true;
and then It works wonderfull for me.

Thank you.

yeshua
10-23-2010, 02:30 PM
i have that problem i dont know how to fix et can u help me
i oready have all the html file up i dont know what more to do

send me to mi hotmail a enser pliss

yeshua_darknes@hotmail.com

bluebirdnet
11-10-2010, 01:21 PM
This is a great idea and plugin, what has happened with this?

Is there going to be a stable release ?

thanks
Denny

hostu
01-29-2011, 09:42 AM
I too would like to use this with the latest install of DA and Squirrelmail, and would like to know when and if there is or will be a stable or supported version.

thanks

:cool:

bluebirdnet
02-23-2011, 12:50 PM
John @ DA is there any updates on this ?

thanks
Denny

DirectAdmin Support
02-23-2011, 03:37 PM
Hello,

I just tested it out yesterday. Still seems to work fine with the current version of SM. I would say it's stable. When I get a chance, I'll add it into the build script.

John

hci
02-23-2011, 04:26 PM
Anyway to disable vacation message? Only want to show disk usage and maybe allow changing password.

DirectAdmin Support
02-23-2011, 04:33 PM
Hello,

There are not any simple config options to hide it (at this time), but if you edit:
/var/www/html/squirrelmail/plugins/directadmin/functions.php

and find the function:
function directadmin_menuline_do()

Remove the last 2 lines of the function to hide the link.

And then delete the set_vacation.php file, since the same folder.

John