[RCD] Message archive plugin

Thomas Bruederli roundcube at gmail.com
Fri Jul 3 16:11:04 CEST 2009


On Mon, Jun 22, 2009 at 09:22, Roland Liebl<roland at 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/



More information about the Dev mailing list