ApdsdZGddeZGddeZGddeZGddeZGd d eeZGd d eZGd deZ Gdde Z Gdde Z Gdde Z Gdde ZGdde ZGdde ZGdde ZeZGdde ZGdd e ZGd!d"e ZGd#d$e ZGd%d&e ZGd'd(e ZGd)d*e ZGd+d,eZGd-d.eZGd/d0eZGd1d2eZGd3d4eZGd5d6eZd7S)8z email package exception classes.ceZdZdZdS) MessageErrorz+Base class for errors in the email package.N__name__ __module__ __qualname____doc__3/opt/alt/python311/lib64/python3.11/email/errors.pyrr5555r rceZdZdZdS)MessageParseErrorz&Base class for message parsing errors.Nrr r r rr s0000r rceZdZdZdS)HeaderParseErrorzError while parsing headers.Nrr r r rr&&&&r rceZdZdZdS) BoundaryErrorz#Couldn't find terminating boundary.Nrr r r rrs----r rceZdZdZdS)MultipartConversionErrorz(Conversion to a multipart is prohibited.Nrr r r rr2222r rceZdZdZdS) CharsetErrorzAn illegal charset was given.Nrr r r rrs''''r rceZdZdZdS)HeaderWriteErrorzError while writing headers.Nrr r r rr rr rc$eZdZdZdfd ZxZS) MessageDefectz Base class for a message defect.Nc\|!t|||_dSN)super__init__line)selfr! __class__s r r zMessageDefect.__init__(s,   GG  T " " " r rrrrrr __classcell__r#s@r rr%sC**r rceZdZdZdS)NoBoundaryInMultipartDefectzBA message claimed to be a multipart but had no boundary parameter.Nrr r r r(r(-sLLLLr r(ceZdZdZdS)StartBoundaryNotFoundDefectz+The claimed start boundary was never found.Nrr r r r*r*0r r r*ceZdZdZdS)CloseBoundaryNotFoundDefectzEA start boundary was found, but not the corresponding close boundary.Nrr r r r,r,3OOOOr r,ceZdZdZdS)#FirstHeaderLineIsContinuationDefectz;A message had a continuation line as its first header line.Nrr r r r/r/6sEEEEr r/ceZdZdZdS)MisplacedEnvelopeHeaderDefectz?A 'Unix-from' header was found in the middle of a header block.Nrr r r r1r19IIIIr r1ceZdZdZdS) MissingHeaderBodySeparatorDefectzEFound line with no leading whitespace and no colon before blank line.Nrr r r r4r4<r-r r4ceZdZdZdS)!MultipartInvariantViolationDefectz?A message claimed to be a multipart but no subparts were found.Nrr r r r6r6Ar2r r6ceZdZdZdS)-InvalidMultipartContentTransferEncodingDefectzEAn invalid content transfer encoding was set on the multipart itself.Nrr r r r8r8Dr-r r8ceZdZdZdS)UndecodableBytesDefectz0Header contained bytes that could not be decodedNrr r r r:r:G::::r r:ceZdZdZdS)InvalidBase64PaddingDefectz/base64 encoded sequence had an incorrect lengthNrr r r r=r=Js9999r r=ceZdZdZdS)InvalidBase64CharactersDefectz=base64 encoded sequence had characters not in base64 alphabetNrr r r r?r?MsGGGGr r?ceZdZdZdS)InvalidBase64LengthDefectz4base64 encoded sequence had invalid length (1 mod 4)Nrr r r rArAPs>>>>r rAc"eZdZdZfdZxZS) HeaderDefectzBase class for a header defect.c:tj|i|dSr)rr )r"argskwr#s r r zHeaderDefect.__init__Xs%$%"%%%%%r r$r&s@r rCrCUs>))&&&&&&&&&r rCceZdZdZdS)InvalidHeaderDefectz+Header is not valid, message gives details.Nrr r r rHrH[r r rHceZdZdZdS)HeaderMissingRequiredValuez(A header that must have a value had noneNrr r r rJrJ^rr rJc(eZdZdZfdZdZxZS)NonPrintableDefectz8ASCII characters outside the ascii-printable range foundcXt|||_dSr)rr non_printables)r"rNr#s r r zNonPrintableDefect.__init__ds) (((,r c6d|jS)Nz6the following ASCII non-printables found in header: {})formatrN)r"s r __str__zNonPrintableDefect.__str__hs+,, .r )rrrrr rQr%r&s@r rLrLasMBB-----.......r rLceZdZdZdS)ObsoleteHeaderDefectz0Header uses syntax declared obsolete by RFC 5322Nrr r r rSrSlr;r rSceZdZdZdS)NonASCIILocalPartDefectz(local_part contains non-ASCII charactersNrr r r rUrUorr rUceZdZdZdS)InvalidDateDefectz%Header has unparsable or invalid dateNrr r r rWrWts////r rWN) r Exceptionrrrr TypeErrorrrr ValueErrorrr(r*r,r/r1r4MalformedHeaderDefectr6r8r:r=r?rArCrHrJrLrSrUrWr r r r\s '&66666966611111 111'''''('''.....%...33333|Y333(((((<((('''''|''' JMMMMM-MMM66666-666PPPPP-PPPFFFFF-FFFJJJJJMJJJPPPPP}PPP9JJJJJ JJJPPPPPMPPP;;;;;];;;::::::::HHHHHMHHH????? ??? &&&&&=&&& 66666,66633333333 . . . . . . . .;;;;;<;;;33333l333 00000 00000r