← 返回
沟通协作 Key

QQ Mail

Manage QQ Mail via IMAP/SMTP to read, send (with attachments), search emails by subject/sender/date, and list folders using Python.
使用 Python 通过 IMAP/SMTP 管理 QQ 邮箱,包括读取、发送(带附件)、按主题/发件人/日期搜索邮件以及列出文件夹。
pdpaer
沟通协作 clawhub v1.0.0 1 版本 99846.1 Key: 需要
★ 1
Stars
📥 1,926
下载
💾 187
安装
1
版本
#latest

概述

QQ Mail Manager

Manage QQ邮箱 via standard IMAP/SMTP protocols using Python scripts.

Prerequisites

The user must enable IMAP/SMTP in QQ Mail settings and obtain an authorization code (授权码):

  1. Log in to mail.qq.com → Settings (设置) → Account (账户)
  2. Enable IMAP/SMTP service
  3. Generate an authorization code (授权码) — this is NOT the QQ password

Configuration

The skill reads credentials from environment variables:

  • QQMAIL_USER — QQ email address (e.g. 123456789@qq.com)
  • QQMAIL_AUTH_CODE — Authorization code from QQ Mail settings (授权码)

Available Operations

Read recent emails

python3 {baseDir}/scripts/qqmail.py inbox --limit 10

Shows: sender, subject, date, and a text preview of each email.

Read a specific email by index

python3 {baseDir}/scripts/qqmail.py read --index 1

Shows the full email content (text body).

Send an email

python3 {baseDir}/scripts/qqmail.py send --to "recipient@example.com" --subject "Hello" --body "Email content here"

Send with attachment

python3 {baseDir}/scripts/qqmail.py send --to "recipient@example.com" --subject "Report" --body "See attached" --attachment "/path/to/file.pdf"

Search emails

python3 {baseDir}/scripts/qqmail.py search --subject "keyword"
python3 {baseDir}/scripts/qqmail.py search --from "sender@example.com"
python3 {baseDir}/scripts/qqmail.py search --since "2026-01-01"
python3 {baseDir}/scripts/qqmail.py search --subject "meeting" --since "2026-02-01" --limit 5

List mail folders

python3 {baseDir}/scripts/qqmail.py folders

Read from a specific folder

python3 {baseDir}/scripts/qqmail.py inbox --folder "Sent Messages" --limit 5

Error Handling

  • If authentication fails: verify QQMAIL_USER and QQMAIL_AUTH_CODE are set correctly.
  • If IMAP is not enabled: guide the user to enable it in QQ Mail settings.
  • Connection errors may indicate network issues or proxy requirements.

Notes

  • QQ Mail IMAP server: imap.qq.com:993 (SSL)
  • QQ Mail SMTP server: smtp.qq.com:465 (SSL)
  • All scripts use Python 3 standard library only (no pip install needed).
  • Email content is decoded with charset detection for proper Chinese display.

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-03-29 02:16 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

communication-collaboration

Slack

steipete
当需要通过 slack 工具从 Clawdbot 控制 Slack 时使用,包括在频道或私信中回复消息或置顶/取消置顶项目。
★ 157 📥 47,680
communication-collaboration

imap-smtp-email

gzlicanyi
使用IMAP/SMTP读取和发送邮件;检查新/未读邮件、获取内容、搜索邮箱、标记已读/未读、发送带附件的邮件。支持...
★ 114 📥 52,421
communication-collaboration

Himalaya

lamelas
{"answer":"通过IMAP/SMTP管理邮件的CLI。可在终端使用 `himalaya` 收发、回复、转发、搜索及整理邮件。支持多账户与MML(MIME元语言)编写邮件。"}
★ 68 📥 45,587