# Register function with the plugin registry
$PLUGINS{'imap'} = \&check_imap;

# Check the imap service with the built-in check_simple routine
sub check_imap {
    my ($host) = @_;
    return &check_simple( $host, 143, "0 logout", "OK", "imap" );
}

1;
