public static void main(String[] args) throws IOException {
		
		Map<String, List<InternetAddress>> unitEmails = new HashMap<>();
		
		Utils.obtainemail(unitEmails);
		Utils.COMPRESSED_DIR.mkdir();
		
		File allUnitFolder = new File(Utils.TVDB_DIR, "");
		
		for(File unitFolder: allUnitFolder.listFiles()) {
			String unitName = unitFolder.getName();
			List<InternetAddress> recipients = unitEmails.get(unitName);
			if(recipients == null) {
				System.out.println("No email found for unit: "+unitName);
//				continue;
				break;
			}
			File zipFile = new File(Utils.COMPRESSED_DIR, unitName+".zip");
			if(!zipFile.exists()) {
				Utils.compress(unitFolder, zipFile);
			}
			
			try {
				doSendMessage(unitName, recipients, zipFile);
//				System.out.println(unitName+":"+unitEmails.get(unitName));
			} catch (MessagingException | UnsupportedEncodingException mex) {
				System.out.println(unitName + ": send failed, exception: " + mex);
			}
		}

	}