Skip to main content
Glama

mcp-google-sheets

copy-email.ts992 B
import { createAction, Property } from '@activepieces/pieces-framework'; import { imapAuth, mailboxDropdown, copyEmail as copyImapEmail, } from '../common'; const props = { sourceMailbox: mailboxDropdown({ displayName: 'Source Folder', description: 'Folder to copy the email from.', required: true, }), uid: Property.Number({ displayName: 'Message UID', description: 'The UID of the email to copy.', required: true, }), targetMailbox: mailboxDropdown({ displayName: 'Target Folder', description: 'Folder to copy the email to.', required: true, }), }; export const copyEmail = createAction({ auth: imapAuth, name: 'copy_email', displayName: 'Copy Email', description: 'Copy an email to another mailbox', props, async run({ auth, propsValue }) { const { uid, sourceMailbox, targetMailbox } = propsValue; return await copyImapEmail({ auth, uid, sourceMailbox: sourceMailbox!, targetMailbox: targetMailbox! }); }, });

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/activepieces/activepieces'

If you have feedback or need assistance with the MCP directory API, please join our Discord server