hello all
i want to share some modifications i made to roundcube code in order to
get quota work .. i made this because i manage a computer with apache
(only) and other with smtp and imap (only) and i want the user may be
able to see his/her quota
i saw in the code (thanks to Roland Liebl for show me the file) that
quota are retrieved via imap .. i don't have quotas via imap but in
filesystem and my scenario is a little complex .. well, this changes
modify some configuration variables and part of the code to process the
quota
[config/main.inc.php]
$rcmail_config['quota'] = array(
'backend' => 'cmd',
'program' => '/usr/bin/ssh
-i /usr/local/www/apache22/data/sitios/roundcubemail031/config/ssh_reporte reporte(a)madara.ipigto.rimed.cu /usr/bin/quota',
'program_parameters' => '-f /srv -v',
'zero_as_unlimited' => TRUE);
[program/steps/mail/func.inc]
function rcmail_quota_content($quota=NULL, $attrib=NULL)
{
global $CONFIG, $IMAP, $COMM_PATH, $RCMAIL;
$display = isset($_SESSION['quota_display']) ? $_SESSION['quota_display'] : '';
$quota = array(
'total' => 0,
'used' => 0,
'percent' => 0,
);
switch ($CONFIG['quota']['backend']) {
case 'imap':
if (empty($quota)) {
if (!$IMAP->get_capability('QUOTA'))
return rcube_label('unknown');
else
$quota = $IMAP->get_quota();
}
break;
case 'cmd':
$user = split("@", $RCMAIL->user->get_username());
exec($CONFIG['quota']['program'] ." ". $CONFIG['quota']['program_parameters'] ." ". $user[0], $result);
list($quota_fs, $quota['used'], $quota_sl, $quota['total']) = preg_split('/ /', trim($result[2]));
if (substr($quota['used'], -1) == '*') { $quota['used'] = substr($quota['used'], 0, -1); }
$quota['percent'] = (($quota['used'] * 100) / $quota['total']);
break;
default:
return rcube_label('unknown');
break;
}
if ($quota && !($quota['total']==0 && $CONFIG['quota']['zero_as_unlimited']))
{
$quota_result = sprintf('%s / %s (%.0f%%)',
show_bytes($quota['used'] * 1024), show_bytes($quota['total'] * 1024),
$quota['percent']);
if ($display == 'image') {
$quota_result = array(
'percent' => $quota['percent'],
'title' => $quota_result,
);
if ($attrib['width'])
$quota_result['width'] = $attrib['width'];
if ($attrib['height'])
$quota_result['height'] = $attrib['height'];
}
}
else
return rcube_label('unlimited');
return $quota_result;
}
i want to ask to roundcube developers to adopt this modifications in
order to strengthen the quota retrieval system .. the complete
configuration may be as follow:
[config/main.inc.php]
// Quota Retrieval System
$rcmail_config['quota'] = array(
'backend' => 'imap',
'zero_as_unlimited' => TRUE);
$rcmail_config['quota'] = array(
'backend' => 'cmd',
'program' => '/usr/bin/quota',
'program_parameters' => '-f /filesystem -v',
'zero_as_unlimited' => TRUE);
well, that's all
_______________________________________________
List info: http://lists.roundcube.net/dev/
hello all
i want to ask to roundcube developers to consider add this feature: show
smtp error description when the user send a mail and smtp server returns
an error
would be a good idea if the behavior of this feature can be defined by a
configuration (main) variable .. the variable may be named:
// Set if the SMTP Error Description should be displayed
$rcmail_config['show_smtp_error_description'] = true|false;
// Show the SMTP Error Description via 'alert()' function?
$rcmail_config['show_smtp_error_description_alert'] = true|false;
i ask this because i manage a smtp server that returns some errors to
users due to some conditions but roundcube doesn't show the error
description and i don't know how to modify the code in order to achieve
this
well, that's all
_______________________________________________
List info: http://lists.roundcube.net/dev/
Hi all
I am working on a customised skin based on the roundcube default skin from version 0.3.1.
How can I change the background color of a selected/hovered item in the "toolbarmenu" of "markmessagemenu" and "messagemenu"?
I replaced all background-color entries in all css files where #CC3333 was used and I have empties the browsers cache. But the items on the toolbarmenu still appear with a red background. I am using Firefox 3.
Thanks for any hints.
Christian
--- 8< --- detachments --- 8< ---
The following attachments have been detached and are available for viewing.
http://detached.gigo.com/rc/Hq/wPsaunkw/toolbar-background.jpg
Only click these links if you trust the sender, as well as this message.
--- 8< --- detachments --- 8< ---
_______________________________________________
List info: http://lists.roundcube.net/dev/
Hi,
Can some one post the list of all available template objects which can be
used on template hooks.
Thank You,
Chamila
_______________________________________________
List info: http://lists.roundcube.net/dev/
Hi
Here is a partial translation of the labels text. Hope it is useful.
/Thomas
--- 8< --- detachments --- 8< ---
The following attachments have been detached and are available for viewing.
http://detached.gigo.com/rc/A5/xjlPPxq5/labels.inc
Only click these links if you trust the sender, as well as this message.
--- 8< --- detachments --- 8< ---
_______________________________________________
List info: http://lists.roundcube.net/dev/
Hi all,
I'm lost if it comes to design icons which fits default roundcube icon set.
I would need two icons for the default toolbar (22x22 .png and .gif)
(*) webcalendar plugin
(*) nabble plugin
"Webcalendar" is an interface to Calendar plugin.
"Nabble" are embedable apps (http://n3.nabble.com/) which I have integrated by a plugin.
At the moment I use icons which may conflict to copyrights and they does not fit at all. Any help is very appreciated!
Regards,
R.
--- 8< --- detachments --- 8< ---
The following attachments have been detached and are available for viewing.
http://detached.gigo.com/rc/Gp/WvIksuR1/calendar.pnghttp://detached.gigo.com/rc/Gp/WvIksuR1/nabble.gif
Only click these links if you trust the sender, as well as this message.
--- 8< --- detachments --- 8< ---
_______________________________________________
List info: http://lists.roundcube.net/dev/
Hi all,
I am wondering how to generate the file: program/js/app.js from
program/js/app.js.src?
--
() ascii ribbon campaign - against html e-mail
/\ www.asciiribbon.org - against proprietary attachments
Jorge Valdes - jvaldes(a)intercom.com.sv
_______________________________________________
List info: http://lists.roundcube.net/dev/
Hi Roundcube folks
Attached are a couple of updates to the Danish translations of Roundcube
GUI.
Thank you very much for you work so far!
Best
Rasmus Wehner
Denmark
--- 8< --- detachments --- 8< ---
The following attachments have been detached and are available for viewing.
http://detached.gigo.com/rc/Dk/KuLUVokD/labels.inchttp://detached.gigo.com/rc/Dk/KuLUVokD/messages.inc
Only click these links if you trust the sender, as well as this message.
--- 8< --- detachments --- 8< ---
_______________________________________________
List info: http://lists.roundcube.net/dev/
You're guys a good webmasters. I'm working on messages list menu and got
a few problems. I've prepared it in two versions, vertical and horizontal:
http://194.150.197.210/rc-dev/listmenu.htmlhttp://194.150.197.210/rc-dev/listmenu-v.html
1. I'm not sure which is better (vertical one is maybe too high?)
2. Save button in FF3 (3.0.15) hasn't got left,right,bottom border. It
becomes visible on mouse over.
3. If horizontal variant is better, how to make the height of all
<fieldset>'s to be the same (of course not in pixels, height:150px is
working, but something like 100% of the menu div would be better)?
4. Not tested with IE.
--
Aleksander 'A.L.E.C' Machniak http://alec.pl gg:2275252
LAN Management System Developer http://lms.org.pl
Roundcube Webmail Project Developer http://roundcube.net
_______________________________________________
List info: http://lists.roundcube.net/dev/