Hi,
from what I understood, there is not much interest in supporting the
configuration of an SMTP server as part of an identity in roundcube.
That's perfectly fine thanks to the plugin system, which can make use of
the smtp_connect hook. But to use it, this hook needs to tell the plugin
what the current identity is, e.g. by passing $from. This approach is a)
sort of obvious and b) has been shown to work here
<http://nixbioinf.org/cgit/cgit.cgi/roundcubemail-0.3.1_multismtp/>.
Attached patch (wrt the trunk) does just that. It simply introduces an
optional argument to connect; it's a stripped down version of above
patch, moving as much as possible into a future (trivial) plugin.
The patch might also fix a general problem where an smtp object exists,
but because smtp_init() was called with $connect == false there is no
SMTP connection. I know roundcube doesn't do it, but it's theoretically
possible - so it should either test for the smtp object being connected
or remove the $connect parameter from smtp_init() altogether.
Please don't take that patch as is - I did not test it at all, it's a
mere suggestion to sketch a possible implementation. I obviously expect
no acknowledgment for it :-)
Cheers, Axel.
--- 8< --- detachments --- 8< ---
The following attachments have been detached and are available for viewing.
http://detached.gigo.com/rc/Ht/Z9BeoZc3/connect_alias.diff
Only click these links if you trust the sender, as well as this message.
--- 8< --- detachments --- 8< ---
_______________________________________________
List info: http://lists.roundcube.net/dev/
The more I use RC the more I like it...
When the message has an rfc/822 attachment, the only option is to
"download" the message and then see it as a text document, or use some
other program. I really dont care much one way or another, but for some,
not being able to see this message could be seen as a problem.
Could this message be retrieved and shown in a new window?
Could the user be presented with options to see and download?
I have not gotten into the guts (yet) to see how this could be
implemented, but since we already download a message and "display" it to
the user, I don't think this could be much of a problem.
--
Jorge
_______________________________________________
List info: http://lists.roundcube.net/dev/
Hi all,
Updated Croatian translation is attached.
Best regards,
Svebor Prstačić
--- 8< --- detachments --- 8< ---
The following attachments have been detached and are available for viewing.
http://detached.gigo.com/rc/Sj/TDpahJxO/lang.zip
Only click these links if you trust the sender, as well as this message.
--- 8< --- detachments --- 8< ---
_______________________________________________
List info: http://lists.roundcube.net/dev/
I have been using the latest version and have the following comments:
1.- There should be a toggle-preview button. Going back and forth to the
settings page to toggle the checkbox is just annoying.
2.- The selection boxes which are currently at the bottom of the message
window should probably be at the top in order to reduce the distance one
has to drag the mouse between selecting all and using one of the top
buttons to perform an action.
Browsing through the code,
#1 can be as simple as adding a button to the "messagetoolbar", the nice
image I leave to the image gurus...
#2 can be done by placing the <div id="listcontrols"> inside the <div
id="messagetoolbar">
--
Jorge
_______________________________________________
List info: http://lists.roundcube.net/dev/
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/