Mailspring/packages/client-app/docs/index.html

1435 lines
36 KiB
HTML

<!DOCTYPE HTML>
<html lang="" >
<head>
<meta charset="UTF-8">
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
<title>Introduction · Nylas Mail Plugin SDK</title>
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="description" content="">
<meta name="generator" content="GitBook 3.2.2">
<link rel="stylesheet" href="gitbook/style.css">
<link rel="stylesheet" href="gitbook/gitbook-plugin-search/search.css">
<link rel="stylesheet" href="gitbook/gitbook-plugin-anchors/plugin.css">
<link rel="stylesheet" href="gitbook/gitbook-plugin-highlight/website.css">
<link rel="stylesheet" href="styles/website.css">
<meta name="HandheldFriendly" content="true"/>
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<link rel="apple-touch-icon-precomposed" sizes="152x152" href="gitbook/images/apple-touch-icon-precomposed-152.png">
<link rel="shortcut icon" href="gitbook/images/favicon.ico" type="image/x-icon">
<link rel="next" href="guides/GettingStarted.html" />
<link rel="shortcut icon" href='img/favicon.png' type="image/x-icon">
</head>
<body>
<div class="book">
<div class="book-summary">
<div id="book-search-input" role="search">
<input type="text" placeholder="Type to search" />
</div>
<nav role="navigation">
<ul class="summary">
<li class="chapter " data-level="1.1" >
<span>
Nylas Mail SDK Guides
</span>
</li>
<li class="chapter active" data-level="1.2" data-path="./">
<a href="./">
Introduction
</a>
</li>
<li class="chapter " data-level="1.3" data-path="guides/GettingStarted.html">
<a href="guides/GettingStarted.html">
Getting Started
</a>
</li>
<li class="chapter " data-level="1.4" data-path="guides/GettingStarted-2.html">
<a href="guides/GettingStarted-2.html">
Getting Started Part 2
</a>
</li>
<li class="chapter " data-level="1.5" data-path="guides/PackageOverview.html">
<a href="guides/PackageOverview.html">
Building a Package
</a>
</li>
<li class="chapter " data-level="1.6" data-path="guides/InterfaceConcepts.html">
<a href="guides/InterfaceConcepts.html">
Interface Concepts
</a>
</li>
<li class="chapter " data-level="1.7" data-path="guides/React.html">
<a href="guides/React.html">
UI Components
</a>
</li>
<li class="chapter " data-level="1.8" data-path="guides/Architecture.html">
<a href="guides/Architecture.html">
Application Architecture
</a>
</li>
<li class="chapter " data-level="1.9" data-path="guides/Debugging.html">
<a href="guides/Debugging.html">
Debugging Nylas Mail
</a>
</li>
<li class="chapter " data-level="1.10" data-path="guides/Database.html">
<a href="guides/Database.html">
Accessing the Database
</a>
</li>
<li class="chapter " data-level="1.11" data-path="guides/ComposerExtensions.html">
<a href="guides/ComposerExtensions.html">
Extending the Composer
</a>
</li>
<li class="chapter " data-level="1.12" data-path="guides/WritingSpecs.html">
<a href="guides/WritingSpecs.html">
Writing Tests
</a>
</li>
<li class="chapter " data-level="1.13" data-path="guides/IntegrationTesting.html">
<a href="guides/IntegrationTesting.html">
Integration Testing
</a>
</li>
<li class="chapter " data-level="1.14" data-path="guides/Windows.html">
<a href="guides/Windows.html">
Developing on Windows
</a>
</li>
<li class="chapter " data-level="1.15" data-path="guides/FAQ.html">
<a href="guides/FAQ.html">
FAQ
</a>
</li>
<li class="header">Full Class Reference</li>
<li class="chapter " data-level="2.1" >
<span>
General
</span>
<ul class="articles">
<li class="chapter " data-level="2.1.1" data-path="classes/Actions.html">
<a href="classes/Actions.html">
Actions
</a>
</li>
<li class="chapter " data-level="2.1.2" data-path="classes/BufferedProcess.html">
<a href="classes/BufferedProcess.html">
BufferedProcess
</a>
</li>
<li class="chapter " data-level="2.1.3" data-path="classes/ChangeFolderTask.html">
<a href="classes/ChangeFolderTask.html">
ChangeFolderTask
</a>
</li>
<li class="chapter " data-level="2.1.4" data-path="classes/ChangeLabelsTask.html">
<a href="classes/ChangeLabelsTask.html">
ChangeLabelsTask
</a>
</li>
<li class="chapter " data-level="2.1.5" data-path="classes/ChangeMailTask.html">
<a href="classes/ChangeMailTask.html">
ChangeMailTask
</a>
</li>
<li class="chapter " data-level="2.1.6" data-path="classes/Color.html">
<a href="classes/Color.html">
Color
</a>
</li>
<li class="chapter " data-level="2.1.7" data-path="classes/Config.html">
<a href="classes/Config.html">
Config
</a>
</li>
<li class="chapter " data-level="2.1.8" data-path="classes/Contenteditable.html">
<a href="classes/Contenteditable.html">
Contenteditable
</a>
</li>
<li class="chapter " data-level="2.1.9" data-path="classes/KeyCommandsRegion.html">
<a href="classes/KeyCommandsRegion.html">
KeyCommandsRegion
</a>
</li>
<li class="chapter " data-level="2.1.10" data-path="classes/NylasEnvConstructor.html">
<a href="classes/NylasEnvConstructor.html">
NylasEnvConstructor
</a>
</li>
<li class="chapter " data-level="2.1.11" data-path="classes/QueryResultSet.html">
<a href="classes/QueryResultSet.html">
QueryResultSet
</a>
</li>
<li class="chapter " data-level="2.1.12" data-path="classes/QuerySubscriptionPool.html">
<a href="classes/QuerySubscriptionPool.html">
QuerySubscriptionPool
</a>
</li>
<li class="chapter " data-level="2.1.13" data-path="classes/StyleManager.html">
<a href="classes/StyleManager.html">
StyleManager
</a>
</li>
<li class="chapter " data-level="2.1.14" data-path="classes/Task.html">
<a href="classes/Task.html">
Task
</a>
</li>
<li class="chapter " data-level="2.1.15" data-path="classes/TaskQueueStatusStore.html">
<a href="classes/TaskQueueStatusStore.html">
TaskQueueStatusStore
</a>
</li>
<li class="chapter " data-level="2.1.16" data-path="classes/ThemeManager.html">
<a href="classes/ThemeManager.html">
ThemeManager
</a>
</li>
</ul>
</li>
<li class="chapter " data-level="2.2" >
<span>
Component Kit
</span>
<ul class="articles">
<li class="chapter " data-level="2.2.1" data-path="classes/EventedIFrame.html">
<a href="classes/EventedIFrame.html">
EventedIFrame
</a>
</li>
<li class="chapter " data-level="2.2.2" data-path="classes/Flexbox.html">
<a href="classes/Flexbox.html">
Flexbox
</a>
</li>
<li class="chapter " data-level="2.2.3" data-path="classes/InjectedComponent.html">
<a href="classes/InjectedComponent.html">
InjectedComponent
</a>
</li>
<li class="chapter " data-level="2.2.4" data-path="classes/InjectedComponentSet.html">
<a href="classes/InjectedComponentSet.html">
InjectedComponentSet
</a>
</li>
<li class="chapter " data-level="2.2.5" data-path="classes/Menu.html">
<a href="classes/Menu.html">
Menu
</a>
</li>
<li class="chapter " data-level="2.2.6" data-path="classes/MenuItem.html">
<a href="classes/MenuItem.html">
MenuItem
</a>
</li>
<li class="chapter " data-level="2.2.7" data-path="classes/MenuNameEmailItem.html">
<a href="classes/MenuNameEmailItem.html">
MenuNameEmailItem
</a>
</li>
<li class="chapter " data-level="2.2.8" data-path="classes/MultiselectActionBar.html">
<a href="classes/MultiselectActionBar.html">
MultiselectActionBar
</a>
</li>
<li class="chapter " data-level="2.2.9" data-path="classes/MultiselectList.html">
<a href="classes/MultiselectList.html">
MultiselectList
</a>
</li>
<li class="chapter " data-level="2.2.10" data-path="classes/ResizableRegion.html">
<a href="classes/ResizableRegion.html">
ResizableRegion
</a>
</li>
<li class="chapter " data-level="2.2.11" data-path="classes/RetinaImg.html">
<a href="classes/RetinaImg.html">
RetinaImg
</a>
</li>
<li class="chapter " data-level="2.2.12" data-path="classes/Spinner.html">
<a href="classes/Spinner.html">
Spinner
</a>
</li>
<li class="chapter " data-level="2.2.13" data-path="classes/UnsafeComponent.html">
<a href="classes/UnsafeComponent.html">
UnsafeComponent
</a>
</li>
</ul>
</li>
<li class="chapter " data-level="2.3" >
<span>
Extensions
</span>
<ul class="articles">
<li class="chapter " data-level="2.3.1" data-path="classes/ComposerExtension.html">
<a href="classes/ComposerExtension.html">
ComposerExtension
</a>
</li>
<li class="chapter " data-level="2.3.2" data-path="classes/ContenteditableExtension.html">
<a href="classes/ContenteditableExtension.html">
ContenteditableExtension
</a>
</li>
<li class="chapter " data-level="2.3.3" data-path="classes/DraftStoreExtension.html">
<a href="classes/DraftStoreExtension.html">
DraftStoreExtension
</a>
</li>
<li class="chapter " data-level="2.3.4" data-path="classes/MessageStoreExtension.html">
<a href="classes/MessageStoreExtension.html">
MessageStoreExtension
</a>
</li>
<li class="chapter " data-level="2.3.5" data-path="classes/MessageViewExtension.html">
<a href="classes/MessageViewExtension.html">
MessageViewExtension
</a>
</li>
</ul>
</li>
<li class="chapter " data-level="2.4" >
<span>
Models
</span>
<ul class="articles">
<li class="chapter " data-level="2.4.1" data-path="classes/Contact.html">
<a href="classes/Contact.html">
Contact
</a>
</li>
<li class="chapter " data-level="2.4.2" data-path="classes/Message.html">
<a href="classes/Message.html">
Message
</a>
</li>
<li class="chapter " data-level="2.4.3" data-path="classes/Model.html">
<a href="classes/Model.html">
Model
</a>
</li>
<li class="chapter " data-level="2.4.4" data-path="classes/Thread.html">
<a href="classes/Thread.html">
Thread
</a>
</li>
</ul>
</li>
<li class="chapter " data-level="2.5" >
<span>
Stores
</span>
<ul class="articles">
<li class="chapter " data-level="2.5.1" data-path="classes/AccountStore.html">
<a href="classes/AccountStore.html">
AccountStore
</a>
</li>
<li class="chapter " data-level="2.5.2" data-path="classes/ComponentRegistry.html">
<a href="classes/ComponentRegistry.html">
ComponentRegistry
</a>
</li>
<li class="chapter " data-level="2.5.3" data-path="classes/ContactStore.html">
<a href="classes/ContactStore.html">
ContactStore
</a>
</li>
<li class="chapter " data-level="2.5.4" data-path="classes/FocusedContentStore.html">
<a href="classes/FocusedContentStore.html">
FocusedContentStore
</a>
</li>
<li class="chapter " data-level="2.5.5" data-path="classes/TaskQueue.html">
<a href="classes/TaskQueue.html">
TaskQueue
</a>
</li>
<li class="chapter " data-level="2.5.6" data-path="classes/WorkspaceStore.html">
<a href="classes/WorkspaceStore.html">
WorkspaceStore
</a>
</li>
</ul>
</li>
<li class="chapter " data-level="2.6" >
<span>
Database
</span>
<ul class="articles">
<li class="chapter " data-level="2.6.1" data-path="classes/Attribute.html">
<a href="classes/Attribute.html">
Attribute
</a>
</li>
<li class="chapter " data-level="2.6.2" data-path="classes/AttributeBoolean.html">
<a href="classes/AttributeBoolean.html">
AttributeBoolean
</a>
</li>
<li class="chapter " data-level="2.6.3" data-path="classes/AttributeCollection.html">
<a href="classes/AttributeCollection.html">
AttributeCollection
</a>
</li>
<li class="chapter " data-level="2.6.4" data-path="classes/AttributeDateTime.html">
<a href="classes/AttributeDateTime.html">
AttributeDateTime
</a>
</li>
<li class="chapter " data-level="2.6.5" data-path="classes/AttributeJoinedData.html">
<a href="classes/AttributeJoinedData.html">
AttributeJoinedData
</a>
</li>
<li class="chapter " data-level="2.6.6" data-path="classes/AttributeNumber.html">
<a href="classes/AttributeNumber.html">
AttributeNumber
</a>
</li>
<li class="chapter " data-level="2.6.7" data-path="classes/AttributeObject.html">
<a href="classes/AttributeObject.html">
AttributeObject
</a>
</li>
<li class="chapter " data-level="2.6.8" data-path="classes/AttributeServerId.html">
<a href="classes/AttributeServerId.html">
AttributeServerId
</a>
</li>
<li class="chapter " data-level="2.6.9" data-path="classes/AttributeString.html">
<a href="classes/AttributeString.html">
AttributeString
</a>
</li>
<li class="chapter " data-level="2.6.10" data-path="classes/DatabaseStore.html">
<a href="classes/DatabaseStore.html">
DatabaseStore
</a>
</li>
<li class="chapter " data-level="2.6.11" data-path="classes/Matcher.html">
<a href="classes/Matcher.html">
Matcher
</a>
</li>
<li class="chapter " data-level="2.6.12" data-path="classes/ModelQuery.html">
<a href="classes/ModelQuery.html">
ModelQuery
</a>
</li>
<li class="chapter " data-level="2.6.13" data-path="classes/SortOrder.html">
<a href="classes/SortOrder.html">
SortOrder
</a>
</li>
</ul>
</li>
<li class="chapter " data-level="2.7" >
<span>
Drafts
</span>
<ul class="articles">
<li class="chapter " data-level="2.7.1" data-path="classes/DraftChangeSet.html">
<a href="classes/DraftChangeSet.html">
DraftChangeSet
</a>
</li>
<li class="chapter " data-level="2.7.2" data-path="classes/DraftEditingSession.html">
<a href="classes/DraftEditingSession.html">
DraftEditingSession
</a>
</li>
<li class="chapter " data-level="2.7.3" data-path="classes/DraftStore.html">
<a href="classes/DraftStore.html">
DraftStore
</a>
</li>
</ul>
</li>
<li class="chapter " data-level="2.8" >
<span>
NylasEnv
</span>
<ul class="articles">
<li class="chapter " data-level="2.8.1" data-path="classes/PackageManager.html">
<a href="classes/PackageManager.html">
PackageManager
</a>
</li>
</ul>
</li>
<li class="chapter " data-level="2.9" >
<span>
Atom
</span>
</li>
<li class="divider"></li>
<li>
<a href="https://www.gitbook.com" target="blank" class="gitbook-link">
Published with GitBook
</a>
</li>
</ul>
</nav>
</div>
<div class="book-body">
<div class="body-inner">
<div class="book-header" role="navigation">
<!-- Title -->
<h1>
<i class="fa fa-circle-o-notch fa-spin"></i>
<a href="." >Introduction</a>
</h1>
</div>
<div class="page-wrapper" tabindex="-1" role="main">
<div class="page-inner">
<div id="book-search-results">
<div class="search-noresults">
<section class="normal markdown-section">
<h2 id="nylas-mail-plugin-sdk"><a name="nylas-mail-plugin-sdk" class="plugin-anchor" href="#nylas-mail-plugin-sdk"><i class="fa fa-link" aria-hidden="true"></i></a>Nylas Mail Plugin SDK</h2>
<center>
<img src="img/nylas-sdk-cuub@2x.png" width="200/">
</center>
<p>The Nylas SDK allows you to create powerful extensions to Nylas Mail, a mail client for Mac OS X, Windows, and Linux. Building on Nylas Mail saves time and allows you to build innovative new experiences fast.
<a href="http://nylas.github.io/nylas-mail/docs/GettingStartedPart1.html" target="_blank">Get Started</a></p>
<h4 id="installing-nylas-mail"><a name="installing-nylas-mail" class="plugin-anchor" href="#installing-nylas-mail"><i class="fa fa-link" aria-hidden="true"></i></a>Installing Nylas Mail</h4>
<p>Nylas Mail is available for Mac, Windows, and Linux. Download the latest build for your platform below:</p>
<ul>
<li><a href="https://edgehill.nylas.com/download?platform=darwin" target="_blank">Mac OS X</a></li>
<li><a href="https://edgehill.nylas.com/download?platform=linux" target="_blank">Linux</a></li>
<li><a href="https://edgehill.nylas.com/download?platform=win32" target="_blank">Windows</a></li>
</ul>
<h4 id="package-architecture"><a name="package-architecture" class="plugin-anchor" href="#package-architecture"><i class="fa fa-link" aria-hidden="true"></i></a>Package Architecture</h4>
<p>Packages lie at the heart of Nylas Mail. Each part of the core experience is a separate package that uses the Nylas Package API to add functionality to the client. Learn more about packages and create your first package.</p>
<ul>
<li><a href="GettingStarted.md">Create a Plugin</a></li>
<li><a href="PackageOverview.html">Plugin Overview</a></li>
</ul>
<h4 id="dive-deeper"><a name="dive-deeper" class="plugin-anchor" href="#dive-deeper"><i class="fa fa-link" aria-hidden="true"></i></a>Dive Deeper</h4>
<ul>
<li><a href="http://nylas.github.io/nylas-mail/docs/Architecture.html" target="_blank">Application Architecture</a></li>
<li><a href="http://nylas.github.io/nylas-mail/docs/React.html" target="_blank">React &amp; Component Injection</a></li>
<li><a href="http://nylas.github.io/nylas-mail/docs/InterfaceConcepts.html" target="_blank">Core Interface Concepts</a></li>
<li><a href="http://nylas.github.io/nylas-mail/docs/Database.html" target="_blank">Accessing the Database</a></li>
<li><a href="http://nylas.github.io/nylas-mail/docs/DraftStoreExtension.html" target="_blank">Draft Store Extensions</a></li>
</ul>
<h4 id="debugging-packages"><a name="debugging-packages" class="plugin-anchor" href="#debugging-packages"><i class="fa fa-link" aria-hidden="true"></i></a>Debugging Packages</h4>
<p>Nylas Mail is built on top of Electron, which runs the latest version of Chromium. Learn how to access debug tools in Electron and use our Developer Tools Extensions:</p>
<ul>
<li><a href="http://nylas.github.io/nylas-mail/docs/Debugging.html" target="_blank">Debugging in Nylas</a></li>
</ul>
<h4 id="questions"><a name="questions" class="plugin-anchor" href="#questions"><i class="fa fa-link" aria-hidden="true"></i></a>Questions?</h4>
<p>Need help? Check out the <a href="https://support.nylas.com/hc/en-us" target="_blank">FAQ</a> or post a question in the <a href="http://slack-invite.nylas.com/" target="_blank">slack channel</a>.</p>
<h4 id="building-these-docs"><a name="building-these-docs" class="plugin-anchor" href="#building-these-docs"><i class="fa fa-link" aria-hidden="true"></i></a>Building these docs</h4>
<p>Until my patch gets merged, docs need to be built manually using my fork.</p>
<pre><code>git clone git@github.com:grinich/gitbook.git
cd nylas-mail
./node_modules/.bin/gitbook alias ../gitbook latest
</code></pre><p>Then to actually build the docs:</p>
<pre><code>script/grunt docs
./node_modules/.bin/gitbook --gitbook=latest build . ./docs
</code></pre><!-- TODO
Smart Linkify references:
- https://github.com/markomanninen/gitbook-plugin-regexplace
- Figure out why infinitescroll isn't working
- Add examples
-->
</section>
</div>
<div class="search-results">
<div class="has-results">
<h1 class="search-results-title"><span class='search-results-count'></span> results matching "<span class='search-query'></span>"</h1>
<ul class="search-results-list"></ul>
</div>
<div class="no-results">
<h1 class="search-results-title">No results matching "<span class='search-query'></span>"</h1>
</div>
</div>
</div>
</div>
</div>
</div>
<a href="guides/GettingStarted.html" class="navigation navigation-next navigation-unique" aria-label="Next page: Getting Started">
<i class="fa fa-angle-right"></i>
</a>
</div>
<script>
var gitbook = gitbook || [];
gitbook.push(function() {
gitbook.page.hasChanged({"page":{"title":"Introduction","level":"1.2","depth":1,"next":{"title":"Getting Started","level":"1.3","depth":1,"path":"guides/GettingStarted.md","ref":"guides/GettingStarted.md","articles":[]},"previous":{"title":"Nylas Mail SDK Guides","level":"1.1","depth":1,"ref":"","articles":[]},"dir":"ltr"},"config":{"plugins":["search","lunr","-fontsettings","-sharing","anchors","github","editlink","favicon"],"root":"./docs_src","styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"pluginsConfig":{"editlink":{"label":"Edit This Page","multilingual":false,"base":"https://github.com/nylas/nylas-mail-docs/tree/master"},"github":{"url":"https://github.com/nylas/nylas-mail-docs"},"favicon":{"shortcut":"/img/favicon.png"},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"anchors":{},"highlight":{},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"theme":"default","pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"variables":{},"title":"Nylas Mail Plugin SDK","links":{"sharing":{"facebook":false,"twitter":false}},"gitbook":"3.2.2"},"file":{"path":"README.md","mtime":"2017-01-30T09:55:21.000Z","type":"markdown"},"gitbook":{"version":"3.2.2","time":"2017-01-30T10:28:53.038Z"},"basePath":".","book":{"language":""}});
});
</script>
</div>
<script src="gitbook/gitbook.js"></script>
<script src="gitbook/theme.js"></script>
<script src="gitbook/gitbook-plugin-search/search-engine.js"></script>
<script src="gitbook/gitbook-plugin-search/search.js"></script>
<script src="gitbook/gitbook-plugin-lunr/lunr.min.js"></script>
<script src="gitbook/gitbook-plugin-lunr/search-lunr.js"></script>
<script src="gitbook/gitbook-plugin-github/plugin.js"></script>
<script src="gitbook/gitbook-plugin-editlink/plugin.js"></script>
</body>
</html>