← 返回
沟通协作 中文

Neomutt Commander

Read, search, organise, and draft emails using neomutt — a terminal IMAP client. List inbox, search, read HTML email via w3m, mark read/unread, manage folder...
使用 neomutt(终端 IMAP 客户端)读取、搜索、整理和撰写邮件,包括列出收件箱、搜索、在 w3m 中读取 HTML 邮件、标记已读/未读、管理文件夹等。
elmoyeldo
沟通协作 clawhub v1.0.0 1 版本 100000 Key: 无需
★ 0
Stars
📥 545
下载
💾 10
安装
1
版本
#latest

概述

Neomutt Commander

Use when the user wants to read, search, or organise their email inbox, read message content, manage folders, archive messages, or draft a reply or new message — all from the terminal via IMAP. Works with Gmail, Fastmail, Outlook, and any IMAP provider.

> If sending is not explicitly enabled or approved by the user, always save outgoing messages as a draft instead of sending.

Prerequisites

Install neomutt and w3m (HTML email renderer):

# macOS
brew install neomutt w3m

# Ubuntu / Debian
sudo apt install neomutt w3m

Configuration

Create ~/.config/neomutt/neomuttrc (or ~/.neomuttrc):

set imap_user = "user@gmail.com"
set imap_pass = "*****"

set folder = "imaps://imap.gmail.com:993"
set spoolfile = "+INBOX"
set ssl_force_tls = yes
set imap_keepalive = 300
set mail_check = 60
set postponed = "+[Gmail]/Drafts"

set sort = reverse-date

# HTML handling
auto_view text/html
alternative_order text/plain text/html

For other providers change imap.gmail.com:993 and [Gmail]/Drafts to match your server. For Gmail, imap_pass should be an App Password (Google Account → Security → 2-Step Verification → App Passwords).

Create ~/.config/neomutt/mailcap so w3m renders HTML parts:

text/html; w3m -I %{charset} -T text/html; copiousoutput;

Open neomutt

neomutt

Opens the inbox. To open a specific folder directly:

neomutt -f imaps://imap.gmail.com/INBOX
neomutt -f imaps://imap.gmail.com/[Gmail]/All%20Mail   # Gmail — All Mail
neomutt -f imaps://imap.fastmail.com/INBOX             # Fastmail example

Navigate the inbox

KeyAction
------
j / kMove down / up
EnterOpen message
qBack / quit
?Full keybinding help

Search messages

KeyPatternExample
---------
/Search visible list by subject/sender/invoice
lLimit view to a patternl ~f boss@example.com
l .Clear limit (show all)

Search pattern syntax: ~f · ~s · ~b · ~d

Read a message

Press Enter on a message. HTML parts render automatically via w3m.

KeyAction
------
Space / -Page down / up
hToggle headers
vView MIME attachments
qReturn to index

Mark as read / unread

KeyAction
------
AutomaticMessage is marked read when opened
NToggle unread on selected message
tTag message; then ;N to mark tagged set

Archive a message

Move the message out of INBOX into your archive folder:

s  →  type folder name  →  Enter

On Gmail the archive folder is [Gmail]/All Mail. Add a macro for one-key archiving:

macro index A "<save-message>=[Gmail]/All Mail<enter><enter>" "Archive"

Manage folders / labels

Folders in IMAP, labels in Gmail — same thing. Move or copy a message:

C  →  type folder name  →  Enter   # Copy (message stays in current folder too)
s  →  type folder name  →  Enter   # Move (removes from current folder)

Compose a new message

m

Fill in To:, Subject:, write body, then:

KeyAction
------
Ctrl-X (in editor)Finish editing and go to send screen
ySend (only if sending is approved)
PPostpone — saves to the drafts folder
qAbort / discard

> Default behaviour: press P to postpone (save draft) unless the user has explicitly asked to send.

Resume a draft

neomutt -f imaps://imap.gmail.com/[Gmail]/Drafts   # Gmail
neomutt -f imaps://imap.fastmail.com/Drafts        # Fastmail / generic

Open the draft and press e to edit, then y to send or P to re-postpone.

Quit

q  →  confirm with y

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-03-30 04:05 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

communication-collaboration

imap-smtp-email

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

cTrader Commander

elmoyeldo
下单和管理cTrader订单(市价、限价、止损),查看持仓,获取实时报价和OHLC K线,查询账户余额和权益。
★ 2 📥 814
communication-collaboration

Slack

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