1 | ImapItem imap = account.getImapItem();↵ | | |
|
2 | imap↵ | | |
|
3 | .setString("host", (String) data↵ | | |
|
4 | .getData("IncomingServer.host"));↵ | | |
|
5 | imap.setString("user", (String) data↵ | | |
|
6 | .getData("IncomingServer.login"));↵ | | |
|
|
7 | // TODO (@author fdietz): All this code for creating a new↵ | | |
|
8 | // IMAPRootFolder should↵ | | |
|
9 | // be moved to a FolderFactory↵ | | |
|
10 | // -> this way "path" would be handled in the factory, too↵ | | |
|
11 | // parent directory for mail folders↵ | | |
|
12 | // for example: ".columba/mail/"↵ | | |
|
13 | // String path =↵ | | |
|
14 | // MailConfig.getInstance().getConfigDirectory().getPath(↵ | | 1 | if (column == null) {↵
|
| | | 2 | try {↵
|
| | | 3 | IExtension extension = pluginHandler.getExtension("Subject");↵
|
15 | );↵ | | 4 | String uiId = extension.getMetadata().getAttribute("ui");↵
|
|
16 | try {↵ | | 5 | ↵
|
17 | // IMAPRootFolder parentFolder = FolderFactory.getInstance()↵ | | |
|
18 | // .createIMAPRootFolder(account);↵ | | |
|
19 | // IMailFolder inbox = FolderFactory.getInstance()↵ | | |
|
20 | // .createIMAPFolder(parentFolder, "INBOX");↵ | | |
|
|
21 | IMailFolder inbox = FolderFactory.getInstance().createIMAPRootFolder(account);↵ | | |
|
22 | folder = inbox;↵ | | |
|
23 | } catch (FolderCreation↵ | | 6 | IExtension uiExtension = pluginUIHandler.getExtension(uiId);↵
|
|
| | | 7 | column = (DefaultCriteriaRow) uiExtension↵
|
| | | 8 | .instanciateExtension(args);↵
|
24 | Exception e1) {↵ | | 9 | } catch (Exception ex) {↵
|
25 | e1.printStackTrace();↵ | | 10 | ex.printStackTrace();↵
|
26 | | | 11 | }↵
|
|
| | | 12 | criteria.setTypeString("Subject");↵
|
| | | 13 | }
|