bg`dZddlmZddlmZddlmZddlmZGddeZGdd eZ Gd d e Z Gd d e Z Gddee Z GddeZGddeZGddeZGddeZGddeZGddeZGddeZGddeZeZGd d!eZGd"d#eZGd$d%eZGd&d'eZGd(d)eZGd*d+eZGd,d-eZGd.d/eZGd0d1eZ Gd2d3eZ!Gd4d5eZ"d6S)7z email package exception classes.)unicode_literals)division)absolute_import)superceZdZdZdS) MessageErrorz+Base class for errors in the email package.N__name__ __module__ __qualname____doc__n/builddir/build/BUILD/cloudlinux-venv-1.0.7/venv/lib/python3.11/site-packages/future/backports/email/errors.pyrr 5555rrceZdZdZdS)MessageParseErrorz&Base class for message parsing errors.Nr rrrrrs0000rrceZdZdZdS)HeaderParseErrorzError while parsing headers.Nr rrrrrs&&&&rrceZdZdZdS) BoundaryErrorz#Couldn't find terminating boundary.Nr rrrrrs----rrceZdZdZdS)MultipartConversionErrorz(Conversion to a multipart is prohibited.Nr rrrrr2222rrceZdZdZdS) CharsetErrorzAn illegal charset was given.Nr rrrrr s''''rrc$eZdZdZdfd ZxZS) MessageDefectz Base class for a message defect.Nc\|!t|||_dSN)r__init__line)selfr" __class__s rr!zMessageDefect.__init__(s,   GG  T " " " rr r r r r r! __classcell__r$s@rrr%sC**rrceZdZdZdS)NoBoundaryInMultipartDefectzBA message claimed to be a multipart but had no boundary parameter.Nr rrrr)r)-sLLLLrr)ceZdZdZdS)StartBoundaryNotFoundDefectz+The claimed start boundary was never found.Nr rrrr+r+0rrr+ceZdZdZdS)CloseBoundaryNotFoundDefectzEA start boundary was found, but not the corresponding close boundary.Nr rrrr-r-3OOOOrr-ceZdZdZdS)#FirstHeaderLineIsContinuationDefectz;A message had a continuation line as its first header line.Nr rrrr0r06sEEEErr0ceZdZdZdS)MisplacedEnvelopeHeaderDefectz?A 'Unix-from' header was found in the middle of a header block.Nr rrrr2r29IIIIrr2ceZdZdZdS) MissingHeaderBodySeparatorDefectzEFound line with no leading whitespace and no colon before blank line.Nr rrrr5r5<r.rr5ceZdZdZdS)!MultipartInvariantViolationDefectz?A message claimed to be a multipart but no subparts were found.Nr rrrr7r7Ar3rr7ceZdZdZdS)-InvalidMultipartContentTransferEncodingDefectzEAn invalid content transfer encoding was set on the multipart itself.Nr rrrr9r9Dr.rr9ceZdZdZdS)UndecodableBytesDefectz0Header contained bytes that could not be decodedNr rrrr;r;G::::rr;ceZdZdZdS)InvalidBase64PaddingDefectz/base64 encoded sequence had an incorrect lengthNr rrrr>r>Js9999rr>ceZdZdZdS)InvalidBase64CharactersDefectz=base64 encoded sequence had characters not in base64 alphabetNr rrrr@r@MsGGGGrr@c"eZdZdZfdZxZS) HeaderDefectzBase class for a header defect.c:tj|i|dSr )rr!)r#argskwr$s rr!zHeaderDefect.__init__Us%$%"%%%%%rr%r's@rrBrBRs>))&&&&&&&&&rrBceZdZdZdS)InvalidHeaderDefectz+Header is not valid, message gives details.Nr rrrrGrGXrrrGceZdZdZdS)HeaderMissingRequiredValuez(A header that must have a value had noneNr rrrrIrI[rrrIc(eZdZdZfdZdZxZS)NonPrintableDefectz8ASCII characters outside the ascii-printable range foundcXt|||_dSr )rr!non_printables)r#rMr$s rr!zNonPrintableDefect.__init__as) (((,rc6d|jS)Nz6the following ASCII non-printables found in header: {})formatrM)r#s r__str__zNonPrintableDefect.__str__es+,, .r)r r r r r!rPr&r's@rrKrK^sMBB-----.......rrKceZdZdZdS)ObsoleteHeaderDefectz0Header uses syntax declared obsolete by RFC 5322Nr rrrrRrRir<rrRceZdZdZdS)NonASCIILocalPartDefectz(local_part contains non-ASCII charactersNr rrrrTrTlrrrTN)#r __future__rrrfuture.builtinsr Exceptionrrrr TypeErrorrr ValueErrorrr)r+r-r0r2r5MalformedHeaderDefectr7r9r;r>r@rBrGrIrKrRrTrrrr[s '&''''''&&&&&&!!!!!!66666966611111 111'''''('''.....%...33333|Y333(((((<((( JMMMMM-MMM66666-666PPPPP-PPPFFFFF-FFFJJJJJMJJJPPPPP}PPP9JJJJJ JJJPPPPPMPPP;;;;;];;;::::::::HHHHHMHHH &&&&&=&&& 66666,66633333333 . . . . . . . .;;;;;<;;;33333l33333r