-{
- requires = ( MAIN, CommonUI, Mailer, Sieve );
+{ /* -*-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",
+ 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",
+ "lori_32x32.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",
+ "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",
- "message-mail.png",
- "message-mail-read.png",
+ "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",
- "icon_mark_flagged.gif",
- "icon_mark_read.gif",
- "icon_mark_unflagged.gif",
- "icon_mark_unread.gif",
- "icon_read.gif",
- "icon_unread.gif",
+ "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",
- "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",
- );
+ "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 = "SOGoMailFolder.toolbar";
- };
+ toolbar = {
+ protectedBy = "View";
+ value = "SOGoMailObject.toolbar";
+ };
};
methods = {
- view = {
- protectedBy = "View";
- pageName = "UIxMailListView";
- };
- index = {
- protectedBy = "View";
- pageName = "UIxMailListView";
- };
- GET = { /* hack to make it work as the default method */
- protectedBy = "View";
- pageName = "UIxMailListView";
- };
-
- markMessageUnread = {
- protectedBy = "View";
- pageName = "UIxMailListView";
- actionName = "markMessageUnread";
- };
- markMessageRead = {
- protectedBy = "View";
- pageName = "UIxMailListView";
- actionName = "markMessageRead";
- };
- getMail = {
- protectedBy = "View";
- pageName = "UIxMailListView";
- actionName = "getMail";
- };
- expunge = {
- protectedBy = "View";
- pageName = "UIxMailListView";
- actionName = "expunge";
- };
-
- createFolder = {
- protectedBy = "View";
- pageName = "UIxMailListView";
- actionName = "createFolder";
- };
- deleteFolder = {
- protectedBy = "View";
- pageName = "UIxMailListView";
- actionName = "deleteFolder";
- };
-
- editACL = {
- protectedBy = "View";
- pageName = "UIxMailFolderACLEditor";
- };
-
- compose = {
- protectedBy = "View";
- actionClass = "UIxMailEditorAction";
- actionName = "compose";
- };
+ subscribe = {
+ protectedBy = "<public>";
+ actionClass = "UIxMailFolderActions";
+ actionName = "subscribe";
+ };
+ unsubscribe = {
+ protectedBy = "<public>";
+ actionClass = "UIxMailFolderActions";
+ actionName = "unsubscribe";
+ };
+ quotas = {
+ protectedBy = "View";
+ actionClass = "UIxMailFolderActions";
+ actionName = "quotas";
+ };
+ view = {
+ protectedBy = "View";
+ pageName = "UIxMailListView";
+ };
+ 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 = "SOGoTrashFolder.toolbar";
- };
+ toolbar = {
+ protectedBy = "View";
+ value = "SOGoMailObject.toolbar";
+ };
};
methods = {
- emptyTrash = {
- protectedBy = "View";
- pageName = "UIxMailListView";
- actionName = "emptyTrash";
- };
+ emptyTrash = {
+ protectedBy = "View";
+ actionClass = "UIxMailFolderActions";
+ actionName = "emptyTrash";
+ };
};
};
SOGoMailObject = {
slots = {
- toolbar = {
- protectedBy = "View";
- value = "SOGoMailObject.toolbar";
- };
+ toolbar = {
+ protectedBy = "View";
+ value = "SOGoMailObject.toolbar";
+ };
};
methods = {
- view = {
- protectedBy = "View";
- pageName = "UIxMailView";
- };
-
- getMail = {
- protectedBy = "View";
- pageName = "UIxMailView";
- actionName = "getMail";
- };
-
- delete = {
- protectedBy = "View";
- pageName = "UIxMailView";
- actionName = "delete";
- };
- trash = {
- protectedBy = "View";
- pageName = "UIxMailView";
- actionName = "trash";
- };
- junk = {
- protectedBy = "View";
- pageName = "UIxMailView";
- actionName = "junk";
- };
- edit = {
- protectedBy = "View";
- pageName = "UIxMailEditor";
- };
- compose = {
- protectedBy = "View";
- actionClass = "UIxMailEditorAction";
- actionName = "compose";
- };
- reply = {
- protectedBy = "View";
- actionClass = "UIxMailReplyAction";
- actionName = "reply";
- };
- replyall = {
- protectedBy = "View";
- actionClass = "UIxMailReplyAction";
- actionName = "replyall";
- };
- forward = {
- protectedBy = "View";
- actionClass = "UIxMailForwardAction";
- actionName = "forward";
- };
+ 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 = ( /* the toolbar groups */
- ( /* first group */
- { link = "getMail";
- cssClass = "tbicon_getmail"; label = "Get Mail"; },
- )
- );
- };
+ toolbar = {
+ protectedBy = "View";
+ value = "SOGoMailObject.toolbar";
+ };
};
methods = {
- view = {
- protectedBy = "View";
- pageName = "UIxMailAccountsView";
- };
- getMail = {
- protectedBy = "View";
- pageName = "UIxMailAccountsView";
- };
+ view = {
+ protectedBy = "View";
+ pageName = "UIxMailMainFrame";
+ };
+ compose = {
+ protectedBy = "View";
+ pageName = "UIxMailMainFrame";
+ actionName = "compose";
+ };
};
};
-
+
SOGoMailAccount = {
slots = {
- toolbar = {
- protectedBy = "View";
- value = "SOGoMailAccount.toolbar";
- };
+ toolbar = {
+ protectedBy = "View";
+ value = "SOGoMailObject.toolbar";
+ };
};
methods = {
- view = {
- protectedBy = "View";
- pageName = "UIxMailAccountView";
- };
- getMail = {
- protectedBy = "View";
- pageName = "UIxMailAccountView";
- };
- addressbook = {
- protectedBy = "View";
- pageName = "UIxMailAddressbook";
- };
- anais = {
- protectedBy = "View";
- pageName = "UIxMailAddressbook";
- actionName = "anais";
- };
- compose = {
- protectedBy = "View";
- actionClass = "UIxMailEditorAction";
- actionName = "compose";
- };
- createFolder = {
- protectedBy = "View";
- pageName = "UIxMailAccountView";
- actionName = "createFolder";
- };
+ 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";
- cssClass = "tbicon_getmail"; label = "Get Mail"; },
- {
- link = "#"; // "compose"; // target = "_blank";
- isSafe = NO;
- onclick = "clickedCompose(this);return false;";
- cssClass = "tbicon_compose"; label = "Write"; },
- )
- );
- };
+ 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"; },
+ )
+ );
+ };
};
methods = {
- view = {
- protectedBy = "View";
- pageName = "UIxMailListView";
- };
- getMail = {
- protectedBy = "View";
- pageName = "UIxMailListView";
- };
- compose = {
- protectedBy = "View";
- actionClass = "UIxMailEditorAction";
- actionName = "compose";
- };
+ view = {
+ protectedBy = "View";
+ pageName = "UIxMailListView";
+ };
+ getMail = {
+ protectedBy = "View";
+ pageName = "UIxMailListView";
+ };
};
};
SOGoDraftObject = {
slots = {
- toolbar = {
- protectedBy = "View";
- value = "SOGoDraftObject.toolbar";
- };
+ toolbar = {
+ protectedBy = "View";
+ value = "SOGoDraftObject.toolbar";
+ };
};
methods = {
- view = { /* somewhat hackish */
- protectedBy = "View";
- pageName = "UIxMailEditor";
- };
- edit = {
- protectedBy = "View";
- pageName = "UIxMailEditor";
- actionName = "edit";
- };
- save = {
- protectedBy = "View";
- pageName = "UIxMailEditor";
- actionName = "save";
- };
- delete = {
- protectedBy = "View";
- pageName = "UIxMailEditor";
- actionName = "delete";
- };
-
- viewAttachments = {
- protectedBy = "View";
- pageName = "UIxMailEditorAttach";
- actionName = "viewAttachments";
- };
- attach = {
- protectedBy = "View";
- pageName = "UIxMailEditorAttach";
- actionName = "attach";
- };
- deleteAttachment = {
- protectedBy = "View";
- pageName = "UIxMailEditorAttach";
- actionName = "deleteAttachment";
- };
-
- send = {
- protectedBy = "View";
- pageName = "UIxMailEditor";
- actionName = "send";
- };
- addressbook = {
- protectedBy = "View";
- pageName = "UIxMailAddressbook";
- };
- anais = {
- protectedBy = "View";
- pageName = "UIxMailAddressbook";
- actionName = "anais";
- };
+ 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 = ( /* the toolbar groups */
- ( /* first group */
- {
- link = "getMail";
- cssClass = "tbicon_getmail"; label = "Get Mail";
- },
- {
- link = "#"; // "compose"; // target = "_blank";
- onclick = "clickedNewFilter(this); return false";
- cssClass = "tbicon_compose"; label = "New Filter";
- },
- ),
- ( /* second group
- { 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 = ( /* the toolbar groups */
- ( /* first group */
- { link = "#";
- onclick = "clickedEditorSave(this);return false;";
- cssClass = "tbicon_save"; label = "Save"; },
- { link = "#";
- onclick = "clickedEditorDelete(this);return false;";
- 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";
- };
- };
- };
+// 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";
+// };
+// }
};
}
+