Skip to content
Back to skills

163 Email Monitor

ASecurity

Connect to 163/126/yeah.net (Coremail) email via IMAP, read inbox, search emails, and send emails via SMTP. Activate when user asks to check email, read mail, send email, or monitor inbox on 163/126/yeah.net accounts. Handles the Coremail-specific IMAP ID command requirement that causes "Unsafe Login" errors in standard clients.

  • 2 stars
  • 0 votes
  • 0 copies
  • 5 views
  • Added September 9, 2026
securitypythonbash

Works with

  • cli

Security analysis

A100/100

Scanned September 9, 2026

npx -y skills add Lord1Egypt/awesome-skill-forge --skill 163-email-monitor --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of 163 Email Monitor?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for 163 Email Monitor
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/lord1egypt-163-email-monitor/badge)](https://www.skillsdirectory.com/skills/lord1egypt-163-email-monitor)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: 163-email-monitor
description: Connect to 163/126/yeah.net (Coremail) email via IMAP, read inbox, search emails, and send emails via SMTP. Activate when user asks to check email, read mail, send email, or monitor inbox on 163/126/yeah.net accounts. Handles the Coremail-specific IMAP ID command requirement that causes "Unsafe Login" errors in standard clients.
---

# 163 Email Monitor

## Key Insight: Coremail ID Command

163/126/yeah.net use Coremail which **requires an IMAP ID command before any mailbox operation**, otherwise returns "Unsafe Login" even with valid credentials.

## Setup

### Prerequisites

Credentials in `~/.openclaw/email-monitor/.env`:

```
IMAP_SERVER=imap.163.com
IMAP_PORT=993
SMTP_SERVER=smtp.163.com
SMTP_PORT=465
EMAIL_ADDRESS=your@163.com
EMAIL_PASSWORD=your_auth_code
```

The `EMAIL_PASSWORD` is the **授权码** (authorization code), not the login password. Users obtain it from: 163 Mail → Settings → POP3/SMTP/IMAP → Enable IMAP → Get authorization code.

### Server Reference

| Provider | IMAP Server | SMTP Server |
|----------|------------|------------|
| 163.com | imap.163.com:993 | smtp.163.com:465 |
| 126.com | imap.126.com:993 | smtp.126.com:465 |
| yeah.net | imap.yeah.net:993 | smtp.yeah.net:465 |

## Usage

All operations use `scripts/mail_client.py`:

```bash
# Read unread emails
python3 scripts/mail_client.py read --unread

# Read latest N emails
python3 scripts/mail_client.py read --latest 10

# Search emails by keyword
python3 scripts/mail_client.py search "amazon"

# Search by sender
python3 scripts/mail_client.py search --from "no-reply@amazon.com"

# Search by date range
python3 scripts/mail_client.py search --since 2026-03-01 --before 2026-03-23

# Send email
python3 scripts/mail_client.py send --to recipient@example.com --subject "Hello" --body "Content here"

# Send with attachment
python3 scripts/mail_client.py send --to recipient@example.com --subject "Report" --body "See attached" --attach /path/to/file.pdf
```

Pass `--env /path/to/.env` to override default config location.

## Troubleshooting

| Error | Cause | Fix |
|-------|-------|-----|
| `Unsafe Login` | Missing ID command | Use this skill's script (handles automatically) |
| `AUTHENTICATIONFAILED` | Wrong auth code | Regenerate 授权码 in 163 web settings |
| `LOGIN failed` | IMAP not enabled | Enable IMAP in 163 Mail → Settings |

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.