Shame, it shouldn't make a difference that it was installed aptitude and the code should work with any version of the 0.7.x series. You could try this code to see if the plugin is working in its most basic form:
<?php
class autologon extends rcube_plugin
{
function init()
{
$this->add_hook('startup', array($this, 'startup'));
$this->add_hook('authenticate', array($this, 'authenticate'));
}
function startup($args)
{
$rcmail = rcmail::get_instance();
// change action to login
if (empty($_SESSION['user_id']))
$args['action'] = 'login';
return $args;
}
function authenticate($args)
{
$args['user'] = '<username>';
$args['pass'] = '<password>';
$args['host'] = '<host>';
$args['cookiecheck'] = false;
$args['valid'] = true;
return $args;
}
}
That should automatically log you into RoundCube when you go directly to it.