capsar.1

来自「<B>Digital的Unix操作系统VAX 4.2源码</B>」· 1 代码 · 共 166 行

1
166
字号
.TH capsar 1.SH Namecapsar \- prepares documents not in ASCII format for transport in the mail system.SH Syntax.B capsar [-c] [-t] [-x[hTD]] [\fIfile\fP].SH Description.NXR "capsar utility"The .PN capsarutility allows ULTRIX mail to support documents containingnon-ASCII data, such as DDIF.Only the DDIF and DOTS data types are currently supported.DDIF is Digital's standard format for document interchange. DOTS is an encapsulation of the encoded interchange form of a numberof related data objects into a single composite object.For more information, see.MS DDIF 5 and .MS DOTS 5 ..PPThe .PN capsar utility prepares a DOTS file or a DDIF document for transport in the mailsystem by performing the following steps: .TP 61)The DDIF document is converted to DOTS format.  As a DDIF document may contain more than one file, all files within the DDIF document are incorporated into one DOTS file which can be sent as one mail message..TP2)Each DOTS file is then compressed and encodedusing only printing ASCII characters.   This is because ULTRIX mail software only supports 7 bit mail..TP3)The .PN capsarroutine encapsulates coded documents by adding leading and trailing lines, eachsurrounded by a <CR>.  The lines should begin with 2 or more dashes(\-) and some text that indicates thenature of the encapsulated message. The following is a typical encapsulatedmail message:.EXTo: anybody@anynodeCc:Subject: Another DDIF document	-----------motd.ddif : DOTS.ctod.compress.uuencode message begin 0 motd.ddifM__]\@*" ,(" !BO.#P$# 8$* &UO=&0N9&1I9H0$)%546     "A@"B !@8KMS@\! P$''T1$248M96YC;V1E9"!R979I<V%B;&4@9&]C=6UE;G2@@/__?X"@M@( ! 8$! ((/1$1)1B1?4D5!1%]415A4HX#)% !$1$E&(%1E>'0@1G)O;G0@ end-----------End of motd.ddif : DOTS.ctod.compress.uuencode message .EEThe.PN capsar command can also extract different parts of a mail message,namely, the header information, the text part of the message,and the DOTS file that was encapsulated as described above..PPExtracting the DOTS file is done byparsing the mail message and detecting the leading and trailingencapsulation boundaries.  Decoding and uncompressing the data  results in the original DOTS file..PPThe .PN capsar utility is built into Rand MH to provide DDIF mail support.  It can, however, be used with .PN ucb mail..SH Options.TP 5.B \-cCauses .PN capsar to create an encapsulated DOTS bodypartfrom \fIfile\fP. The \fIfile\fP must be a DOTS/DDIF type document..TP.B \-tCauses .PN capsarto write to the standard output the message type of\fIfile\fP. Message type can be either text or DOTS..TP.B \-xhExtracts the mail header lines from \fIfile\fP. The header linemust be at the beginning of the \fIfile\fP and separated from the remainingtext by a <CR> or <CRLF>.  Each header line is a string containinga header field name (for example, Subject), a colon (:), one or more spaces,and a field value.  Each header line may have embedded continuationsequences it it (for example, LF followed by spaces or tabs)..TP.B \-xTExtracts all the text parts of the mail message in \fIfile\fPto the standard output..TP.B \-xDExtracts any DOTS bodyparts in \fIfile\fP. The DOTSdocument is sent to the standard output.This is the reverse of the \fB\-c\fP option above..IPThe \fIfile\fP must be specified for the \fB\-c\fP option. If \fIfile\fP is not specifiedwith the \fB\-x\fP or \fB\-t\fP option then the standard input is used..SH Examples.PPThe following are examples of how to use the .PN capsarcommand:.PPEncapsulates a DDIF document.EX capsar \-c file.ddif | more     .EE.PPLists the header line from the mail message.EXcapsar \-xh file.mail    .EE.PPExtracts the encapsulated DOTS file from the file.EXcapsar \-xD file > file.dots	orcapsar \-xD file | dtoc.EE.PPIn order to mail a DDIF/DOTS document you can use one of the following:.EX capsar \\-c file.ddif | mail \-s "subject" addresscapsar \-c file.ddif | mhmail \-subject "subject" address.EE.PP Use the second command if you are using RAND mh..PPA DOTS file is extracted from dxmail first extracting the message into a file. The dxmail utility has an extract feature built in so.PN "capsar \-xD"isn't needed..SH See Alsocompress(1), ctod(1), dtoc(1), mail(1), mh(1mh),mhmail(1mh), uuencode(1), vdoc(1), prompter(1mh), DDIF(5), DOTS(5)

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?