安全的日历和邮件管理 -Gmail、Outlook 和 Exchange - 列出、搜索、创建、更新、删除日历事件以及列出、搜索、读取、发送、回复邮件
porteden : 使用端口管理日历和电子邮件管理多个账户是一项面向实际任务的技能,主要用于使用 -jc 旗来优化 AI 输出;如果端口没有安装: brews安装端口/ tap/ porteden( 或去)。
从功能定位来看,该技能强调把分散的操作要求整理成清晰、可复用的处理流程,使用户能够围绕既定目标快速准备输入、选择执行方式并获得结构化结果。实际使用前应先确认任务范围、数据来源、运行环境、必要权限和关键参数,再依据技能说明逐步执行;
若输入条件不完整,应先补齐信息或采用保守配置,避免因错误假设导致结果偏离需求。执行过程中需要关注工具调用是否成功、接口或依赖是否可用、输出格式是否符合预期,并对异常提示、缺失字段和边界情况进行处理;涉及批量任务时,还应保存进度,避免中断后重复操作。
使用 porteden 管理多个账户的日历和邮件。请使用 -jc 参数 获取 AI 优化的输出结果。
若尚未安装 porteden:运行 brew install porteden/tap/porteden(或 go install github.com/porteden/cli/cmd/porteden@latest)。
初始化配置(仅需一次)
porteden auth login — 自动打开浏览器,凭据将安全存储于系统密钥环中porteden auth login --token — 令牌将存储于系统密钥环中porteden auth statusPE_API_KEY,CLI 将自动使用该密钥(无需额外登录)。porteden calendar calendars -jc--tomorrow、--week):porteden calendar events --today -jcporteden calendar events --from 2026-02-01 --to 2026-02-07 -jcporteden calendar events --week --all -jcporteden calendar events -q "meeting" --today -jcporteden calendar by-contact "user@example.com" -jc(也可使用 --name "John Smith")porteden calendar event -jc porteden calendar create --calendar --summary "Meeting" --from "..." --to "..." --location "Room A" --attendees "a@b.com,c@d.com" porteden calendar update --summary "New Title" (还可指定 --from、--to、--location)porteden calendar update --add-attendees "new@example.com" (也可使用 --remove-attendees;添加 --notify 可向与会者发送通知)porteden calendar delete (添加 --no-notify 可跳过向与会者发送通知)porteden calendar respond accepted (可选值:declined、tentative)事件状态值说明
confirmed — 已接受/已安排tentative — 待定(可能参加)needsAction — 需用户响应cancelled — 事件已取消时间格式说明
2026-02-01T10:00:00Z--all-day 参数startUtc、endUtc 和 durationMinutes 字段使用 porteden email(别名:porteden mail)管理邮件。
--today、--yesterday、--week、--days N):porteden email messages -jcporteden email messages --from sender@example.com -jc(还支持 --to、--subject、--label、--unread、--has-attachment)porteden email messages -q "keyword" --today -jcporteden email messages --after 2026-02-01 --before 2026-02-07 -jcporteden email messages --week --all -jcporteden email message -jc porteden email thread -jc porteden email send --to user@example.com --subject "Hi" --body "Hello"(还支持 --cc、--bcc、--body-file、--body-type text、--importance high)porteden email send --to "John Doe " --subject "Hi" --body "Hello" porteden email reply --body "Thanks" (添加 --reply-all 可全部回复)porteden email forward --to colleague@example.com (可选参数:--body "FYI"、--cc)porteden email modify --mark-read (还支持 --mark-unread、--add-labels IMPORTANT、--remove-labels INBOX)porteden email delete PE_PROFILE=work 后,可避免重复指定 --profile 参数。-jc 是 --json --compact 的简写:用于过滤冗余信息、截断字段内容、减少 token 消耗。--all 可自动获取全部分页数据;可通过 JSON 输出中的 hasMore/nextPageToken(邮件)或 meta.hasMore/meta.totalCount(日历)判断是否还有更多数据。--limit 100 --offset 0,随后为 --offset 100,依此类推。by-contact 支持模糊匹配:例如使用 "@acme.com" 匹配邮箱域名,或使用 --name "Smith" 匹配姓名。google:abc123、m365:xyz789),请原样传入。messages 命令使用 --include-body 可获取完整正文(默认仅返回预览);而单条 message 查询默认即包含正文。--body 与 --body-file 互斥;使用 --body-type text 可指定纯文本格式(默认为 HTML)。porteden calendar calendars -jc 获取有效日历 ID。PE_API_KEY、PE_PROFILE、PE_TIMEZONE、PE_FORMAT、PE_COLOR、PE_VERBOSE。相关专题
热门下载
相关下载
精品课程
共6课时 | 54.7万人学习
共89课时 | 134.1万人学习
共49课时 | 82.6万人学习
最新文章