Thanks Thomas,

I'm happy my small can is so useful for you.

ATB,
André.

Thomas Bruederli wrote:
On Mon, Jun 22, 2009 at 09:22, Roland Liebl<roland@roland-liebl.de> wrote:
  
Is there a way to localize the "Archive" folder?
    

With the latest changes in r2705 this could be done like this:

// in init()
  $this->add_hook('list_mailboxes', array($this, 'list_mailboxes'));
  ...

// and the callback function:
  function list_mailboxes($p)
  {
    $rcmail = rcmail::get_instance();
    $archive_folder = $rcmail->config->get('archive_mbox');

    if ($archive_folder && $p['list'][$archive_folder])
      $p['list'][$archive_folder]['name'] = $this->gettext('archivefolder');

    return $p;
  }

I think I'll add the archive plugin (with the above changes) to our
SVN repository because it's also one of my favorites.

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

--

r e d 2
The red2 Group of companies; red2, red2 Services and red2 Agency
34-35 Eastcastle Street, London W1W 8DW
www.red2.co.uk | andre.rodier@red2.co.uk

(+44) 0870 471 8492 direct
(+44) 0751 124 4961 mobile