src/analyzer/protocol/mime/MIME.cc
void MIME_Entity::DecodeDataLine(int len, const char* data, bool trailing_CRLF)
	{
	if ( ! mime_submit_data )
		return;

	switch ( content_encoding )
		{
		case CONTENT_ENCODING_QUOTED_PRINTABLE:
			DecodeQuotedPrintable(len, data);
			break;

		case CONTENT_ENCODING_BASE64:
			DecodeBase64(len, data);
			break;

		case CONTENT_ENCODING_7BIT:
		case CONTENT_ENCODING_8BIT:
		case CONTENT_ENCODING_BINARY:
		case CONTENT_ENCODING_OTHER:
			DecodeBinary(len, data, trailing_CRLF);
			break;
		}
	FlushData();
	}
// trailing_CRLF indicates whether an implicit CRLF sequence follows data
// (the CRLF sequence is not included in data).
trailing_CRLF indicates whether an implicit CRLF sequence follows data
(the CRLF sequence is not included in data).
trailing_CRLF indicates whether an implicit CRLF sequence follows data ( the CRLF sequence is not included in data ) .
void MIME_Entity::DecodeDataLine(int len, const char* data, bool trailing_CRLF)
	{
	if ( ! mime_submit_data )
		return;
	switch ( content_encoding )
		{
		case CONTENT_ENCODING_QUOTED_PRINTABLE:
			DecodeQuotedPrintable(len, data);
			break;
		case CONTENT_ENCODING_BASE64:
			DecodeBase64(len, data);
			break;
		case CONTENT_ENCODING_7BIT:
		case CONTENT_ENCODING_8BIT:
		case CONTENT_ENCODING_BINARY:
		case CONTENT_ENCODING_OTHER:
			DecodeBinary(len, data, trailing_CRLF);
			break;
		}
	FlushData();
	}
void MIME_Entity :: DecodeDataLine ( int len , const char * data , bool trailing_CRLF ) { if ( ! mime_submit_data ) return ; switch ( content_encoding ) { case CONTENT_ENCODING_QUOTED_PRINTABLE : DecodeQuotedPrintable ( len , data ) ; break ; case CONTENT_ENCODING_BASE64 : DecodeBase64 ( len , data ) ; break ; case CONTENT_ENCODING_7BIT : case CONTENT_ENCODING_8BIT : case CONTENT_ENCODING_BINARY : case CONTENT_ENCODING_OTHER : DecodeBinary ( len , data , trailing_CRLF ) ; break ; } FlushData ( ) ; }
trailing_CRLF indicates whether an implicit CRLF sequence follows data
(the CRLF sequence is not included in data).
trailing_CRLF indicates whether an implicit CRLF sequence follows data ( the CRLF sequence is not included in data ) .