Hello,
Our Mail Server (Citadel.org) is hosted locally in our Office. We have a shared folder on our mail server that retrieves mail (through POP) from our Internet Provider. This means that our secretaries all use this shared folder to receive mail...no one uses their personal Inbox folder.
What I'd like to do on Roundcube is modify the Special Folders to allow the Inbox to be changed to this shared folder for all users.
So I've been searching through the Roundcube code and made the following changes:
func.inc:
I removed the INBOX exception:
//load folders list only when needed
'maxlength' => 30,));
// 'maxlength' => 30, 'exceptions' => array('INBOX')));
I added an inbox_mbox to the list of options:
if (!isset($no_override['inbox_mbox']))
$blocks['main']['options']['inbox_mbox'] = array(
'title' => Q(rcube_label('inbox')),
'content' => $select->show($config['inbox_mbox'], array('name' => "_inbox_mbox")),
);
main.inc:
I added a folder id for my new inbox_mbox and commented our the folder id of INBOX.
else if ($folder['id'] == $CONFIG['inbox_mbox'])
$classes[] = 'inbox';
// else if ($folder['id'] == 'INBOX')
// $classes[] = 'inbox';
I also commented out the following:
// if ($folder_id == 'INBOX')
// return 'inbox';
I then updated the foreach line:
// for these mailboxes we have localized labels and css classes
foreach (array('sent', 'drafts', 'trash', 'junk', 'inbox') as $smbx)
main.inc.php:
I added my newly created inbox_mbox:
// store inbox messages in this mailbox
$rcmail_config['inbox_mbox'] = 'Inbox';
I can now see in Settings > Special Folders under Main Options my Inbox with - - - beside it which should allow me to update the Inbox with a new folder, but when I select our shared folder and save, the new Inbox folder I've selected is not saved. My Main Options for Inbox still shows - - -.
Any help you can provide would be greatly appreciated.
Thank you.