Mail-126: NetEase 126 Email Management CLI for Openclaw

A robust command-line interface for managing NetEase 126.com email accounts, supporting everything from basic inbox tasks to advanced statistics.

slamw
v1.0.0
Apr 12, 2026
0
844
0

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install mail-126

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install mail-126 using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is Mail-126: NetEase 126 Email Management CLI?

Mail-126 is a specialized command-line tool designed for seamless integration with NetEase 126.com email services. It enables AI agents and developers to programmatically interact with their mailboxes, offering a comprehensive suite of features for email retrieval, composition, and management. By utilizing standard protocols like IMAP and SMTP, this skill provides a reliable bridge between your terminal and your 126.com account.

As a part of the Openclaw Skills ecosystem, it focuses on delivering structured JSON outputs, making it ideal for automated workflows and multi-agent coordination. The skill handles the complexities of email protocols and character encoding, ensuring that developers can focus on building higher-level logic rather than low-level mail handling.

Mail-126: NetEase 126 Email Management CLI Use Cases

  • Automating email notifications and reports for scheduled system tasks.
  • Searching and filtering through high volumes of 126.com emails using specific subject or date criteria.
  • Bulk managing inbox clutter by marking, moving, or deleting emails via scripts.
  • Integrating professional email capabilities into AI coding agent workflows for customer communication.

How Mail-126: NetEase 126 Email Management CLI Works

  1. The skill is initialized by creating a local data directory and default configuration files.
  2. The user configures their 126.com credentials using a secure authorization code obtained from the NetEase web interface.
  3. The tool establishes a secure connection to the 126.com IMAP and SMTP servers to verify the setup.
  4. Commands are issued through the CLI to interact with the mailbox (e.g., listing the inbox or sending a reply).
  5. The tool processes the request, handles character encoding, and returns a standardized JSON response for the AI agent or user to consume.

Mail-126: NetEase 126 Email Management CLI Setup

Before starting, ensure you have enabled IMAP/SMTP services in your 126.com settings and generated an authorization code.

# Step 1: Initialize data directory
python3 SKILL_DIR/scripts/mail_manager.py init

# Step 2: Configure email and authorization code
python3 SKILL_DIR/scripts/mail_manager.py config setup --email "[email protected]" --auth-code "XXXXXXXXXX"

# Step 3: Verify the connection
python3 SKILL_DIR/scripts/mail_manager.py config verify

Mail-126: NetEase 126 Email Management CLI Data Schema & Taxonomy

All commands output a standard JSON structure. This makes it compatible with various Openclaw Skills.

Field Description
status Success or error indicator
uid Unique email identifier within the folder
from Sender address and display name
subject The email subject line
body_text Plain text content of the message
attachments Array of attached files with name and size
flags Email status markers like seen, flagged, or starred

Mail-126: NetEase 126 Email Management CLI Advanced Features

  • Advanced email statistics including daily summaries and top sender reports.
  • Full support for attachments in both inbound and outbound emails.
  • Native handling of Chinese character sets (GBK/UTF-8) for international compatibility.
  • Robust error handling with automatic retries and secure Base64 credential storage.
  • Folder mapping for specific NetEase directories like Sent Messages and Junk.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*