anchor.diff:  							verify = verifyS3Custom(cfg);
   							break;
   						case "imap":
  +							verify = verifyImap(cfg);
   							break;
   						case "pop":
   							break;
  
positive.code: 			};
  			if ( StructCount(cfg) eq 0 ){
  				systemOutput( "Service [ #arguments.service# ] not configured", true) ;
  			} else {
  				// validate the cfg
  				verify = "configured, but not tested";
  
negative.code: 		throw "not configured";
  	}
  
  	public function verifyImap ( imap ) localmode=true{
  		imap
  			action="open" 
  			server = imap.SERVER
  			username = imap.USERNAME
  			port = imap.PORT_INSECURE
  			secure="no"
  			password = imap.PASSWORD
  			connection = "testImap";
  		imap
  			action = "close",
  			connection="testImap";
  			
  		return "configured";
  	}
  
  	public function verifyLDAP ( ldap ) localmode=true {
  		if ( structCount( LDAP ) eq 5 ){
  			systemOutput( ldap, true );
  