NAME

Mail::MIMEDefang::Unit - Methods used by MIMEDefang regression tests

DESCRIPTION

Mail::MIMEDefang::Unit are a set of methods that are called from MIMEDefang regression tests.

METHODS

include_mimedefang

Method that includes mimedefang.pl.in code without running anything.

smtp_mail

Method which sends a test email and returns SMTP replies.

get_abs_path

Method which returns the absolute path of a file by reading $PATH.

tap_found

Method which feeds the given chunks through a Mail::MIMEDefang::MIME::Base64::Tap and returns whether data after base64 padding was found.

parse_string

Method which parses a message held in a string and returns the MIME::Parser and the resulting MIME::Entity.

base64_message

Method which returns a multipart test message with an attachment whose base64 body is the given string.