Currently we have possibility to cache messages in browser. However this
feature is problematic. See http://trac.roundcube.net/ticket/1486281.
There're also other issues related to javascript commands included into
(cached) page. Because of that we're using such complicated procedure
for ETag generation:
$etag = md5($MESSAGE->uid.$mbox_name.session_id()
.intval($MESSAGE->headers->mdn_sent)
.intval($MESSAGE->is_safe)
.(!empty($MESSAGE->attachments) ? intval($CONFIG['inline_images'])
: '')
.intval($PRINT_MODE)
.$_SESSION['sort_col'].$_SESSION['sort_order']
.$IMAP->messagecount($mbox_name, 'ALL', true)
);
It relies on messagescount, sorting, session_id, etc. It means, I think,
cache is used rarely. Maybe we shouldn't allow caching messages at all?
--
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/
Hi,
I'm new to roundcube and I'm customizing it for my university project.
I've created a plugin to add a tab for blacklist in the settingstab. But the
problem is the HTML content is not displaying properly in side the tab. I
have attached the code here with. Is my approach is not correct? How can I
do it efficiantly?(I have analyed the seetings and moruserinfo plugins to
get an idea)
<?php
class moreblacklist extends rcube_plugin
{
public $task = 'settings';
function init(){
$rcmail = rcmail::get_instance();
$this->register_handler('
plugin.blacklist_sections', array($this, 'blacklist_sections'));
$this->register_action('plugin.blacklist', array($this, 'blacklist'));
$this->add_hook('list_prefs_sections', array($this, 'blacklist_link'));
$this->add_hook('user_preferences', array($this, 'prefs_table'));
$skin = $rcmail->config->get('skin');
$_skin = get_input_value('_skin', RCUBE_INPUT_POST);
if($_skin != "")
$skin = $_skin;
// abort if there are no css adjustments
if(!file_exists('plugins/moreblacklist/skins/' . $skin .
'/settings.css')){
if(!file_exists('plugins/moreblacklist/skins/default/settings.css'))
return;
else
$skin = "default";
}
$nav_hooks = (array)$rcmail->config->get('settingsnav');
$nav = array();
foreach($nav_hooks as $key => $val)
$nav['settingsnav'][] = $val;
$rcmail->config->merge($nav);
$this->include_stylesheet('skins/' . $skin . '/settings.css');
$browser = new rcube_browser();
if($browser->ie){
if($browser->ver < 8)
$this->include_stylesheet('skins/' . $skin . '/iehacks.css');
if($browser->ver < 7)
$this->include_stylesheet('skins/' . $skin . '/ie6hacks.css');
}
$this->add_hook('template_object_userprefs', array($this, 'userprefs'));
$this->add_texts('localization/');
$rcmail->output->add_label('moreblacklist.blacklist');
}
function blacklist()
{
$rcmail = rcmail::get_instance();
$rcmail->output->send("moreblacklist.blacklist");
exit;
}
function blacklist_link($args)
{
$temp = array();
$temp['blacklistlink']['id'] = 'blacklistlink';
$temp['blacklistlink']['section'] =
$this->gettext('moreblacklist.blacklist');
$args['list'] = $args['list'] + $temp;
return $args;
}
function blacklist_sections()
{
$this->infohtml("");
}
function prefs_table($args)
{
if ($args['section'] == 'blacklistlink') {
$args['blocks']['main']['options']['blacklistlink']['title'] = "";
$args['blocks']['main']['options']['blacklistlink']['content'] =
$this->blacklist_sections("");
}
return $args;
}
//the content genarated by this code is not displaying
function infohtml()
{
$table = new html_table(array('cols' => 2, 'cellpadding' => 3));
$field_id = 'blackselect';
$table->add('title', html::label($field_id,
Q($this->gettext('blacklist'))));
$imap_host = new html_select(array('name' => '_blacklistinf', 'id' =>
$field_id,
'size' => 20));
$table->add(null, $imap_host->show());
$out .= $table->show();
return $out;
}
function userprefs($p)
{
$rcmail = rcmail::get_instance();
(array)$parts = explode(",",$p['parts']);
foreach($parts as $key => $val)
$parts[$key] = trim($val);
(array)$temparr = explode("<fieldset>",$p['content']);
for($i=1;$i<count($temparr);$i++){
$temparr[$i] = "<div class=\"settingsplugin\" id=\"" . $parts[$i-1] .
"\"><fieldset>" .
str_replace("</fieldset>","</fieldset></div>",$temparr[$i]);
if($_GET['_section'] == "blacklistlink" || $_POST['_section'] ==
"blacklistlink"){
$temparr[$i] = str_replace("<legend />","<legend>" .
$this->gettext('blacklist') . "</legend>",$temparr[$i]);
}
}
$p['content'] = implode($temparr);
return $p;
}
}
?>
I would be greatful if some one could help me on this.
Thanks,
Chamila
_______________________________________________
List info: http://lists.roundcube.net/dev/
Hi All
I have updated the squirrelmail_usercopy plugin to support copying
userpreference and addressbook from squirrelmail database.
Added some fields in config. Driver should be set to 'sql' to use the
database backend.
Please test and apply.
Regards
Johannes
--- 8< --- detachments --- 8< ---
The following attachments have been detached and are available for viewing.
http://detached.gigo.com/rc/U4/zpMH3lf7/config.inc.php.disthttp://detached.gigo.com/rc/U4/zpMH3lf7/squirrelmail_usercop.new
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 submitted this patch a fair while ago but it was not included.
It adds the following fields:
'work_number',
'home_number',
'fax_number',
'mobile_number',
'title',
'company',
'work_address',
'home_address',
'note'
it also stores and exports these in vcards as well.
I have updated it to be applied to current trunk (r3140)
I have only added labels for US so other language labels will need to be
modified.
Cheers
Brendan
--- 8< --- detachments --- 8< ---
The following attachments have been detached and are available for viewing.
http://detached.gigo.com/rc/1G/CTpenbVN/extended_address_boo.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/
Hello everybody!
Up to 100%.
--- 8< --- detachments --- 8< ---
The following attachments have been detached and are available for viewing.
http://detached.gigo.com/rc/Kk/PfxxF/9t/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/
Le jeudi 26 novembre 2009 00:03, vous avez écrit :
> On Nov 25, 2009, at 12:56 PM, fakessh wrote:
> > I failed to operate roundcubemail with the changes indicated in
> > your post
> > when mod_security is active
>
> Hmm, not sure of the next step.
> Can you post the logged mod_security errors like you did last time ?
>
> > I still need your help and your advanced knowledge in the operation of
> > roundcube
>
> I wouldn't say my knowledge is advanced, I've just been using it for
> quite some time.
I just put into production roundcube for some friends. I can not make changes
in the day, the webmail is stable yet. I'd do this Thursday night at midnight
Paris time (0:00) just enough time to do the tests you ask me.
you wrote on my personal address, rather than post on the dev list
this is probably a problem of click
thanks charles
thank you for your assistance is invaluable to me
many thanks
_______________________________________________
List info: http://lists.roundcube.net/dev/
Hi! I am free(dom) software enthusiast user based in Spain, I have come to know Round Cube from some time (and I think it rocks) ago and I would like to contribute even if just a little.
Since I am not into coding, but I have a decent command of english, I can help with translations.
I send some missing labels in order to complete the Spanish (Spain) translation, so it can be 100% complete!
Best regards from Spain:
David Ballesteros.
--- 8< --- detachments --- 8< ---
The following attachments have been detached and are available for viewing.
http://detached.gigo.com/rc/QG/JeKocjPm/labels.inc.tar.gz
Only click these links if you trust the sender, as well as this message.
--- 8< --- detachments --- 8< ---
_______________________________________________
List info: http://lists.roundcube.net/dev/