1*47bcbde9SPiotr Pawel Stefaniak.\" Copyright (c) 1989, 1991, 1993 2*47bcbde9SPiotr Pawel Stefaniak.\" The Regents of the University of California. All rights reserved. 3*47bcbde9SPiotr Pawel Stefaniak.\" 4*47bcbde9SPiotr Pawel Stefaniak.\" Redistribution and use in source and binary forms, with or without 5*47bcbde9SPiotr Pawel Stefaniak.\" modification, are permitted provided that the following conditions 6*47bcbde9SPiotr Pawel Stefaniak.\" are met: 7*47bcbde9SPiotr Pawel Stefaniak.\" 1. Redistributions of source code must retain the above copyright 8*47bcbde9SPiotr Pawel Stefaniak.\" notice, this list of conditions and the following disclaimer. 9*47bcbde9SPiotr Pawel Stefaniak.\" 2. Redistributions in binary form must reproduce the above copyright 10*47bcbde9SPiotr Pawel Stefaniak.\" notice, this list of conditions and the following disclaimer in the 11*47bcbde9SPiotr Pawel Stefaniak.\" documentation and/or other materials provided with the distribution. 12*47bcbde9SPiotr Pawel Stefaniak.\" 3. Neither the name of the University nor the names of its contributors 13*47bcbde9SPiotr Pawel Stefaniak.\" may be used to endorse or promote products derived from this software 14*47bcbde9SPiotr Pawel Stefaniak.\" without specific prior written permission. 15*47bcbde9SPiotr Pawel Stefaniak.\" 16*47bcbde9SPiotr Pawel Stefaniak.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 17*47bcbde9SPiotr Pawel Stefaniak.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 18*47bcbde9SPiotr Pawel Stefaniak.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 19*47bcbde9SPiotr Pawel Stefaniak.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 20*47bcbde9SPiotr Pawel Stefaniak.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 21*47bcbde9SPiotr Pawel Stefaniak.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 22*47bcbde9SPiotr Pawel Stefaniak.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 23*47bcbde9SPiotr Pawel Stefaniak.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 24*47bcbde9SPiotr Pawel Stefaniak.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 25*47bcbde9SPiotr Pawel Stefaniak.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 26*47bcbde9SPiotr Pawel Stefaniak.\" SUCH DAMAGE. 27*47bcbde9SPiotr Pawel Stefaniak.\" 28*47bcbde9SPiotr Pawel Stefaniak.Dd January 12, 1994 29*47bcbde9SPiotr Pawel Stefaniak.Dt UUENCODE 5 30*47bcbde9SPiotr Pawel Stefaniak.Os 31*47bcbde9SPiotr Pawel Stefaniak.Sh NAME 32*47bcbde9SPiotr Pawel Stefaniak.Nm uuencode 33*47bcbde9SPiotr Pawel Stefaniak.Nd format of an encoded uuencode file 34*47bcbde9SPiotr Pawel Stefaniak.Sh DESCRIPTION 35*47bcbde9SPiotr Pawel StefaniakFiles output by 36*47bcbde9SPiotr Pawel Stefaniak.Xr uuencode 1 37*47bcbde9SPiotr Pawel Stefaniakconsist of a header line, 38*47bcbde9SPiotr Pawel Stefaniakfollowed by a number of body lines, 39*47bcbde9SPiotr Pawel Stefaniakand a trailer line. 40*47bcbde9SPiotr Pawel StefaniakThe 41*47bcbde9SPiotr Pawel Stefaniak.Xr uudecode 1 42*47bcbde9SPiotr Pawel Stefaniakcommand 43*47bcbde9SPiotr Pawel Stefaniakwill ignore any lines preceding the header or 44*47bcbde9SPiotr Pawel Stefaniakfollowing the trailer. 45*47bcbde9SPiotr Pawel StefaniakLines preceding a header must not, of course, 46*47bcbde9SPiotr Pawel Stefaniaklook like a header. 47*47bcbde9SPiotr Pawel Stefaniak.Pp 48*47bcbde9SPiotr Pawel StefaniakThe header line is distinguished by having the first 49*47bcbde9SPiotr Pawel Stefaniak6 characters 50*47bcbde9SPiotr Pawel Stefaniak.Dq begin\ \& 51*47bcbde9SPiotr Pawel Stefaniak(note the trailing space). 52*47bcbde9SPiotr Pawel StefaniakThe word 53*47bcbde9SPiotr Pawel Stefaniak.Em begin 54*47bcbde9SPiotr Pawel Stefaniakis followed by a mode (in octal), 55*47bcbde9SPiotr Pawel Stefaniakand a string which names the remote file. 56*47bcbde9SPiotr Pawel StefaniakA space separates the three items in the header line. 57*47bcbde9SPiotr Pawel Stefaniak.Pp 58*47bcbde9SPiotr Pawel StefaniakThe body consists of a number of lines, each at most 62 characters 59*47bcbde9SPiotr Pawel Stefaniaklong (including the trailing newline). 60*47bcbde9SPiotr Pawel StefaniakThese consist of a character count, 61*47bcbde9SPiotr Pawel Stefaniakfollowed by encoded characters, 62*47bcbde9SPiotr Pawel Stefaniakfollowed by a newline. 63*47bcbde9SPiotr Pawel StefaniakThe character count is a single printing character, 64*47bcbde9SPiotr Pawel Stefaniakand represents an integer, the number of bytes 65*47bcbde9SPiotr Pawel Stefaniakthe rest of the line represents. 66*47bcbde9SPiotr Pawel StefaniakSuch integers are always in the range from 1 to 45 or 64 and can 67*47bcbde9SPiotr Pawel Stefaniakbe determined by subtracting the character space (octal 40) 68*47bcbde9SPiotr Pawel Stefaniakfrom the character. 69*47bcbde9SPiotr Pawel StefaniakCharacter 64 represents a count of zero. 70*47bcbde9SPiotr Pawel Stefaniak.Pp 71*47bcbde9SPiotr Pawel StefaniakGroups of 3 bytes are stored in 4 characters, 6 bits per character. 72*47bcbde9SPiotr Pawel StefaniakAll characters are always in range from 1 to 64 and are offset by a 73*47bcbde9SPiotr Pawel Stefaniakspace (octal 40) to make the characters printing. 74*47bcbde9SPiotr Pawel StefaniakCharacter 75*47bcbde9SPiotr Pawel Stefaniak64 represents a count of zero. 76*47bcbde9SPiotr Pawel StefaniakThe last line may be shorter than the normal 45 bytes. 77*47bcbde9SPiotr Pawel StefaniakIf the size is not a multiple of 3, this fact can be determined 78*47bcbde9SPiotr Pawel Stefaniakby the value of the count on the last line. 79*47bcbde9SPiotr Pawel StefaniakExtra null characters will be included to make the character count a multiple 80*47bcbde9SPiotr Pawel Stefaniakof 4. 81*47bcbde9SPiotr Pawel StefaniakThe body is terminated by a line with a count of zero. 82*47bcbde9SPiotr Pawel StefaniakThis line consists of one 83*47bcbde9SPiotr Pawel Stefaniak.Tn ASCII 84*47bcbde9SPiotr Pawel Stefaniakbackquote (octal 140) character. 85*47bcbde9SPiotr Pawel Stefaniak.Pp 86*47bcbde9SPiotr Pawel StefaniakThe trailer line consists of 87*47bcbde9SPiotr Pawel Stefaniak.Dq end 88*47bcbde9SPiotr Pawel Stefaniakon a line by itself. 89*47bcbde9SPiotr Pawel Stefaniak.Sh SEE ALSO 90*47bcbde9SPiotr Pawel Stefaniak.Xr mail 1 , 91*47bcbde9SPiotr Pawel Stefaniak.Xr uucp 1 , 92*47bcbde9SPiotr Pawel Stefaniak.Xr uudecode 1 , 93*47bcbde9SPiotr Pawel Stefaniak.Xr uuencode 1 94*47bcbde9SPiotr Pawel Stefaniak.Sh HISTORY 95*47bcbde9SPiotr Pawel StefaniakThe 96*47bcbde9SPiotr Pawel Stefaniak.Nm 97*47bcbde9SPiotr Pawel Stefaniakfile format appeared in 98*47bcbde9SPiotr Pawel Stefaniak.Bx 4.0 . 99*47bcbde9SPiotr Pawel Stefaniak.\" It was named uuencode.5 prior to 4.3 100