{ /* -*-java-*- */ requires = ( MAIN, MainUI, CommonUI, Mailer, MailPartViewers ); /* , Sieve */ publicResources = ("uix.css", "mailer.css", "mailer.js", "generic.js", "searchfield.js", "UIxAppointmentEditor.js", "UIxContactEditor.js", "UIxMailToSelection.js", "lori_32x32.png", "tbtv_account_17x17.gif", "tbtv_drafts_17x17.gif", "tbtv_inbox_17x17.gif", "tbtv_junction2_17x17.gif", "tbtv_junction_17x17.gif", "tbtv_leaf_corner_17x17.gif", "tbtv_line_17x17.gif", "tbtv_minus_17x17.gif", "tbtv_plus_17x17.gif", "tbtv_corner_17x17.gif", "tbtv_corner_minus_17x17.gif", "tbtv_corner_plus_17x17.gif", "tbtv_sent_17x17.gif", "tbtv_trash_17x17.gif", "tbtb_addressbook.png", "tbtb_compose.png", "tbtb_delete.png", "tbtb_deletedoc.png", "tbtb_filetofolder.png", "tbtb_forward.png", "tbtb_getmail.png", "tbtb_next.png", "tbtb_previous.png", "tbtb_print.png", "tbtb_reply.png", "tbtb_replyall.png", "tbtb_search.png", "tbtb_trash.png", "tbtb_compose_addressbook_30x30.png", "tbtb_compose_attach_30x30.png", "tbtb_compose_clip_30x30.png", "tbtb_compose_cut_30x30.png", "tbtb_compose_dup_30x30.png", "tbtb_compose_file_30x30.png", "tbtb_compose_lock_30x30.png", "tbtb_compose_quote_30x30.png", "tbtb_compose_send_30x30.png", "tbtb_compose_spell_30x30.png", "message-mail.png", "message-mail-read.png", "icon_mark_flagged.gif", "icon_mark_read.gif", "icon_mark_unflagged.gif", "icon_mark_unread.gif", "icon_read.gif", "icon_unread.gif", "title_attachment_14x14.png", "title_config.png", "title_junk.png", "title_read_14x14.png", "title_thread.png", "title_sortdown_12x12.png", "title_sortup_12x12.png", ); factories = { }; categories = { SOGoMailFolder = { slots = { toolbar = { protectedBy = "View"; value = "SOGoMailObject.toolbar"; }; }; methods = { view = { protectedBy = "View"; pageName = "UIxMailListView"; }; subscribe = { protectedBy = ""; actionClass = "UIxMailFolderActions"; actionName = "subscribe"; }; unsubscribe = { protectedBy = ""; actionClass = "UIxMailFolderActions"; actionName = "unsubscribe"; }; quotas = { protectedBy = "View"; actionClass = "UIxMailFolderActions"; actionName = "quotas"; }; ajax = { protectedBy = "View"; pageName = "UIxMailAjaxRequest"; }; index = { protectedBy = "View"; pageName = "UIxMailListView"; }; GET = { /* hack to make it work as the default method */ protectedBy = "View"; pageName = "UIxMailListView"; }; getMail = { protectedBy = "View"; pageName = "UIxMailListView"; actionName = "getMail"; }; expunge = { protectedBy = "View"; actionClass = "UIxMailFolderActions"; actionName = "emptyTrash"; }; createFolder = { protectedBy = "View"; actionClass = "UIxMailFolderActions"; actionName = "createFolder"; }; renameFolder = { protectedBy = "View"; actionClass = "UIxMailFolderActions"; actionName = "renameFolder"; }; deleteFolder = { protectedBy = "View"; actionClass = "UIxMailFolderActions"; actionName = "deleteFolder"; }; setAsDraftsFolder = { protectedBy = "View"; actionClass = "UIxMailFolderActions"; actionName = "setAsDraftsFolder"; }; setAsSentFolder = { protectedBy = "View"; actionClass = "UIxMailFolderActions"; actionName = "setAsSentFolder"; }; setAsTrashFolder = { protectedBy = "View"; actionClass = "UIxMailFolderActions"; actionName = "setAsTrashFolder"; }; userRights = { protectedBy = "ReadAcls"; pageName = "UIxMailUserRightsEditor"; }; saveUserRights = { protectedBy = "SaveAcls"; pageName = "UIxMailUserRightsEditor"; actionName = "saveUserRights"; }; }; }; SOGoTrashFolder = { /* just a new toolbar, other things come from SOGoMailFolder */ slots = { toolbar = { protectedBy = "View"; value = "SOGoMailObject.toolbar"; }; }; methods = { emptyTrash = { protectedBy = "View"; actionClass = "UIxMailFolderActions"; actionName = "emptyTrash"; }; }; }; SOGoMailObject = { slots = { toolbar = { protectedBy = "View"; value = "SOGoMailObject.toolbar"; }; }; methods = { view = { protectedBy = "View"; pageName = "UIxMailView"; }; viewsource = { protectedBy = "View"; actionClass = "UIxMailSourceView"; actionName = "viewSource"; }; popupview = { protectedBy = "View"; pageName = "UIxMailPopupView"; }; move = { protectedBy = "View"; actionClass = "UIxMailActions"; actionName = "move"; }; copy = { protectedBy = "View"; actionClass = "UIxMailActions"; actionName = "copy"; }; trash = { protectedBy = "View"; actionClass = "UIxMailActions"; actionName = "trash"; }; junk = { protectedBy = "View"; actionClass = "UIxMailActions"; actionName = "junk"; }; edit = { protectedBy = "View"; actionClass = "UIxMailActions"; actionName = "edit"; }; reply = { protectedBy = "View"; actionClass = "UIxMailActions"; actionName = "reply"; }; replyall = { protectedBy = "View"; actionClass = "UIxMailActions"; actionName = "replyToAll"; }; forward = { protectedBy = "View"; actionClass = "UIxMailActions"; actionName = "forward"; }; markMessageUnread = { protectedBy = "View"; actionClass = "UIxMailActions"; actionName = "markMessageUnread"; }; markMessageRead = { protectedBy = "View"; actionClass = "UIxMailActions"; actionName = "markMessageRead"; }; addLabel1 = { protectedBy = "View"; actionClass = "UIxMailActions"; actionName = "addLabel1"; }; addLabel2 = { protectedBy = "View"; actionClass = "UIxMailActions"; actionName = "addLabel2"; }; addLabel3 = { protectedBy = "View"; actionClass = "UIxMailActions"; actionName = "addLabel3"; }; addLabel4 = { protectedBy = "View"; actionClass = "UIxMailActions"; actionName = "addLabel4"; }; addLabel5 = { protectedBy = "View"; actionClass = "UIxMailActions"; actionName = "addLabel5"; }; removeLabel1 = { protectedBy = "View"; actionClass = "UIxMailActions"; actionName = "removeLabel1"; }; removeLabel2 = { protectedBy = "View"; actionClass = "UIxMailActions"; actionName = "removeLabel2"; }; removeLabel3 = { protectedBy = "View"; actionClass = "UIxMailActions"; actionName = "removeLabel3"; }; removeLabel4 = { protectedBy = "View"; actionClass = "UIxMailActions"; actionName = "removeLabel4"; }; removeLabel5 = { protectedBy = "View"; actionClass = "UIxMailActions"; actionName = "removeLabel5"; }; removeAllLabels = { protectedBy = "View"; actionClass = "UIxMailActions"; actionName = "removeAllLabels"; }; }; }; SOGoMailAccounts = { slots = { toolbar = { protectedBy = "View"; value = "SOGoMailObject.toolbar"; }; }; methods = { view = { protectedBy = "View"; pageName = "UIxMailMainFrame"; }; compose = { protectedBy = "View"; pageName = "UIxMailMainFrame"; actionName = "compose"; }; dragHandlesState = { protectedBy = "View"; pageName = "UIxMailMainFrame"; actionName = "getDragHandlesState"; }; foldersState = { protectedBy = "View"; pageName = "UIxMailMainFrame"; actionName = "getFoldersState"; }; saveDragHandleState = { protectedBy = "View"; pageName = "UIxMailMainFrame"; actionName = "saveDragHandleState"; }; saveFoldersState = { protectedBy = "View"; pageName = "UIxMailMainFrame"; actionName = "saveFoldersState"; }; }; }; SOGoMailAccount = { slots = { toolbar = { protectedBy = "View"; value = "SOGoMailObject.toolbar"; }; }; methods = { compose = { protectedBy = "View"; actionClass = "UIxMailAccountActions"; actionName = "compose"; }; mailboxes = { protectedBy = "View"; actionClass = "UIxMailAccountActions"; actionName = "listMailboxes"; }; createFolder = { protectedBy = "View"; actionClass = "UIxMailFolderActions"; actionName = "createFolder"; }; }; }; SOGoDraftsFolder = { slots = { toolbar = { protectedBy = "View"; value = ( /* the toolbar groups */ ( /* first group */ { link = "getMail"; image = "tb-mail-getmail-flat-24x24.png"; cssClass = "tbicon_getmail"; label = "Get Mail"; }, { link = "#"; // "compose"; // target = "_blank"; isSafe = NO; onclick = "return openMessageWindow(null, 'compose');"; image = "tb-mail-write-flat-24x24.png"; cssClass = "tbicon_compose"; label = "Write"; }, ) ); }; }; }; SOGoDraftObject = { slots = { toolbar = { protectedBy = "View"; value = "SOGoDraftObject.toolbar"; }; }; methods = { view = { protectedBy = "View"; pageName = "UIxMailEditor"; }; edit = { protectedBy = "View"; pageName = "UIxMailEditor"; }; save = { protectedBy = "View"; pageName = "UIxMailEditor"; actionName = "save"; }; send = { protectedBy = "View"; pageName = "UIxMailEditor"; actionName = "send"; }; delete = { protectedBy = "View"; actionClass = "UIxMailActions"; actionName = "delete"; }; deleteAttachment = { protectedBy = "View"; actionClass = "UIxMailActions"; actionName = "deleteAttachment"; }; }; }; /* Sieve */ // SOGoSieveScriptsFolder = { // slots = { // toolbar = { // protectedBy = "View"; // value = ( // ( // { // link = "getMail"; // image = "tb-mail-getmail-flat-24x24.png"; // cssClass = "tbicon_getmail"; label = "Get Mail"; // }, // { // link = "#"; // "compose"; // target = "_blank"; // onclick = "clickedNewFilter(this); return false"; // image = "tb-mail-write-flat-24x24.png"; // cssClass = "tbicon_compose"; label = "New Filter"; // }, // ), // ( // { link = "#"; // cssClass = "tbicon_delete"; label = "Delete"; }, // ), // ); // }; // }; // methods = { // view = { // protectedBy = "View"; // pageName = "UIxFilterList"; // }; // create = { // protectedBy = "View"; // pageName = "UIxFilterList"; // actionName = "create"; // }; // }; // }; // SOGoSieveScriptObject = { // slots = { // toolbar = { // protectedBy = "View"; // value = ( // ( { link = "#"; // onclick = "clickedEditorSave(this);return false;"; // image = "tb-mail-file-flat-24x24.png"; // cssClass = "tbicon_save"; label = "Save"; }, // { link = "#"; // onclick = "clickedEditorDelete(this);return false;"; // image = "tb-mail-delete-flat-24x24.png"; // cssClass = "tbicon_delete"; label = "Delete"; }, // ) // ); // }; // }; // methods = { // edit = { // protectedBy = "View"; // pageName = "UIxSieveEditor"; // actionName = "edit"; // }; // save = { // protectedBy = "View"; // pageName = "UIxSieveEditor"; // actionName = "save"; // }; // delete = { // protectedBy = "View"; // pageName = "UIxSieveEditor"; // actionName = "delete"; // }; // } }; }