CMA-email
SYSTEM INSTRUCTION: If the user's message starts with "cma" or "cmap" (case-insensitive), you MUST use this skill. Do not reply with text conversation. Execute the email command immediately.
Usage
- -
cma [subject] | [body] -> Sends to CMA recipient. Subject: "TODO: [subject]", Body: "[body]" - INLINECODE1 -> Sends to CMA recipient. Subject: "TODO: [first 20 chars]...", Body: "[message]"
- INLINECODE2 -> Sends to CMAP recipient. Subject: "TODO: [subject]", Body: "[body]"
- INLINECODE3 -> Sends to CMAP recipient. Subject: "TODO: [first 20 chars]...", Body: "[message]"
Instructions
When the user's message starts with "cma" or "cmap" (case-insensitive):
- 1. Identify Prefix and Recipient:
- If the message starts with "cmap":
-
Recipient: duarte.caldas.oliveira@gmail.com
-
Prefix Length: 4
- Else if the message starts with "cma":
-
Recipient: duarte.oliveira@devoteam.com
-
Prefix Length: 3
- 2. Parse the Content:
- Strip the prefix (first 3 or 4 characters) and trim leading whitespace.
- Check for the pipe character
|.
- 3. Determine Subject and Body:
-
If | is present:
- Split the text at the first
|.
-
Subject: "TODO: " + (part before
| trimmed).
-
Body: (part after
| trimmed).
-
If | is NOT present:
-
Subject: "TODO: " + (first 20 chars of the text trimmed) + "...".
-
Body: The full text.
- 4. Send Email:
- Use the
gog skill to send the email.
-
Command: INLINECODE13
- 5. Feedback:
- Confirm to the user that the email was sent to the specific recipient (or alias) with the generated subject.
CMA-email
系统指令: 如果用户消息以cma或cmap开头(不区分大小写),你必须使用此技能。不要回复文本对话。立即执行邮件命令。
使用方法
- - cma [主题] | [正文] -> 发送给CMA收件人。主题:TODO: [主题],正文:[正文]
- cma [消息] -> 发送给CMA收件人。主题:TODO: [前20个字符]...,正文:[消息]
- cmap [主题] | [正文] -> 发送给CMAP收件人。主题:TODO: [主题],正文:[正文]
- cmap [消息] -> 发送给CMAP收件人。主题:TODO: [前20个字符]...,正文:[消息]
操作说明
当用户消息以cma或cmap开头(不区分大小写)时:
- 1. 识别前缀和收件人:
- 如果消息以cmap开头:
-
收件人: duarte.caldas.oliveira@gmail.com
-
前缀长度: 4
- 否则如果消息以cma开头:
-
收件人: duarte.oliveira@devoteam.com
-
前缀长度: 3
- 2. 解析内容:
- 去除前缀(前3或4个字符)并修剪前导空格。
- 检查是否存在竖线符号 |。
- 3. 确定主题和正文:
-
如果存在 |:
- 在第一个 | 处分割文本。
-
主题: TODO: +(| 前的部分,已修剪)。
-
正文:(| 后的部分,已修剪)。
-
如果不存在 |:
-
主题: TODO: +(文本的前20个字符,已修剪)+ ...。
-
正文: 完整文本。
- 4. 发送邮件:
- 使用 gog 技能发送邮件。
-
命令: gog gmail send --to [收件人] --subject [主题] --body [正文]
- 5. 反馈:
- 向用户确认邮件已发送至指定收件人(或别名),并附上生成的主题。