\ddZGddeZGddeZGddeZGddeZGd d eeZGd d eZGd de Z Gdde Z Gdde Z Gdde Z Gdde ZGdde ZGdde ZeZGdde ZGdde ZGdd e ZGd!d"e ZGd#d$e ZGd%d&e ZGd'd(e ZGd)d*eZGd+d,eZGd-d.eZGd/d0eZGd1d2eZGd3d4eZd5S)6z email package exception classes.ceZdZdZdS) MessageErrorz+Base class for errors in the email package.N__name__ __module__ __qualname____doc__..\python\lib\email\errors.pyrr5555r rceZdZdZdS)MessageParseErrorz&Base class for message parsing errors.Nrr r r rr s0000r rceZdZdZdS)HeaderParseErrorzError while parsing headers.Nrr r r rrs&&&&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 rc$eZdZdZdfd ZxZS) MessageDefectz Base class for a message defect.Nc\|!t|||_dSN)super__init__line)selfr __class__s r rzMessageDefect.__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',r r r'ceZdZdZdS)CloseBoundaryNotFoundDefectzEA start boundary was found, but not the corresponding close boundary.Nrr r r r)r)/OOOOr r)ceZdZdZdS)#FirstHeaderLineIsContinuationDefectz;A message had a continuation line as its first header line.Nrr r r r,r,2sEEEEr r,ceZdZdZdS)MisplacedEnvelopeHeaderDefectz?A 'Unix-from' header was found in the middle of a header block.Nrr r r r.r.5IIIIr r.ceZdZdZdS) MissingHeaderBodySeparatorDefectzEFound line with no leading whitespace and no colon before blank line.Nrr r r r1r18r*r r1ceZdZdZdS)!MultipartInvariantViolationDefectz?A message claimed to be a multipart but no subparts were found.Nrr r r r3r3=r/r r3ceZdZdZdS)-InvalidMultipartContentTransferEncodingDefectzEAn invalid content transfer encoding was set on the multipart itself.Nrr r r r5r5@r*r r5ceZdZdZdS)UndecodableBytesDefectz0Header contained bytes that could not be decodedNrr r r r7r7C::::r r7ceZdZdZdS)InvalidBase64PaddingDefectz/base64 encoded sequence had an incorrect lengthNrr r r r:r:Fs9999r r:ceZdZdZdS)InvalidBase64CharactersDefectz=base64 encoded sequence had characters not in base64 alphabetNrr r r r<r<IsGGGGr r<ceZdZdZdS)InvalidBase64LengthDefectz4base64 encoded sequence had invalid length (1 mod 4)Nrr r r r>r>Ls>>>>r r>c"eZdZdZfdZxZS) HeaderDefectzBase class for a header defect.c:tj|i|dSr)rr)rargskwr s r rzHeaderDefect.__init__Ts%$%"%%%%%r r!r#s@r r@r@Qs>))&&&&&&&&&r r@ceZdZdZdS)InvalidHeaderDefectz+Header is not valid, message gives details.Nrr r r rErEWr r rEceZdZdZdS)HeaderMissingRequiredValuez(A header that must have a value had noneNrr r r rGrGZrr rGc(eZdZdZfdZdZxZS)NonPrintableDefectz8ASCII characters outside the ascii-printable range foundcXt|||_dSr)rrnon_printables)rrKr s r rzNonPrintableDefect.__init__`s) (((,r c6d|jS)Nz6the following ASCII non-printables found in header: {})formatrK)rs r __str__zNonPrintableDefect.__str__ds+,, .r )rrrrrrNr"r#s@r rIrI]sMBB-----.......r rIceZdZdZdS)ObsoleteHeaderDefectz0Header uses syntax declared obsolete by RFC 5322Nrr r r rPrPhr8r rPceZdZdZdS)NonASCIILocalPartDefectz(local_part contains non-ASCII charactersNrr r r rRrRkrr rRceZdZdZdS)InvalidDateDefectz%Header has unparsable or invalid dateNrr r r rTrTps////r rTN)r Exceptionrrrr TypeErrorrr ValueErrorrr%r'r)r,r.r1MalformedHeaderDefectr3r5r7r:r<r>r@rErGrIrPrRrTr r r rYs '&66666966611111 111'''''('''.....%...33333|Y333(((((<((( JMMMMM-MMM66666-666PPPPP-PPPFFFFF-FFFJJJJJMJJJPPPPP}PPP9JJJJJ JJJPPPPPMPPP;;;;;];;;::::::::HHHHHMHHH????? ??? &&&&&=&&& 66666,66633333333 . . . . . . . .;;;;;<;;;33333l333 00000 00000r