Brandon Davidson | 1 Dec 2009 23:50
Favicon

Re: [RCD] Survey about Roundcube deployments

Hi Zilba,

We're working on rolling out Roundcube to our student body here at the
UO. It's still in beta, and we're looking at ways to collect utilization
statistics like the ones you provided below. Would it be difficult for
you to share the plugin you developed to provide these?

Just for the record, the product we're migrating away from is called
Alphamail. It's open source, and had a SourceForge project page that has
been taken down due to inactivity. It was written by a PhD student from
our Computer Science department as his thesis project, and development
ceased when he got his diploma. It's been stable enough, but the
interface is somewhat clunky a the real focus of his work was on a
multithreaded caching IMAP proxy midlayer that the web interface talked
to via a proprietary protocol.

Thanks,

-Brad

> -----Original Message-----
> 
> We've been offering Roundcube to everyone at the University of
Michigan
> for a bit over a year.
> 
> Number of users (max): 70,013
>         This is the number of preference sets in the database.  We
have
> more IMAP accounts, but they have not yet chosen to visit our
(Continue reading)

till | 2 Dec 2009 00:55
Picon
Gravatar

Re: [RCD] Survey about Roundcube deployments

On Tue, Dec 1, 2009 at 11:50 PM, Brandon Davidson <brandond <at> uoregon.edu> wrote:
> Hi Zilba,
>
> We're working on rolling out Roundcube to our student body here at the
> UO. It's still in beta, and we're looking at ways to collect utilization
> statistics like the ones you provided below. Would it be difficult for
> you to share the plugin you developed to provide these?
>
> Just for the record, the product we're migrating away from is called
> Alphamail. It's open source, and had a SourceForge project page that has
> been taken down due to inactivity. It was written by a PhD student from
> our Computer Science department as his thesis project, and development
> ceased when he got his diploma. It's been stable enough, but the
> interface is somewhat clunky a the real focus of his work was on a
> multithreaded caching IMAP proxy midlayer that the web interface talked
> to via a proprietary protocol.

Would you guys consider re-opensourcing the IMAP proxy middle layer?
It sounds pretty interesting.

Till
_______________________________________________
List info: http://lists.roundcube.net/dev/

Brandon Davidson | 2 Dec 2009 01:07
Favicon

Re: [RCD] Survey about Roundcube deployments

I guess the sourceforge page is still out there. I wasn't able to pull
it up earlier, I had assumed that it had been taken down. The page is
here:

http://alphamail.sourceforge.net/index.html#status

As you can see, it hasn't been worked on at all for about three years
now. We're running up-imapproxy behind roundcube, and it seems to be
doing just as well, although I don't have any hard statistics to back
that up. The AJAX design of Roundcube seems to be more lightweight than
other models that require a full page redraw and re-enumeration of
messages every time the page is updated.

-Brad

> -----Original Message-----
> From: till [mailto:klimpong <at> gmail.com]
> 
> Would you guys consider re-opensourcing the IMAP proxy middle layer?
> It sounds pretty interesting.

_______________________________________________
List info: http://lists.roundcube.net/dev/

chamila piyasena | 2 Dec 2009 13:26
Picon

[RCD] Need help in adding UI controls to the plugin

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/
A.L.E.C | 2 Dec 2009 13:33
Picon
Gravatar

Re: [RCD] Need help in adding UI controls to the plugin

chamila piyasena wrote:

> 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)

You could also check managesieve plugin.

--

-- 
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/

chasd | 2 Dec 2009 15:17
Favicon

Re: [RCD] [RCU] recurring problem at the level of authentication and total absence of log

Sorry about my last message, I made a mistake not to send it to the  
list.

> here's nobody else who encounters the same problems with the  
> release 0.3.1 and
> mod_security. here is the problem for tests ordered by Charles, we  
> must stop
> roundcube and now I have three accounts running on production with  
> roundcube
> disables mod_security
>
> It bothers me to stop my webmail service for several hours
>
> if anyone has a solution, an official patch
>
> a good suggestion

I think the issue is that no one else on the list is running  
mod_security. I think you are the first to run into the issue.

If someone else is running RC and mod_security, please speak up.

--

-- 
Charles Dostale
System Admin - Silver Oaks Communications
http://www.silveroaks.com/
824 17th Street, Moline  IL  61265

_______________________________________________
List info: http://lists.roundcube.net/dev/

fakessh | 2 Dec 2009 15:30
Picon

Re: [RCD] [RCU] recurring problem at the level of authentication and total absence of log

On Wed, 2 Dec 2009 08:17:14 -0600, chasd <chasd <at> silveroaks.com> wrote:
> Sorry about my last message, I made a mistake not to send it to the  
> list.
> 
>> here's nobody else who encounters the same problems with the  
>> release 0.3.1 and
>> mod_security. here is the problem for tests ordered by Charles, we  
>> must stop
>> roundcube and now I have three accounts running on production with  
>> roundcube
>> disables mod_security
>>
>> It bothers me to stop my webmail service for several hours
>>
>> if anyone has a solution, an official patch
>>
>> a good suggestion
> 
> I think the issue is that no one else on the list is running  
> mod_security. I think you are the first to run into the issue.
> 
> If someone else is running RC and mod_security, please speak up.

