662 lines
13 KiB
HTML
662 lines
13 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<meta http-equiv="Content-Security-Policy" content="default-src 'self'; script-src 'self'; style-src 'self'; font-src 'self' data:; img-src 'self' data:; connect-src 'self'; base-uri 'self'; form-action 'self' https://defcon.social https://bsky.app;">
|
|
<meta http-equiv="X-Content-Type-Options" content="nosniff">
|
|
<link rel="stylesheet" href="../assets/css/style.css">
|
|
<link rel="icon" type="image/x-icon" href="../favicon.ico">
|
|
<script>
|
|
// Apply theme immediately to prevent flash
|
|
(function() {
|
|
const theme = localStorage.getItem('theme') ||
|
|
(window.matchMedia && window.matchMedia('(prefers-color-scheme: dark)').matches ? 'dark' : 'light');
|
|
document.documentElement.setAttribute('data-theme', theme);
|
|
})();
|
|
</script>
|
|
<title>Neomutt Cheatsheet - Cheatsheets - Launch Pad</title>
|
|
</head>
|
|
<body>
|
|
<button class="theme-toggle" id="themeToggle" aria-label="Toggle dark mode">
|
|
<svg class="theme-icon theme-icon-moon" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z"></path></svg>
|
|
<svg class="theme-icon theme-icon-sun" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display: none;"><circle cx="12" cy="12" r="5"></circle><line x1="12" y1="1" x2="12" y2="3"></line><line x1="12" y1="21" x2="12" y2="23"></line><line x1="4.22" y1="4.22" x2="5.64" y2="5.64"></line><line x1="18.36" y1="18.36" x2="19.78" y2="19.78"></line><line x1="1" y1="12" x2="3" y2="12"></line><line x1="21" y1="12" x2="23" y2="12"></line><line x1="4.22" y1="19.78" x2="5.64" y2="18.36"></line><line x1="18.36" y1="5.64" x2="19.78" y2="4.22"></line></svg>
|
|
</button>
|
|
<br/><br/>
|
|
<div class="name">
|
|
__ _______________________ _________._________________________
|
|
\_ _____/ \______ \ / _ \ / _____/ / _____/ | | \_ _____/
|
|
| __) | _/ / /_\ \ / \ ___ / \ ___ | | | __)_
|
|
| \ | | \ / | \ \ \_\ \ \ \_\ \ | |___ | \
|
|
\___ / |____|_ / \____|__ / \______ / \______ / |_______ \ /_______ /
|
|
\/ \/ \/ \/ \/ \/ \/
|
|
</div>
|
|
<div class="blog-page-header">
|
|
<div class="blog-header-content">
|
|
<a href="/cheatsheets" class="back-link" title="Back to Cheatsheets">
|
|
<svg xmlns="http://www.w3.org/2000/svg" width="42" height="42" viewBox="0 0 24 24" class="home-icon"><path fill="currentColor" d="M10 20v-6h4v6h5v-8h3L12 3 2 12h3v8z"/></svg>
|
|
</a>
|
|
<h1 class="blog-page-title">Neomutt Cheatsheet</h1>
|
|
</div>
|
|
</div>
|
|
<div class="blog-post-container">
|
|
<div class="blog-posts-container" style="max-width: 900px; margin: 0 auto;">
|
|
<div class="blog-post">
|
|
<div class="blog-post-content">
|
|
<p><a href="index.html">← Back to cheatsheets</a></p>
|
|
<p><a href="../index.html">← Home</a></p>
|
|
<hr>
|
|
<h2>Basic Navigation</h2>
|
|
<h3>Index View (Mailbox List)</h3>
|
|
<ul>
|
|
<li>j or ↓ - Next message</li>
|
|
</ul>
|
|
<ul>
|
|
<li>k or ↑ - Previous message</li>
|
|
</ul>
|
|
<ul>
|
|
<li>Enter - Open message</li>
|
|
</ul>
|
|
<ul>
|
|
<li>q - Quit</li>
|
|
</ul>
|
|
<ul>
|
|
<li>Q - Quit and save</li>
|
|
</ul>
|
|
<ul>
|
|
<li>? - Help</li>
|
|
</ul>
|
|
<ul>
|
|
<li>: - Command prompt</li>
|
|
</ul>
|
|
<h3>Message View</h3>
|
|
<ul>
|
|
<li>j or ↓ - Next line</li>
|
|
</ul>
|
|
<ul>
|
|
<li>k or ↑ - Previous line</li>
|
|
</ul>
|
|
<ul>
|
|
<li>Space - Next page</li>
|
|
</ul>
|
|
<ul>
|
|
<li>- - Previous page</li>
|
|
</ul>
|
|
<ul>
|
|
<li>q - Return to index</li>
|
|
</ul>
|
|
<ul>
|
|
<li>Enter - Return to index</li>
|
|
</ul>
|
|
<ul>
|
|
<li>i - Return to index</li>
|
|
</ul>
|
|
<hr>
|
|
<h2>Message Operations</h2>
|
|
<h3>Reading Messages</h3>
|
|
<ul>
|
|
<li>Enter - View message</li>
|
|
</ul>
|
|
<ul>
|
|
<li>o - Sort messages</li>
|
|
</ul>
|
|
<ul>
|
|
<li>O - Reverse sort</li>
|
|
</ul>
|
|
<ul>
|
|
<li>s - Save message to mailbox</li>
|
|
</ul>
|
|
<ul>
|
|
<li>S - Save message (with prompt)</li>
|
|
</ul>
|
|
<ul>
|
|
<li>c - Copy message to mailbox</li>
|
|
</ul>
|
|
<ul>
|
|
<li>C - Copy message (with prompt)</li>
|
|
</ul>
|
|
<ul>
|
|
<li>$ - Save message to file</li>
|
|
</ul>
|
|
<ul>
|
|
<li>| - Pipe message to command</li>
|
|
</ul>
|
|
<ul>
|
|
<li>e - Edit message</li>
|
|
</ul>
|
|
<ul>
|
|
<li>v - View attachment</li>
|
|
</ul>
|
|
<ul>
|
|
<li>V - View attachment (with prompt)</li>
|
|
</ul>
|
|
<h3>Marking Messages</h3>
|
|
<ul>
|
|
<li>d - Delete message</li>
|
|
</ul>
|
|
<ul>
|
|
<li>u - Undelete message</li>
|
|
</ul>
|
|
<ul>
|
|
<li>D - Delete tagged messages</li>
|
|
</ul>
|
|
<ul>
|
|
<li>U - Undelete all messages</li>
|
|
</ul>
|
|
<ul>
|
|
<li>* - Tag message</li>
|
|
</ul>
|
|
<ul>
|
|
<li>t - Tag message (alternative)</li>
|
|
</ul>
|
|
<ul>
|
|
<li>T - Tag pattern</li>
|
|
</ul>
|
|
<ul>
|
|
<li>~ - Invert tags</li>
|
|
</ul>
|
|
<ul>
|
|
<li>; - Tag prefix</li>
|
|
</ul>
|
|
<ul>
|
|
<li>^T - Tag thread</li>
|
|
</ul>
|
|
<ul>
|
|
<li>^U - Untag thread</li>
|
|
</ul>
|
|
<ul>
|
|
<li>^N - Tag new messages</li>
|
|
</ul>
|
|
<ul>
|
|
<li>^O - Tag old messages</li>
|
|
</ul>
|
|
<ul>
|
|
<li>^A - Tag all messages</li>
|
|
</ul>
|
|
<ul>
|
|
<li>^D - Tag deleted messages</li>
|
|
</ul>
|
|
<ul>
|
|
<li>^F - Tag flagged messages</li>
|
|
</ul>
|
|
<ul>
|
|
<li>^L - Tag messages matching pattern</li>
|
|
</ul>
|
|
<ul>
|
|
<li>^R - Tag read messages</li>
|
|
</ul>
|
|
<ul>
|
|
<li>^S - Tag subscribed messages</li>
|
|
</ul>
|
|
<ul>
|
|
<li>^T - Tag thread</li>
|
|
</ul>
|
|
<ul>
|
|
<li>^U - Tag unread messages</li>
|
|
</ul>
|
|
<h3>Message Flags</h3>
|
|
<ul>
|
|
<li>F - Flag message</li>
|
|
</ul>
|
|
<ul>
|
|
<li>W - Toggle word wrap</li>
|
|
</ul>
|
|
<ul>
|
|
<li>P - Print message</li>
|
|
</ul>
|
|
<ul>
|
|
<li>@ - Toggle subscribed flag</li>
|
|
</ul>
|
|
<ul>
|
|
<li>! - Toggle important flag</li>
|
|
</ul>
|
|
<hr>
|
|
<h2>Composing Messages</h2>
|
|
<h3>Starting Composition</h3>
|
|
<ul>
|
|
<li>m - Compose new message</li>
|
|
</ul>
|
|
<ul>
|
|
<li>r - Reply to sender</li>
|
|
</ul>
|
|
<ul>
|
|
<li>R - Reply to all</li>
|
|
</ul>
|
|
<ul>
|
|
<li>g - Group reply</li>
|
|
</ul>
|
|
<ul>
|
|
<li>G - Group reply to all</li>
|
|
</ul>
|
|
<ul>
|
|
<li>f - Forward message</li>
|
|
</ul>
|
|
<ul>
|
|
<li>b - Bounce message</li>
|
|
</ul>
|
|
<ul>
|
|
<li>Esc e - Edit message</li>
|
|
</ul>
|
|
<h3>Composition Mode</h3>
|
|
<ul>
|
|
<li>y - Send message</li>
|
|
</ul>
|
|
<ul>
|
|
<li>a - Attach file</li>
|
|
</ul>
|
|
<ul>
|
|
<li>A - Attach file (with prompt)</li>
|
|
</ul>
|
|
<ul>
|
|
<li>r - Edit recipients</li>
|
|
</ul>
|
|
<ul>
|
|
<li>s - Edit subject</li>
|
|
</ul>
|
|
<ul>
|
|
<li>c - Edit CC</li>
|
|
</ul>
|
|
<ul>
|
|
<li>b - Edit BCC</li>
|
|
</ul>
|
|
<ul>
|
|
<li>Esc k - Edit message</li>
|
|
</ul>
|
|
<ul>
|
|
<li>Esc t - Edit To field</li>
|
|
</ul>
|
|
<ul>
|
|
<li>Esc s - Edit Subject field</li>
|
|
</ul>
|
|
<ul>
|
|
<li>Esc c - Edit CC field</li>
|
|
</ul>
|
|
<ul>
|
|
<li>Esc b - Edit BCC field</li>
|
|
</ul>
|
|
<ul>
|
|
<li>Esc a - Attach file</li>
|
|
</ul>
|
|
<ul>
|
|
<li>Esc d - Detach file</li>
|
|
</ul>
|
|
<ul>
|
|
<li>Esc i - Include message</li>
|
|
</ul>
|
|
<ul>
|
|
<li>Esc p - PGP menu</li>
|
|
</ul>
|
|
<ul>
|
|
<li>Esc e - Edit message</li>
|
|
</ul>
|
|
<ul>
|
|
<li>Esc v - View message</li>
|
|
</ul>
|
|
<ul>
|
|
<li>Esc h - Edit headers</li>
|
|
</ul>
|
|
<ul>
|
|
<li>Esc l - Edit list of headers</li>
|
|
</ul>
|
|
<ul>
|
|
<li>Esc q - Abort composition</li>
|
|
</ul>
|
|
<ul>
|
|
<li>Esc y - Send message</li>
|
|
</ul>
|
|
<hr>
|
|
<h2>Mailbox Operations</h2>
|
|
<h3>Opening Mailboxes</h3>
|
|
<ul>
|
|
<li>c - Change mailbox</li>
|
|
</ul>
|
|
<ul>
|
|
<li>o - Open mailbox</li>
|
|
</ul>
|
|
<ul>
|
|
<li>y - Synchronize mailbox</li>
|
|
</ul>
|
|
<ul>
|
|
<li>$ - Save to mailbox</li>
|
|
</ul>
|
|
<ul>
|
|
<li>s - Save to mailbox (with prompt)</li>
|
|
</ul>
|
|
<h3>Mailbox List</h3>
|
|
<ul>
|
|
<li>c - Change mailbox</li>
|
|
</ul>
|
|
<ul>
|
|
<li>o - Open mailbox</li>
|
|
</ul>
|
|
<ul>
|
|
<li>C - Copy mailbox</li>
|
|
</ul>
|
|
<ul>
|
|
<li>d - Delete mailbox</li>
|
|
</ul>
|
|
<ul>
|
|
<li>r - Rename mailbox</li>
|
|
</ul>
|
|
<ul>
|
|
<li>s - Subscribe/Unsubscribe</li>
|
|
</ul>
|
|
<ul>
|
|
<li>u - Unsubscribe</li>
|
|
</ul>
|
|
<ul>
|
|
<li>^N - Create mailbox</li>
|
|
</ul>
|
|
<ul>
|
|
<li>^D - Delete mailbox</li>
|
|
</ul>
|
|
<ul>
|
|
<li>^R - Rename mailbox</li>
|
|
</ul>
|
|
<hr>
|
|
<h2>Search and Filter</h2>
|
|
<h3>Search</h3>
|
|
<ul>
|
|
<li>/ - Search forward</li>
|
|
</ul>
|
|
<ul>
|
|
<li>? - Search backward</li>
|
|
</ul>
|
|
<ul>
|
|
<li>n - Next match</li>
|
|
</ul>
|
|
<ul>
|
|
<li>N - Previous match</li>
|
|
</ul>
|
|
<ul>
|
|
<li>\ - Clear search</li>
|
|
</ul>
|
|
<ul>
|
|
<li>Esc l - Limit to pattern</li>
|
|
</ul>
|
|
<ul>
|
|
<li>Esc L - Show limit</li>
|
|
</ul>
|
|
<ul>
|
|
<li>Esc u - Remove limit</li>
|
|
</ul>
|
|
<ul>
|
|
<li>Esc t - Toggle limit</li>
|
|
</ul>
|
|
<ul>
|
|
<li>^K - Search for pattern</li>
|
|
</ul>
|
|
<ul>
|
|
<li>^W - Clear pattern</li>
|
|
</ul>
|
|
<h3>Patterns</h3>
|
|
<ul>
|
|
<li>~A - All messages</li>
|
|
</ul>
|
|
<ul>
|
|
<li>~b - Search in body</li>
|
|
</ul>
|
|
<ul>
|
|
<li>~B - Search in entire message</li>
|
|
</ul>
|
|
<ul>
|
|
<li>~c - Search in CC</li>
|
|
</ul>
|
|
<ul>
|
|
<li>~C - Search in entire message</li>
|
|
</ul>
|
|
<ul>
|
|
<li>~d - Search in date</li>
|
|
</ul>
|
|
<ul>
|
|
<li>~e - Search in sender</li>
|
|
</ul>
|
|
<ul>
|
|
<li>~f - Search in from</li>
|
|
</ul>
|
|
<ul>
|
|
<li>~g - Search in message flags</li>
|
|
</ul>
|
|
<ul>
|
|
<li>~h - Search in header</li>
|
|
</ul>
|
|
<ul>
|
|
<li>~l - Search in label</li>
|
|
</ul>
|
|
<ul>
|
|
<li>~m - Search in message number</li>
|
|
</ul>
|
|
<ul>
|
|
<li>~n - Search in score</li>
|
|
</ul>
|
|
<ul>
|
|
<li>~r - Search in date range</li>
|
|
</ul>
|
|
<ul>
|
|
<li>~s - Search in subject</li>
|
|
</ul>
|
|
<ul>
|
|
<li>~t - Search in To</li>
|
|
</ul>
|
|
<ul>
|
|
<li>~u - Search in user</li>
|
|
</ul>
|
|
<ul>
|
|
<li>~v - Search in variable</li>
|
|
</ul>
|
|
<ul>
|
|
<li>~x - Search in references</li>
|
|
</ul>
|
|
<ul>
|
|
<li>~y - Search in X-Label</li>
|
|
</ul>
|
|
<ul>
|
|
<li>~z - Search in size</li>
|
|
</ul>
|
|
<ul>
|
|
<li>~= - Search in pattern</li>
|
|
</ul>
|
|
<ul>
|
|
<li>~! - Negate pattern</li>
|
|
</ul>
|
|
<ul>
|
|
<li>~| - OR pattern</li>
|
|
</ul>
|
|
<ul>
|
|
<li>~& - AND pattern</li>
|
|
</ul>
|
|
<hr>
|
|
<h2>Threading</h2>
|
|
<ul>
|
|
<li>^T - Toggle thread display</li>
|
|
</ul>
|
|
<ul>
|
|
<li>^U - Toggle thread display (alternative)</li>
|
|
</ul>
|
|
<ul>
|
|
<li>Esc u - Unthread</li>
|
|
</ul>
|
|
<ul>
|
|
<li>Esc t - Thread</li>
|
|
</ul>
|
|
<ul>
|
|
<li>^N - Collapse thread</li>
|
|
</ul>
|
|
<ul>
|
|
<li>^E - Expand thread</li>
|
|
</ul>
|
|
<ul>
|
|
<li>^O - Collapse all threads</li>
|
|
</ul>
|
|
<ul>
|
|
<li>^P - Expand all threads</li>
|
|
</ul>
|
|
<hr>
|
|
<h2>PGP Operations</h2>
|
|
<ul>
|
|
<li>Esc p - PGP menu</li>
|
|
</ul>
|
|
<ul>
|
|
<li>^K - Check for PGP keys</li>
|
|
</ul>
|
|
<ul>
|
|
<li>^E - Encrypt message</li>
|
|
</ul>
|
|
<ul>
|
|
<li>^S - Sign message</li>
|
|
</ul>
|
|
<ul>
|
|
<li>^V - Verify signature</li>
|
|
</ul>
|
|
<ul>
|
|
<li>^D - Decrypt message</li>
|
|
</ul>
|
|
<hr>
|
|
<h2>Configuration</h2>
|
|
<h3>Config File Location</h3>
|
|
<ul>
|
|
<li>~/.config/neomutt/neomuttrc - Main config</li>
|
|
</ul>
|
|
<ul>
|
|
<li>~/.config/neomutt/muttrc - Alternative config</li>
|
|
</ul>
|
|
<ul>
|
|
<li>~/.muttrc - Legacy config location</li>
|
|
</ul>
|
|
<h3>Example Key Bindings</h3>
|
|
<p>Customize key bindings in your config:</p>
|
|
<pre><code># Custom navigation bindings
|
|
bind index <down> next-entry
|
|
bind index <up> previous-entry
|
|
bind pager <down> next-line
|
|
bind pager <up> previous-line
|
|
bind pager <space> next-page
|
|
bind pager - previous-page
|
|
|
|
# Custom message operations
|
|
bind index d delete-message
|
|
bind index u undelete-message
|
|
bind index * tag-message
|
|
bind index t tag-message</code></pre>
|
|
<h3>Common Settings</h3>
|
|
<pre><code># Accounts
|
|
set from = "user@example.com"
|
|
set realname = "Your Name"
|
|
set imap_user = "user@example.com"
|
|
set imap_pass = "password"
|
|
|
|
# IMAP
|
|
set folder = "imaps://imap.example.com:993"
|
|
set spoolfile = "+INBOX"
|
|
set postponed = "+Drafts"
|
|
set record = "+Sent"
|
|
|
|
# Mailboxes
|
|
mailboxes = +INBOX
|
|
set mbox_type = Maildir
|
|
|
|
# Display
|
|
set sort = date
|
|
set sort_aux = date
|
|
set sort_re = date
|
|
set pager_index_lines = 10
|
|
set pager_context = 3
|
|
set pager_stop = yes
|
|
|
|
# Composition
|
|
set editor = "nvim"
|
|
set sendmail = "/usr/bin/msmtp"
|
|
set sendmail_wait = 0
|
|
set copy = yes
|
|
set include = yes
|
|
set forward_format = "Fwd: %s"
|
|
|
|
# Headers
|
|
ignore *
|
|
unignore from date subject to cc
|
|
hdr_order from to cc date subject
|
|
|
|
# Colors
|
|
color normal white black
|
|
color hdrdefault brightgreen black
|
|
color quoted green black
|
|
color signature brightgreen black
|
|
color indicator brightyellow red
|
|
color tree brightmagenta black
|
|
color status brightyellow black
|
|
color tilde brightcyan black
|
|
color attachment brightyellow black
|
|
color markers brightred black
|
|
color search brightwhite black
|
|
color error red black
|
|
color message brightcyan black
|
|
color prompt brightyellow black
|
|
color index brightcyan black ~N
|
|
color index brightgreen black ~F
|
|
color index brightred black ~D
|
|
|
|
# Key Bindings
|
|
bind index <down> next-entry
|
|
bind index <up> previous-entry
|
|
bind pager <down> next-line
|
|
bind pager <up> previous-line
|
|
bind pager <space> next-page
|
|
bind pager - previous-page</code></pre>
|
|
<hr>
|
|
<h2>Tips</h2>
|
|
<ul>
|
|
<li>Use :set to see all settings</li>
|
|
</ul>
|
|
<ul>
|
|
<li>Use :unset to unset a setting</li>
|
|
</ul>
|
|
<ul>
|
|
<li>Use :source to reload config</li>
|
|
</ul>
|
|
<ul>
|
|
<li>Use :exec to execute command</li>
|
|
</ul>
|
|
<ul>
|
|
<li>Use :push to push command</li>
|
|
</ul>
|
|
<ul>
|
|
<li>Use :shell to execute shell command</li>
|
|
</ul>
|
|
<ul>
|
|
<li>Use :mailbox to change mailbox</li>
|
|
</ul>
|
|
<ul>
|
|
<li>Use :quit to quit</li>
|
|
</ul>
|
|
<ul>
|
|
<li>Use :save to save message</li>
|
|
</ul>
|
|
<ul>
|
|
<li>Use :delete to delete message</li>
|
|
</ul>
|
|
<ul>
|
|
<li>Use :undelete to undelete message</li>
|
|
</ul>
|
|
<ul>
|
|
<li>Use :tag to tag message</li>
|
|
</ul>
|
|
<ul>
|
|
<li>Use :untag to untag message</li>
|
|
</ul>
|
|
<ul>
|
|
<li>Use :limit to limit messages</li>
|
|
</ul>
|
|
<ul>
|
|
<li>Use :unlimit to remove limit</li>
|
|
</ul>
|
|
<hr>
|
|
<p><a href="index.html">← Back to cheatsheets</a></p>
|
|
<p><a href="../index.html">← Home</a></p>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<script async type="text/javascript" src="../blog/analytics.js"></script>
|
|
<script src="../theme.js"></script>
|
|
</body>
|
|
</html> |