1NOTMUCH-REPLY(1)                    notmuch                   NOTMUCH-REPLY(1)
2
3
4

NAME

6       notmuch-reply - constructs a reply template for a set of messages
7

SYNOPSIS

9       notmuch reply [option ...] <search-term> ...
10

DESCRIPTION

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       --format=(default|json|sexp|headers-only)
36
37              default
38                     Includes subject and quoted message body as an  RFC  2822
39                     message.
40
41              json   Produces  JSON output containing headers for a reply mes‐
42                     sage and the contents of the original message. This  out‐
43                     put can be used by a client to create a reply message in‐
44                     telligently.
45
46              sexp   Produces S-Expression output containing headers for a re‐
47                     ply  message  and  the  contents of the original message.
48                     This output can be used by a client  to  create  a  reply
49                     message intelligently.
50
51              headers-only
52                     Only  produces  In-Reply-To,  References, To, Cc, and Bcc
53                     headers.
54
55       --format-version=N
56              Use the specified structured output format version. This is  in‐
57              tended  for programs that invoke notmuch(1) internally. If omit‐
58              ted, the latest supported version will be used.
59
60       --reply-to=(all|sender)
61
62              all (default)
63                     Replies to all addresses.
64
65              sender Replies only to the sender. If  replying  to  user's  own
66                     message  (Reply-to:  or From: header is one of the user's
67                     configured email addresses), try To:, Cc:, and Bcc: head‐
68                     ers  in  this  order, and copy values from the first that
69                     contains something other than only the user's addresses.
70
71       --decrypt=(false|auto|true)
72              If true, decrypt any MIME encrypted parts found in the  selected
73              content  (i.e.,  "multipart/encrypted" parts). Status of the de‐
74              cryption will be reported (currently only supported with  --for‐
75              mat=json  and  --format=sexp),  and on successful decryption the
76              multipart/encrypted part will be replaced by the decrypted  con‐
77              tent.
78
79              If  auto,  and  a  session key is already known for the message,
80              then it will be decrypted, but notmuch will not  try  to  access
81              the user's secret keys.
82
83              Use false to avoid even automatic decryption.
84
85              Non-automatic  decryption  expects a functioning gpg-agent(1) to
86              provide any needed credentials. Without one, the decryption will
87              likely fail.
88
89              Default: auto
90
91       See  notmuch-search-terms(7)  for  details  of the supported syntax for
92       <search-terms>.
93
94       Note: It is most common to use  notmuch  reply  with  a  search  string
95       matching  a  single  message,  (such as id:<message-id>), but it can be
96       useful to reply to several messages at once. For example, when a series
97       of  patches  are sent in a single thread, replying to the entire thread
98       allows for the reply to comment on issues found  in  multiple  patches.
99       The  default format supports replying to multiple messages at once, but
100       the JSON and S-Expression formats do not.
101

EXIT STATUS

103       This command supports the following special exit status codes
104
105       20     The requested format version is too old.
106
107       21     The requested format version is too new.
108

SEE ALSO

110       notmuch(1), notmuch-config(1), notmuch-count(1), notmuch-dump(1),  not‐
111       much-hooks(5),  notmuch-insert(1),  notmuch-new(1), notmuch-restore(1),
112       notmuch-search(1),   notmuch-search-terms(7),   notmuch-show(1),   not‐
113       much-tag(1)
114

AUTHOR

116       Carl Worth and many others
117
119       2009-2022, Carl Worth and many others
120
121
122
123
1240.36                             Jun 25, 2022                 NOTMUCH-REPLY(1)
Impressum