📄 readme.mail
字号:
QUILT MAIL COMMAND==================The mail command starts up the system editor ($EDITOR, or vi if $EDITORis undefined) with an template in Internet Message Format (RFC 2822).This template is used to generate an introduction, as well as onemessage for each patch in the series file. The template is used asfollows: The headers are used in each message generated, and modified asrequired. The template body is used only for the introduction.In the template, the headers can be modified, additional headers added,and unneeeded headers can be removed. The template header also containsa special Subject-Prefix header which defines a prefix for each subjectheader. The @num@ and @total@ macros in the Subject-Prefix header arereplaced with the patch number and the total number of patches,respectively. The patch number @num@ is zero-padded to the same widththat @total@ has.Each message is assigned a unique Message-Id header, and all messagesother than the introduction are made to refer to the introduction (usinga References header) for proper message threading in mail clients.Patch filenames are stored in Content-Disposition headers so that mailclients will know the original filename. The message timestamps in Dateheaders in each message is incremented by one second per message, startingwith the timestamp of the introduction.If a ~/.signature file exists, this file is appended to each messagegenerated.Recipients and headers can be added, and existing headers can bereplaced, individually in each message based on the headers in theintroduction. Quilt does not enforce a specific patch file format. Themail command has a built-in heuristic for extracting subjects frompatches, though: * if the patch starts with something that looks like a mail header, and there is a Subject header, use this as the subject, or else * if the patch has DESC a line followed by an EDESC line, use the text in between as the subject, or else * if the first paragraph is short enough to serve as a subject (150 characters or less), use the first paragraph as the subject.All bracketed fields and Fwd:, Fw:, Re:, Aw: are stripped from subjectheaders as well.If no subject can be extracted from a patch, or there are duplicatesubjects, the mail command will print an error message and abort.In case a patch header contains a line starting with `Cc:', `Acked-by:',or `Signed-off-by:', the email address specified is added to theCC header for this patch. If a patch header contains a line startingwith `To:', the email address specified is added to To header for thispatch.If the user specified in `To:', `Cc:', `Acked-by:', or `Signed-off-by:'equals the current user's name ($LOGNAME or $(whoami) if LOGNAME isundefined), this does not add a recipient.Each recipient will occur in the resulting message only once. Duplicatesare filtered out. This happens as the headers are read, so the relativeorder of the To, Cc, and Bcc headers should not be changed.Recipients are checked for RFC 2822 conformance (at least that is theintention; actually the checks are not perfect). This means that specialcharacters must be quoted, and 8-bit characters must be encoded. Inpractice it probably makes little sense to use anything fancy right now;this area still needs some work. Character set recognition and properqualifying is also still missing.The heuristic can be overridden by defining a quilt_mail_patch_filterfunction in ~/.quiltrc or /etc/quilt.quiltrc. This function is passedthe patch name as argument (without the $QUILT_PATCHES prefix). Itshall read the patch from standard input, and write a RFC 2822 messageheader and the patch to standard output. Headers of the form``Recipient-$X: ...'' denote recipients to be added to the $X header(for example, ``Recipient-Cc: agruen@suse.de''). Headers of the form``Replace-$X: ...'' specify that header $X is to be replaced by thisheader (for eaxmple, ``Replace-Subject: Patch description''). All otherheaders are appended to the existing headers.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -