---
name: "notmuch-import-patch"
section: "1"
platform: "linux"
package: "mailscripts"
version: "30-2"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/notmuch-import-patch"
---

# notmuch-import-patch(1)

import a git patch series into notmuch

## NAME

notmuch-import-patch - import a git patch series into notmuch

## SYNOPSIS

**notmuch-import-patch** \[***git-format-patch****(1) args*\]

## DESCRIPTION

**notmuch-import-patch** is a wrapper around [**maildir-import-patch**(1)](/maildir-import-patch/1.md) for users of notmuch.  It generates a patch series using [**git-format-patch**(1)](/git-format-patch/1.md), and then imports the series into your notmuch database as an e-mail thread, one message per patch.

## EXAMPLE

See "EXAMPLE" in [**maildir-import-patch**(1)](/maildir-import-patch/1.md), replacing the call to **maildir-import-patch** with a call to **notmuch-import-patch**.

## CONFIGURATION

**notmuch-import-patch** tries to read configuration from the file **$XDG\_CONFIG\_HOME/mailscripts/notmuch-import-patch**, or if XDG\_CONFIG\_HOME is not set, it falls back to trying to read **~/.config/mailscripts/notmuch-import-patch**.

The format is *key = value*, one per line.  The following configuration key is supported:

- **maildir**

  The full path to a maildir indexed by notmuch into which **notmuch-import-patch** will insert patches.  Defaults to the "patches" subdirectory of the **database.path** key in your notmuch configuration.

## SEE ALSO

[**notmuch**(1)](/notmuch/1.md), [**maildir-import-patch**(1)](/maildir-import-patch/1.md), [**git-format-patch**(1)](/git-format-patch/1.md), [**git-send-email**(1)](/git-send-email/1.md)

## AUTHOR

**notmuch-import-patch** was written by Sean Whitton \<spwhitton@spwhitton.name\>.
