#NEWLINE# @ property #NEWLINE# def body( self ) : #NEWLINE# #INDENT# for part in self . _message . walk ( ) : #NEWLINE# #INDENT# maintype = part . get_content_maintype ( ) #NEWLINE# if ( ( self != 'multipart' ) and ( not part . get_filename ( ) ) ) : #NEWLINE# #INDENT# return _decode_body ( part ) #NEWLINE# #UNINDENT# if ( maintype == 'multipart' ) : #NEWLINE# #INDENT# for p in part . get_payload ( ) : #NEWLINE# #INDENT# if ( p . get_content_maintype ( ) == 'text' ) : #NEWLINE# #INDENT# return _decode_body ( p ) #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# #UNINDENT# raise Exception ( 'orz... something... something happened.' )