mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-02-28 18:14:08 +08:00
25 lines
883 B
HTML
25 lines
883 B
HTML
---
|
|
layout: docs
|
|
title: ChangeFolderTask
|
|
edit_url: "https://github.com/nylas/N1/blob/master/src/flux/tasks/change-folder-task.coffee"
|
|
---
|
|
|
|
<h2>Summary</h2>
|
|
|
|
<div class="markdown-from-sourecode">
|
|
<p><p>Create a new task to apply labels to a message or thread.</p>
|
|
<p>Takes an options object of the form:</p>
|
|
<ul>
|
|
<li>folder: The <a href='folder.html'>Folder</a> or <a href='folder.html'>Folder</a> IDs to move to</li>
|
|
<li>threads: An array of <a href='thread.html'>Thread</a>s or <a href='thread.html'>Thread</a> IDs</li>
|
|
<li>threads: An array of <a href='message.html'>Message</a>s or <a href='message.html'>Message</a> IDs</li>
|
|
<li>undoData: Since changing the folder is a destructive action,
|
|
undo tasks need to store the configuration of what folders messages
|
|
were in. When creating an undo task, we fill this parameter with
|
|
that configuration</li>
|
|
</ul>
|
|
</p>
|
|
</div>
|
|
|
|
<ul>
|
|
</ul>
|