name: email163 description: Read and search 163.com (NetEase) email accounts via POP3. Use when the user wants to access their 163.com mailbox, check emails, search messages, or read specific emails from snowshine@163.com or other 163.com addresses. Handles the "Unsafe Login" IMAP issue by using POP3 protocol.
Email163
Access 163.com (NetEase) email accounts using POP3 protocol.
Important: Why POP3, Not IMAP
163.com blocks IMAP's SELECT command with "Unsafe Login" error even with valid credentials. POP3 works without this restriction.
Quick Start
python3 scripts/email163.py check
Configuration
Before using, edit scripts/email163.py and update:
EMAIL_ADDRESS = "your_email@163.com"
AUTH_CODE = "your_authorization_code"
Getting Authorization Code:
- Login to mail.163.com
- Settings → POP3/SMTP/IMAP
- Enable the service
- Generate an authorization code (not your login password)
Commands
Check Connection
python3 scripts/email163.py check
Returns: Connection status and total email count.
List Recent Emails
python3 scripts/email163.py list 10
Returns: Most recent 10 emails with id, from, subject, date.
Read Full Email
python3 scripts/email163.py get 158
Returns: Complete email including body text.
Search Emails
python3 scripts/email163.py search "招商银行"
Returns: Matching emails from last 200 messages.
Output Format
All commands return JSON for easy parsing:
{
"success": true,
"emails": [...]
}
Limitations
- POP3 is read-only; cannot send or delete emails
- Search only checks last 200 emails (POP3 limitation)
- Cannot mark emails as read/unread
- Downloads full email content for reading
Resources
scripts/
email163.py- Main script for all email operations