.\" Man page generated from reStructuredText. . . .nr rst2man-indent-level 0 . .de1 rstReportMargin \\$1 \\n[an-margin] level \\n[rst2man-indent-level] level margin: \\n[rst2man-indent\\n[rst2man-indent-level]] - \\n[rst2man-indent0] \\n[rst2man-indent1] \\n[rst2man-indent2] .. .de1 INDENT .\" .rstReportMargin pre: . RS \\$1 . nr rst2man-indent\\n[rst2man-indent-level] \\n[an-margin] . nr rst2man-indent-level +1 .\" .rstReportMargin post: .. .de UNINDENT . RE .\" indent \\n[an-margin] .\" old: \\n[rst2man-indent\\n[rst2man-indent-level]] .nr rst2man-indent-level -1 .\" new: \\n[rst2man-indent\\n[rst2man-indent-level]] .in \\n[rst2man-indent\\n[rst2man-indent-level]]u .. .TH "NOTMUCH-REPLY" "1" "Mar 17, 2024" "0.38.3" "notmuch" .SH NAME notmuch-reply \- constructs a reply template for a set of messages .SH SYNOPSIS .sp \fBnotmuch\fP \fBreply\fP [option ...] <\fIsearch\-term\fP> ... .SH DESCRIPTION .sp Constructs a reply template for a set of messages. .sp To make replying to email easier, \fBnotmuch reply\fP takes an existing set of messages and constructs a suitable mail template. Its To: address is set according to the original email in this way: if the Reply\-to: header is present and different from any To:/Cc: address it is used, otherwise From: header is used. Unless \fB\-\-reply\-to=sender\fP is specified, values from the To: and Cc: headers are copied, but not including any of the current user\(aqs email addresses (as configured in primary_mail or other_email in the .notmuch\-config file) in the recipient list. .sp It also builds a suitable new subject, including Re: at the front (if not already present), and adding the message IDs of the messages being replied to to the References list and setting the In\-Reply\-To: field correctly. .sp Finally, the original contents of the emails are quoted by prefixing each line with \(aq> \(aq and included in the body. .sp The resulting message template is output to stdout. .sp Supported options for \fBreply\fP include .INDENT 0.0 .TP .B \-\-duplicate=N Reply to duplicate number N. The numbering starts from 1, and matches the order used by \fI\%show \-\-duplicate\fP and \fI\%search \-\-output=files\fP\&. .UNINDENT .INDENT 0.0 .TP .B \-\-format=(default|json|sexp|headers\-only) .INDENT 7.0 .TP .B default Includes subject and quoted message body as an RFC 2822 message. .TP .B json Produces JSON output containing headers for a reply message and the contents of the original message. This output can be used by a client to create a reply message intelligently. .TP .B sexp Produces S\-Expression output containing headers for a reply message and the contents of the original message. This output can be used by a client to create a reply message intelligently. .TP .B headers\-only Only produces In\-Reply\-To, References, To, Cc, and Bcc headers. .UNINDENT .UNINDENT .INDENT 0.0 .TP .B \-\-format\-version=N Use the specified structured output format version. This is intended for programs that invoke \fI\%notmuch\fP internally. If omitted, the latest supported version will be used. .UNINDENT .INDENT 0.0 .TP .B \-\-reply\-to=(all|sender) .INDENT 7.0 .TP .B all (default) Replies to all addresses. .TP .B sender Replies only to the sender. If replying to user\(aqs own message (Reply\-to: or From: header is one of the user\(aqs configured email addresses), try To:, Cc:, and Bcc: headers in this order, and copy values from the first that contains something other than only the user\(aqs addresses. .UNINDENT .UNINDENT .INDENT 0.0 .TP .B \-\-decrypt=(false|auto|true) If \fBtrue\fP, decrypt any MIME encrypted parts found in the selected content (i.e., \(dqmultipart/encrypted\(dq parts). Status of the decryption will be reported (currently only supported with \fB\-\-format=json\fP and \fB\-\-format=sexp\fP), and on successful decryption the multipart/encrypted part will be replaced by the decrypted content. .sp If \fBauto\fP, and a session key is already known for the message, then it will be decrypted, but notmuch will not try to access the user\(aqs secret keys. .sp Use \fBfalse\fP to avoid even automatic decryption. .sp Non\-automatic decryption expects a functioning \fBgpg\-agent(1)\fP to provide any needed credentials. Without one, the decryption will likely fail. .sp Default: \fBauto\fP .UNINDENT .sp See \fI\%notmuch\-search\-terms\fP for details of the supported syntax for . .sp Note: It is most common to use \fBnotmuch reply\fP with a search string matching a single message, (such as id:), but it can be useful to reply to several messages at once. For example, when a series of patches are sent in a single thread, replying to the entire thread allows for the reply to comment on issues found in multiple patches. The default format supports replying to multiple messages at once, but the JSON and S\-Expression formats do not. .SH EXIT STATUS .sp This command supports the following special exit status codes .INDENT 0.0 .TP .B \fB20\fP The requested format version is too old. .TP .B \fB21\fP The requested format version is too new. .UNINDENT .SH SEE ALSO .sp \fI\%notmuch\fP, \fI\%notmuch\-config\fP, \fI\%notmuch\-count\fP, \fI\%notmuch\-dump\fP, \fI\%notmuch\-hooks\fP, \fI\%notmuch\-insert\fP, \fI\%notmuch\-new\fP, \fI\%notmuch\-restore\fP, \fI\%notmuch\-search\fP, \fI\%notmuch\-search\-terms\fP, \fI\%notmuch\-show\fP, \fI\%notmuch\-tag\fP .SH AUTHOR Carl Worth and many others .SH COPYRIGHT 2009-2024, Carl Worth and many others .\" Generated by docutils manpage writer. .