I listen to any suggestions regarding my problem with mod_security
I made some test on XP and VISTA successfully
with mod_security disabled

thanks for all your feedbacks
_______________________________________________
List info: http://lists.roundcube.net/dev/

till | 2 Dec 2009 20:22
Picon
Gravatar

Re: [RCD] [RCU] recurring problem at the level of authentication and total absence of log

On Wed, Dec 2, 2009 at 8:11 PM, fakessh <fakessh <at> fakessh.eu> wrote:
> On Wed, 2 Dec 2009 11:04:03 -0700, gnul <nullchar <at> gmail.com> wrote:
>> I have not run RoundCube under mod_security, but from what I know
>> about mod_security, I am sure it can be done.
>>
>> mod_security simply applies a [long] list of rules to the contents of
>> each request (GET/POST/HEAD/etc) including the header.
>>
>> Depending on your ruleset, you often have to add exceptions for
>> certain applications, and/or disable entire rules server-wide.  What
>> I've done in the past is:  tail -F error_log   while you use the
>> application.  Then you add exceptions for the uri (e.g. "/roundcube")
>> or hostname or disable certain rules inside the modsecurity*.conf
>> files.
>>
>
> Thank you for your interest in my problem
> how easy to apply new rules to mod_security ?

I think you can do it in .htaccess. But you should check with your provider.

Till
_______________________________________________
List info: http://lists.roundcube.net/dev/

till | 2 Dec 2009 20:39
Picon
Gravatar

Re: [RCD] [RCU] recurring problem at the level of authentication and total absence of log

On Wed, Dec 2, 2009 at 8:34 PM, fakessh <fakessh <at> fakessh.eu> wrote:
> On Wed, 2 Dec 2009 20:22:40 +0100, till <klimpong <at> gmail.com> wrote:
>> On Wed, Dec 2, 2009 at 8:11 PM, fakessh <fakessh <at> fakessh.eu> wrote:
>>> On Wed, 2 Dec 2009 11:04:03 -0700, gnul <nullchar <at> gmail.com> wrote:
>>>> I have not run RoundCube under mod_security, but from what I know
>>>> about mod_security, I am sure it can be done.
>>>>
>>>> mod_security simply applies a [long] list of rules to the contents of
>>>> each request (GET/POST/HEAD/etc) including the header.
>>>>
>>>> Depending on your ruleset, you often have to add exceptions for
>>>> certain applications, and/or disable entire rules server-wide.  What
>>>> I've done in the past is:  tail -F error_log   while you use the
>>>> application.  Then you add exceptions for the uri (e.g. "/roundcube")
>>>> or hostname or disable certain rules inside the modsecurity*.conf
>>>> files.
>>>>
>>>
>>> Thank you for your interest in my problem
>>> how easy to apply new rules to mod_security ?
>>
>> I think you can do it in .htaccess. But you should check with your
>> provider.
>>
>> Till
>
>
>
> I can edit my file myself .htaccess .
> I have root access on the machine

Hehe...

>From your log, it says the rules are in:
/etc/httpd/modsecurity.d/modsecurity_crs_30_http_policy.conf

Edit, and restart Apache.

For inspiration:
http://www.gotroot.com/mod_security+rules

Till
_______________________________________________
List info: http://lists.roundcube.net/dev/

fakessh | 2 Dec 2009 20:52
Picon

Re: [RCD] [RCU] recurring problem at the level of authentication and total absence of log


>>>>> I have not run RoundCube under mod_security, but from what I know
>>>>> about mod_security, I am sure it can be done.
>>>>>
>>>>> mod_security simply applies a [long] list of rules to the contents
of
>>>>> each request (GET/POST/HEAD/etc) including the header.
>>>>>
>>>>> Depending on your ruleset, you often have to add exceptions for
>>>>> certain applications, and/or disable entire rules server-wide.  What
>>>>> I've done in the past is:  tail -F error_log   while you use the
>>>>> application.  Then you add exceptions for the uri (e.g.
"/roundcube")
>>>>> or hostname or disable certain rules inside the modsecurity*.conf
>>>>> files.
>>>>>
>>>>
>>>> Thank you for your interest in my problem
>>>> how easy to apply new rules to mod_security ?
>>>
>>> I think you can do it in .htaccess. But you should check with your
>>> provider.
>>>
>>> Till
>>
>>
>>
>> I can edit my file myself .htaccess .
>> I have root access on the machine
> 
> Hehe...
> 
> From your log, it says the rules are in:
> /etc/httpd/modsecurity.d/modsecurity_crs_30_http_policy.conf
> 
> Edit, and restart Apache.
> 
> For inspiration:
> http://www.gotroot.com/mod_security+rules
> 
> Till

I'll look at these documents and I'll try to walk roundcube with
mod_security

thanks
_______________________________________________
List info: http://lists.roundcube.net/dev/

Gmane