Mailspring/docs/ChangeLabelsTask.html

23 lines
1.2 KiB
HTML
Raw Normal View History

2015-10-03 01:57:40 +08:00
---
layout: docs
title: ChangeLabelsTask
2015-10-04 04:07:17 +08:00
edit_url: "https://github.com/nylas/N1/blob/master/src/flux/tasks/change-labels-task.coffee"
2015-10-03 01:57:40 +08:00
---
2015-10-02 03:34:16 +08:00
2015-10-03 01:57:40 +08:00
<h2>Summary</h2>
2015-10-02 03:34:16 +08:00
2015-10-03 01:57:40 +08:00
<div class="markdown-from-sourecode">
<p><p>Create a new task to apply labels to a message or thread.</p>
2015-10-02 03:34:16 +08:00
<p>Takes an options object of the form:</p>
<ul>
2015-10-03 01:57:40 +08:00
<li>labelsToAdd: An <a href='https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/array'>Array</a> of <a href='label.html'>Label</a>s or <a href='label.html'>Label</a> ids to add</li>
<li>labelsToRemove: An <a href='https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/array'>Array</a> of <a href='label.html'>Label</a>s or <a href='label.html'>Label</a> ids to remove</li>
<li>threads: An <a href='https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/array'>Array</a> of <a href='thread.html'>Thread</a>s or <a href='thread.html'>Thread</a> ids</li>
<li>messages: An <a href='https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/array'>Array</a> of <a href='message.html'>Message</a>s or <a href='message.html'>Message</a> ids </li>
2015-10-02 03:34:16 +08:00
</ul>
</p>
</div>
2015-10-03 01:57:40 +08:00
<ul>
</ul>