-
Notifications
You must be signed in to change notification settings - Fork 0
/
Main.java
25 lines (18 loc) · 861 Bytes
/
Main.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
public class Main {
public static void main(String[] args) {
/* Organize command line arguments. */
CLIHandler theClihandler = new CLIHandler(args);
/*Spawn IMAP handler based on credentials.*/
IMAPHandler theImapHandler = new IMAPHandler(theClihandler.getServer(),
theClihandler.getPort(),
theClihandler.getLogin(),
theClihandler.getPassword(),
theClihandler.getFolders(),
theClihandler.getDeleteFlag(),
theClihandler.getAllFlag());
/* Attempt to login and pull directories. */
theImapHandler.login();
theImapHandler.pullDirectories();
return;
}
}