1NOTMUCH-REPLY(1) notmuch NOTMUCH-REPLY(1)
2
3
4
6 notmuch-reply - constructs a reply template for a set of messages
7
9 notmuch reply [option ...] <search-term> ...
10
12 Constructs a reply template for a set of messages.
13
14 To make replying to email easier, notmuch reply takes an existing set
15 of messages and constructs a suitable mail template. Its To: address is
16 set according to the original email in this way: if the Reply-to:
17 header is present and different from any To:/Cc: address it is used,
18 otherwise From: header is used. Unless --reply-to=sender is specified,
19 values from the To: and Cc: headers are copied, but not including any
20 of the current user's email addresses (as configured in primary_mail or
21 other_email in the .notmuch-config file) in the recipient list.
22
23 It also builds a suitable new subject, including Re: at the front (if
24 not already present), and adding the message IDs of the messages being
25 replied to to the References list and setting the In-Reply-To: field
26 correctly.
27
28 Finally, the original contents of the emails are quoted by prefixing
29 each line with '> ' and included in the body.
30
31 The resulting message template is output to stdout.
32
33 Supported options for reply include
34
35 --duplicate=N
36 Reply to duplicate number N. The numbering starts from 1, and
37 matches the order used by show --duplicate and search --out‐
38 put=files.
39
40 --format=(default|json|sexp|headers-only)
41
42 default
43 Includes subject and quoted message body as an RFC 2822
44 message.
45
46 json Produces JSON output containing headers for a reply mes‐
47 sage and the contents of the original message. This out‐
48 put can be used by a client to create a reply message in‐
49 telligently.
50
51 sexp Produces S-Expression output containing headers for a re‐
52 ply message and the contents of the original message.
53 This output can be used by a client to create a reply
54 message intelligently.
55
56 headers-only
57 Only produces In-Reply-To, References, To, Cc, and Bcc
58 headers.
59
60 --format-version=N
61 Use the specified structured output format version. This is in‐
62 tended for programs that invoke notmuch internally. If omitted,
63 the latest supported version will be used.
64
65 --reply-to=(all|sender)
66
67 all (default)
68 Replies to all addresses.
69
70 sender Replies only to the sender. If replying to user's own
71 message (Reply-to: or From: header is one of the user's
72 configured email addresses), try To:, Cc:, and Bcc: head‐
73 ers in this order, and copy values from the first that
74 contains something other than only the user's addresses.
75
76 --decrypt=(false|auto|true)
77 If true, decrypt any MIME encrypted parts found in the selected
78 content (i.e., "multipart/encrypted" parts). Status of the de‐
79 cryption will be reported (currently only supported with --for‐
80 mat=json and --format=sexp), and on successful decryption the
81 multipart/encrypted part will be replaced by the decrypted con‐
82 tent.
83
84 If auto, and a session key is already known for the message,
85 then it will be decrypted, but notmuch will not try to access
86 the user's secret keys.
87
88 Use false to avoid even automatic decryption.
89
90 Non-automatic decryption expects a functioning gpg-agent(1) to
91 provide any needed credentials. Without one, the decryption will
92 likely fail.
93
94 Default: auto
95
96 See notmuch-search-terms for details of the supported syntax for
97 <search-terms>.
98
99 Note: It is most common to use notmuch reply with a search string
100 matching a single message, (such as id:<message-id>), but it can be
101 useful to reply to several messages at once. For example, when a series
102 of patches are sent in a single thread, replying to the entire thread
103 allows for the reply to comment on issues found in multiple patches.
104 The default format supports replying to multiple messages at once, but
105 the JSON and S-Expression formats do not.
106
108 This command supports the following special exit status codes
109
110 20 The requested format version is too old.
111
112 21 The requested format version is too new.
113
115 notmuch, notmuch-config, notmuch-count, notmuch-dump, notmuch-hooks,
116 notmuch-insert, notmuch-new, notmuch-restore, notmuch-search,
117 notmuch-search-terms, notmuch-show, notmuch-tag
118
120 Carl Worth and many others
121
123 2009-2023, Carl Worth and many others
124
125
126
127
1280.38 Sep 12, 2023 NOTMUCH-REPLY(1)