📄 uudeview.1
字号:
.\" $Id: uudeview.1,v 1.14 2003/04/12 23:18:29 fp Exp $ ".TH UUDEVIEW 1 "June 2001".SH NAMEUUDeview \- a powerful decoder for binary files.SH SYNOPSIS.B "uudeview [options] [@\fIfile\fP] \fIfile(s)\fP".SH DESCRIPTION.I UUDeviewis a smart decoder for attachments that you have received in encodedform via electronic mail or from the usenet. It is similar to thestandard .BR uudecode (1)command, yet with more comfort and flexibility..I UUDeviewsupports the.I uuencoding, xxencoding, Base64, yEncodingand.I BinHexencoding methods, and is able to handle split-files (which have been sentin multiple parts) as well as multiple files at once, thus greatly simplifyingthe decoding process. Usually, you will not have to manually edit files toprepare them for decoding..PPAfter invoking.B uudeview,it will scan all given files for encoded data, sort them and their partsand then present you with the list of files that seem like they can bedecoded properly. You can then pick files individually for decoding..SH OPTIONS.SS BEHAVIOR.TP.B -iDisables interactivity. After scanning the files and sortingeverything out, the program will not promt you for whether a fileshall be decoded or not, but batch-decodes all available files.This is the default when reading from standard input..TP.B -aAutorename option. If a target file already exists, and this option isgiven, a dot and a unique sequence number is appended to the file name.I.e., foo.gif becomes foo.gif.1 if decoded a second time..TP.B +aAn alternative incarnation of autorename. If a target file alreadyexists, an underscore and a unique sequence number is inserted intothe filename before the first dot, i.e., foo.gif becomes foo_1.gif..TP.B -oGives the OK to overwrite existing files when decoding. In interactivemode, the default is to prompt the user whether to overwrite, renameor skip the file. Thisoption takes precedence over.B -a.In non-interactive mode (using.B -f), the default is to overwrite files without asking..TP.B +oSays it's not OK to overwrite files. This is useful in non-interactivemode, so that existing files are untouched. This has lesser precedencethan -a..TP.B -cAutoclear. Remove all input files that were successfully decoded. Usewith care! UUDeview only checks if any data was decoded from an inputfile, but does not care about any other contents of that input file,or whether a file also held an incomplete attachment..TP.BI -p " path"Sets the path where decoded files shall be written to. This must be a validpathname, or you'll get errors when trying to decode anything. Defaults tothe current working directory..TP.B -mIgnore file mode. Uuencoded and xxencoded files have the original filepermissions stored on the begin line. Unless this option is given,.I UUDeviewwill restore them without checking if they are sensible. With thisoption, the permissions are reset to a default of 0666..SS TWEAKING.TP.B -zEnforces stricter MIME adherance. Normally, the program tries to findencoded data even in "text/plain" plaintext parts of MIMEmessages. With this option given,.I UUDeviewwill limit this capability, and will not accept apparently incompleteencoded messages (for example, seemingly uuencoded data without beginor end lines).You can tighten this option even more by using it twice, or by using.B -z2.Then,.I UUDeviewwill not check plaintext sections of MIME messages for encoded data atall and behave fully MIME-compliant.Neither option affects the behavior on non-MIME input files. Thisoption needs a better name, but I'm slowly running out of optionletters..TP.B -fUses fast mode for file scanning. The program assumes that each input fileholds at most one part, which is usually true for files in a news spooldirectory. This option.B breaks decodingof input files with multiple articles. Also, certain sanity checks aredisabled, probably causing erroneous files to be presented for decoding.Sometimes you'll get error messages when decoding, sometimes you'lljust receive invalid files. Don't use.B -fif you can't live with these problems..TP.B -rIgnore reply messages, i.e. all messages whose subject starts withRe:.TP.B -tUse plaintext messages. Usually, UUDeview only presents encoded datafor decoding. Plaintext messages are only shown if they have anassociated file name. With this option set, unnamed text parts from.I MIMEmessages and non-encoded messages are also offered. Unnamed messagesare assigned a unique name in the form of a sequential four-digit number..TP.B -dSets the program into desperate mode. It will then offer you to decodeincomplete files. This is useful if you are missing the last part of a50-parts posting, but in most cases the desperately-decoded files willsimply be corrupt and unusable. The degree of usefulness of an incompletefile depends on the file type..TP.B -bThis changes.I UUDeview's"bracket policy.".I UUDeviewlooks at a message's subject line, and reads numbers in brackets asthe part number, as in (3/7), which is read as the third message in aseries of seven. By default, numbers in parentheses () are preferredover numbers in brackets []. You can change this using either.B -bor, for clarity.BI -b []..TP.B -sRead "minus smartness". This option turns off automatic part numberdetection from the subject line. Try this option if.I UUDeviewfails to parse the subject line correctly and makes errors at guessingpart numbers, resulting in incorrect ordering of the parts. With thisoption, parts are always put together sequentially (so the parts mustbe correctly ordered in the input file). Also, with this option, theprogram cannot detect that parts are missing..B Note:The correct part number found in proper.I MIMEfiles is still evaluated.If this option is given twice, the subject itself is ignored, too, andwon't be used to group parts. Use if the messages that the parts comedelivered in have different subject lines..SS OTHER OPTIONS.TP.B -q(Quiet) Disablesverbosity. Normally, the program prints some status messageswhile reading the input files, which can be very helpful if somethingshould go wrong. Use if these messages disturb you..TP.B -nNo progress bars. Normally, UUDeview prints ASCII bars crawling upto 100 percent, but does not check if your terminal is capable ofdisplaying them. Use this switch if your terminal isn't, or if youfind the bars annoying..TP.BI +e " exts"Selects only the files with the given extensions for decoding, others willbe ignored..BI +e " .gif.jpg"would decode all gif and jpeg files, but not tif or other files. Thelist of extensions works case-insensitive..TP.BI -e " exts"The reverse of the above..PPYou will experience unwanted results if you try to mix \+e and \-e optionson the command line..SS INPUT OPTIONS.TP.I file(s)The files to be scanned for encoded files. You can also give a single hyphen\'\-\' to read from standard input. Any number of files may be given, butthere is usually a limitation of 128 options imposed by the shell. If you arecomposing the list of files with wildcards, make sure you don't accidentallyfeed the program with binary files. This will result in undefined behaviour..TP.BI @ fileMakes.I UUDeviewread further options from the file. Each line of the file must hold exactlyone option. The file .B is erased after the program finishes. This feature may be used to specify an unlimitednumber of files to be scanned. Combined with the powers of.BR find (1),entire directory trees (like the news spool directory) can be processed..PPOptions may also be set in the $UUDEVIEW environment variable, which isread before processing the options on the command line..SH DECODINGAfter all input files have been scanned, you are asked for each file whatdo do with it. Of course, the usual answer is to decode it, but there areother possibilities. You can use the following commands (each command isa single letter):.TP.B d(D)ecode the file and write the decoded file to disk, with the given name..TP.B y(Y)es does the same as (d)..TP.B xE(x)tract also decodes the file..TP.B aDecodes all remaining files without prompting..TP.B nSkips this file without decoding it..TP.B bSteps back to the previous file..TP.B rRename. You can choose a different name for the file in order to save itunder this new name..TP.B pSet the path where decoded files shall be written to. This path can alsobe set with the -p command line option..TP.B iDisplays info about the file, if present. If a multipart posting had azeroeth part, it is printed, otherwise the first part up to the encodeddata is printed..TP.B eExecute a command. You can enter any arbitrary command, possibly using thecurrent file as an argument. All dollar signs '$' in this command line arereplaced with the filename of the current file (speaking correctly, the nameof a temporary file). You should not background processes using thistemporary file, as programs might get confused if their input file suddenlydisappears..TP.B lList a file. Use this command only if you know that the file in question isa textfile, otherwise, you'll get a load of junk..TP.B qQuits the program immediately..TP.B ?Prints a short description of all these commands..PPIf you don't enter a command and simply hit return at the prompt, thedefault command, decoding the file, is used..SH RUNTIME MESSGAGESIn verbose mode (that is, if you didn't disable verbosity with the-v option), progress messages will appear.They are extremely helpful in tracing what the program does, and canbe used to figure out the reason why files cannot be decoded, if youunderstand them. This section explains how to interpret them.Understanding this section is not essential to operate the program..PPFirst, there are "Loading" messages, which begin with the string"Loaded". Each line should feature the following items:.TP.B Source FileThe first item is the source file from which a part was loaded. Manyparts can be detected within a single file..TP.B Subject LineThe complete subject is reproduced in single quotes..TP.B IdentifierThe program derives a unique identification for this thread from thesubject line, for grouping articles that look like they belong to thesame file. The result of this algorithm is presented in braces..TP.B FilenameIf a filename was detected on the subject line or within the data (forexample, on a begin line, or as part of the Content-Type information)..TP.B Part NumberThe part number derived from the subject line, or, in the case ofproperly MIME-formatted messages, from the "part" information..TP.B Begin/EndIf a "begin" or "end" token was detected, it is printed here..TP.B Encoding TypeIf encoded data was detected within this part, either "UUdata","Base64", "XXdata" or "Binhex" is printed here..PPMore messages are printed after scanning has completed. A single linewill be printed for each group of articles. The contents of this lineare best understood by looking at an example. Here is one:.PP.B Found 'mailfile.gz' State 16 UUData Parts begin 1 2 3 4 5 end 6 OK.PPThis indicates that the file.I mailfile.gzhas been found. The file was uuencoded ("UUData") and consists of6 parts. The "begin" token was found in the first part, and the"end" token was found in the sixth part. Because it looks likeeverything's there, this file is tagged as being "OK". The.I Stateis a set of bits, where the following values may be or'ed:.TP.B 1Missing Part.TP.B 2No Begin.TP.B 4No End.TP.B 8No encoded data found..TP.B 16File looks Ok.TP.B 32An error occured during decoding of the file..TP.B 64File was successfully decoded..SH NOTESBecause the program cannot receive terminal input when a file is beingread from standard input, interactivity is automatically disabled inthis case..PPUUDeview is aware of MIME messages, but normally ignores strict MIMEcompliance in favor of finding unproperly encoded data within them,e.g. to succeed when individual parts of a uuencoded file have beensent with a MIME mailer as MIME messages. For that, it subjects all"text/plain" parts of a message to encoding detection. You can use the.B -zoption (see above) for more strict RFC2045 compliance..PPThe scanner tends to ignore short Base64 data (less than four lines)outside of MIME messages. Some checks for this condition are used indesperate mode, but they may cause misdetection of encoded data,resulting in some invalid files..PPFiles are always decoded into a temporary file first, then this file is copiedto the final location. This is to prevent accidentally overwriting existingfiles with data that turns out too late to be undecodeable. Thus be carefulto have twice the necessary space available. Also, when reading fromstandard input, all the data is dumped to a temporary file beforestarting the usual scanning process on that file..PP.B uudeviewtries to derive all necessary information from the Subject: line if present.If it holds garbage, or if the program fails to find a unique identificationand the part number there, .B uudeviewmight still be able to decode the file using other heuristics, but you'llneed major luck then..PD 0.PPYet this is only a concern with split-files. If all encoded files only consistof single parts, don't worry..PD.PPIf you rename, copy or link the program to.BR uudecode ,it may act as a smart replacement for the standard, accepting the samecommand-line options. This has not been well-tested yet..SH "SEE ALSO".BR uuenview (1),.BR uudecode (1),.BR uuencode (1)..PD 0.PPThe.I UUDeviewhomepage on the Web, .PD 0.PPhttp://www.fpx.de/fp/Software/UUDeview/.PD.SH BUGSTo read a file whose name starts with a hyphen '-', prepend a pathname, for example './'..PPThe checksums found in.I BinHexdata are ignored..PPThe program cannot fully handle partial multipart messages (MIME-stylemultipart messages split over several mail messages). The individualparts are recognized and concatenated, and the embedded multipartmessage is "decoded" into a plain-text file, which must then be fedagain to.B uudeview.Don't worry, these kinds of messages are rare..PPUUDeview cannot decipher RFC 1522 headers.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -