1. Background
Kernel development is conducted entirely through plain-text email: patch submission, review, and discussion all occur on mailing lists. Email replies must follow strict formatting standards:
- Plain text (no HTML)
- Interleaved replies (insert replies in the middle of quoted text, rather than top-posting)
- Correct
In-Reply-To/Referencesheaders (to preserve thread continuity) >quote format (to mark the original text)- Line width not exceeding 72 characters
Commercial email clients such as Outlook are unsuitable for this workflow. They default to HTML, top-posting, and do not generate > quoting. This guide uses two tools widely adopted by the kernel community.
2. Toolchain
2.1 b4 — Kernel Mail Workflow Tool
b4 is a command-line tool designed specifically for Linux kernel development. Its main features include:
b4 mbox: Download a complete email thread from lore.kernel.org as a local mbox file, including replies and reviewsb4 am: Download a patch series as an mbox ready to apply withgit amb4 send: Submit patches to mailing lists (a replacement forgit send-email)b4 trailers: Collect Reviewed-by / Acked-by tags from mailing-list messages
In this guide, we use b4 mbox to download a review thread from lore and then process it with neomutt.
2.2 neomutt — Terminal Email Client
neomutt is a modern fork of the classic mutt client and is one of the most widely used email tools among kernel developers (Thunderbird is another common choice). Its advantages include:
- Native plain text: It does not generate HTML and naturally follows kernel email conventions
- Automatic quoting: It quotes the original message with
>and supports interleaved replies - Automatic headers:
In-Reply-To,References, andSubjectare extracted from the original message - Reply All (
g): It automatically fills all original To/Cc recipients - vim integration: Messages are edited with vim, giving kernel developers a familiar workflow
- Lightweight TUI: It works well over SSH
In short, neomutt automatically performs the work that you would otherwise have to do manually: constructing headers, adding > quotes, and filling In-Reply-To.
3. Software Installation and Configuration
3.1 b4 Installation
pip3 install b4
# Verify the installation
b4 --version
3.2 neomutt Installation and Configuration
Install neomutt:
sudo apt install -y neomutt
Perform this one-time configuration by opening ~/.neomuttrc and adding:
set from = "Your email"
set realname = "Your name"
set smtp_url = "smtp server:port"
set smtp_authenticators = ""
set ssl_starttls = no
set ssl_force_tls = no
set editor = "vim"
set attribution = "On %d, %n wrote:"
set include = yes
set indent_string = "> "
set edit_headers = yes
set text_flowed = no
set wrap = 72
set content_type = "text/plain"
set charset = "utf-8"
set send_charset = "utf-8"
alternative_order text/plain text/html
auto_view text/html
4. Reply Workflow
1. Download the email thread
cd /tmp
b4 mbox <message-id>
Example:
b4 mbox 6a2d7506-c474-4619-a3d5-e729468d68f4@google.com
Output: ./6a2d7506-c474-4619-a3d5-e729468d68f4@google.com.mbx
2. Open it with neomutt
neomutt -f /tmp/<message-id>.mbx
When the message list appears, use the arrow keys to select the message you want to answer.
3. Press g for a group reply
- At the
To:prompt, press Enter to confirm. - At the
Subject: Re: ...prompt, press Enter to confirm. - Vim opens automatically with the complete
>-quoted message already inserted.
4. Edit the reply in vim
At the top of the editor are the mail headers, followed by the quoted content:
From: Your name <Your email>
To: somebody <***@***.com>
Cc: ...
Subject: Re: [PATCH v1 2/5] ...
On Mon, 11 Apr 2025, somebody wrote:
> On 2026-04-27 06:05, your name wrote:
> > + function_name(a,b, ...
>
> How do you ensure that parameter a and ...
> ...without warning.
(Write your reply here)
> > + while(a) {
...
Editing guidelines:
| Operation | Description |
|---|---|
| Delete unnecessary quoted text | Optional; many people leave it in place |
Delete the sender’s signature (> Regards, > somebody) | Optional |
| Insert the reply immediately after the question | Required; this is an interleaved reply |
| Keep reply lines within 72 characters | Required |
| Do not reflow quoted code lines | Keep them unchanged |
Modify the Cc list:
In vim’s header area, edit the Cc: line directly to add or remove recipients:
Cc: a@amd.com, b@google.com,
..., dri-devel@lists.freedesktop.org
Save and exit with :wq.
5. Pre-send checks and a test message
Back at the neomutt send screen, the available keys are:
| Key | Function |
|---|---|
e | Re-edit the email (open vim again) |
t | Modify the To address |
c | Modify the Cc address |
y | Send |
q | Cancel without sending |
Before the official send, you can send a test copy to yourself.
Test send: Press e, enter vim, change To to your own address, delete Cc, save with :wq, then press y. Check your inbox to make sure the format is correct.
6. Send the real reply
After testing, run neomutt -f xxx.mbx again, press g, edit the reply, verify To/Cc, and press y to send.
Quick Reference
# Complete workflow (3 commands)
cd /tmp
b4 mbox <message-id>
neomutt -f /tmp/<message-id>.mbx
# neomutt operations
# ↑↓ Select message → g (group reply) → Enter → Enter → edit in vim → :wq → y to send
7. Tips for Reading Kernel Email
7.1 Understanding Quote Levels (the Meaning of >)
Kernel email uses > to identify quoted content. Each extra > represents one earlier round in the conversation. Read from the line with the most > characters (the oldest content) toward lines with fewer markers (the most recent content):
> > > This is what the first person said (oldest, three quote levels)
> >
> > This is the second person's reply (middle, two quote levels)
>
> This is the third person's reply (more recent, one quote level)
This is the current author's reply (most recent, no quote marker)
Practical example: a review involving four participants
> > > +static int
> > > +do_something(struct device *dev, unsigned long count,
> > > + unsigned long *result)
> > > +{
> > > + ret = lock_resource(dev, false);
> >
> > How do you ensure that the resource remains valid here?
>
> Good question. I think we need a refcount or fence here.
I agree. The resource must be pinned or have a callback
to handle invalidation before it gets reclaimed.
Meaning:
> > >— Code submitted by the original patch author (Person 1)> >— A reviewer asks about that code (Person 2)>— Another developer replies (Person 3)- No
>— The current author replies (Person 4, whose email you are reading)
7.2 Quote-Level Quick Reference
| Quote level | Meaning | Time |
|---|---|---|
> > > > | Oldest content (four rounds back) | Oldest |
> > > | Content from three rounds back | ↑ |
> > | Content from two rounds back | ↑ |
> | Content from the previous message | ↓ |
| No quote marker | Written by the current author | Most recent |
7.3 Tips for Reading Long Messages
1. Read the unquoted sections first
Skip all lines beginning with > and read only the paragraphs without >. They contain the current author’s views and conclusions, which are the core of the message.
2. Trace upward for context
If a reply is unclear, inspect the directly preceding >-quoted section—it is the text to which that reply responds. If it is still unclear, move upward through > > and the remaining quote levels.
3. Recognize the interleaved structure
Kernel messages are not one quotation block followed by one reply block. They alternate:
> Quoted question 1
Reply to question 1
> Quoted question 2
Reply to question 2
> > Quoted code snippet
> Reviewer's comment on that code
My response to the reviewer's comment
Each “quote → reply” pair is a separate discussion point and can be understood independently.
4. Read on lore.kernel.org
lore provides a better reading experience:
- Thread view clearly displays the reply relationships among messages
- Highlighting visually distinguishes quote levels
- URL format:
https://lore.kernel.org/all/<message-id>/
5. Read locally with b4
# Download the entire thread
b4 mbox <message-id>
# Open it in neomutt with thread view
neomutt -f /tmp/<message-id>.mbx
In neomutt, press t to toggle thread view and clearly display the message hierarchy.