01: package org.columba.mail.folder.zippedmh;
02:
03: import org.columba.mail.config.FolderItem;
04: import org.columba.mail.config.IFolderItem;
05: import org.columba.mail.folder.AbstractLocalFolder;
06: import org.columba.mail.folder.IDataStorage;
07:
08: public class ZippedMHFolder extends AbstractLocalFolder {
09:
10: private ZippedMHDataStorage dataStorage;
11:
12: public ZippedMHFolder(FolderItem item, String path) {
13: super (item, path);
14: }
15:
16: public ZippedMHFolder(String name, String type, String path) {
17: super (name, type, path);
18:
19: IFolderItem item = getConfiguration();
20: item.setString("property", "accessrights", "user");
21: item.setString("property", "subfolder", "true");
22: }
23:
24: public IDataStorage getDataStorageInstance() {
25: if (dataStorage == null) {
26: dataStorage = new ZippedMHDataStorage(this
27: .getDirectoryFile());
28: }
29: return dataStorage;
30: }
31:
32: }
|