Stage email-patches in your drafts folder.
Send format-patch output through an IMAP server by dropping it into your Drafts folder. Lets you review and send patches from your normal mail client.
A one-way pipe from format-patch into IMAP APPEND. Git formats the mail, imap-send uploads it as a draft, and your MUA does the actual sending.
git imap-send [-v] [-q] [--[no-]curl] < <mbox>
Reads an mbox-format stream on stdin (typically from git format-patch
--stdout) and APPENDs each message to imap.folder. All connection
parameters live in git-config under the imap.* namespace.| Flag | What it does |
|---|---|
-v, --verbose | Print the IMAP conversation; essential when auth or TLS is misbehaving. |
-q, --quiet | Suppress per-message progress output. |
--curl | Use libcurl for the IMAP transport instead of the built-in client. |
--no-curl | Force the built-in IMAP client even if Git was compiled with curl support. |
--nossl | ⚠️ Disable TLS. Only safe over an already-encrypted tunnel like SSH. |
git config imap.host imaps://mail.example.com && git config imap.user alice && git config imap.folder Draftsgit config imap.tunnel 'ssh -q user@127.0.0.1 /usr/sbin/imapd'git format-patch -M origin/master --stdout | git imap-send -vgit config imap.port 993 && git config --bool imap.sslverify falseHit each option, then Check answers. Score is recorded; Next is always open.