Last active
October 23, 2018 07:16
-
-
Save darktrojan/d5102d4505298edc4535528ea211f6c6 to your computer and use it in GitHub Desktop.
New WebExt API planning
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
accounts: | |
- list: (read permission) | |
- name | |
- type | |
- folders | |
- identities | |
messages: | |
- query (read permission) | |
- sender | |
- subject | |
- etc. | |
- unread # msgHdr.isRead, msgHdr.markRead() | |
- flagged # msgHdr.isFlagged, msgHdr.markFlagged | |
- tags # msgHdr.getProperty("keywords"); MailServices.tags.getTagForKey($_) | |
- get headers (read permission) | |
- get content (read permission, second level?) | |
- open reply/forward compose window (read permission) | |
- mark as read/unread/junk/label (write permission) | |
- move to (write permission) | |
mailTab: | |
- selected folder(s): | |
- get # gFolderTreeView.getSelectedFolders() | |
- set | |
# tab.folderDisplay.showFolderUri("mailbox://nobody@Local%20Folders/Trash") | |
# if (currentTab) gFolderTreeView.selectFolder(folder) | |
- selection changed event | |
- message list columns: | |
- list # tab.folderDisplay.tree.treeBoxObject.columns | |
- sort: | |
- get | |
# tab.folderDisplay.tree.treeBoxObject.columns.getSortedColumn() | |
# tab.folderDisplay.tree.view.sortOrder | |
- set | |
# tab.folderDisplay.tree.view.sort() | |
- selection | |
# tab.folderDisplay.tree.view.selection | |
- quick filter | |
- layout: | |
- classic/wide/vertical | |
- show/hide preview | |
- show/hide folderpane | |
compose message: | |
- ??? |
Accounts and messages: https://bugzilla.mozilla.org/show_bug.cgi?id=1488176
Mail tabs: https://bugzilla.mozilla.org/show_bug.cgi?id=1499617
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This is the next set of APIs I plan to implement. It's just a brain dump of ideas, no implementation detail. The comments are mostly just code that I'm going to want when implementing stuff, just ignore it.