
%%{
#include "zeek/analyzer/protocol/smtp/SMTP.h"
%%}

## Skips SMTP data until the next email in a connection.
##
## c: The SMTP connection.
##
## .. zeek:see:: skip_http_entity_data
function skip_smtp_data%(c: connection%): any
	%{
	zeek::analyzer::Analyzer* sa = c->FindAnalyzer("SMTP");
	if ( sa )
		static_cast<zeek::analyzer::smtp::SMTP_Analyzer*>(sa)->SkipData();
	return nullptr;
	%}
