Incrementally decodes content encoded with the Unix-to-Unix encoding.

The UUEncoding is an encoding that predates MIME and was used to encode binary content such as images and other types of multi-media to ensure that the data remained intact when sent via 7bit transports such as SMTP.

These days, the UUEncoding has largely been deprecated in favour of the base64 encoding, however, some older mail clients still use it.

Inheritance: IMimeDecoder
Beispiel #1
0
        /// <summary>
        /// Clone the <see cref="UUDecoder"/> with its current state.
        /// </summary>
        /// <remarks>
        /// Creates a new <see cref="UUDecoder"/> with exactly the same state as the current decoder.
        /// </remarks>
        /// <returns>A new <see cref="UUDecoder"/> with identical state.</returns>
        public IMimeDecoder Clone()
        {
            var decoder = new UUDecoder(initial == UUDecoderState.Payload);

            decoder.state  = state;
            decoder.nsaved = nsaved;
            decoder.saved  = saved;
            decoder.uulen  = uulen;

            return(decoder);
        }
Beispiel #2
0
		/// <summary>
		/// Clone the <see cref="UUDecoder"/> with its current state.
		/// </summary>
		/// <remarks>
		/// Creates a new <see cref="UUDecoder"/> with exactly the same state as the current decoder.
		/// </remarks>
		/// <returns>A new <see cref="UUDecoder"/> with identical state.</returns>
		public IMimeDecoder Clone ()
		{
			var decoder = new UUDecoder (initial == UUDecoderState.Payload);

			decoder.state = state;
			decoder.nsaved = nsaved;
			decoder.saved = saved;
			decoder.uulen = uulen;

			return decoder;
		}