use of i2p.bote.folder.TrashFolder in project i2p.i2p-bote by i2p.
the class I2PBote method initializeFolderAccess.
/**
* Initializes objects for accessing emails and packet files on the filesystem.
* @param passwordCache
*/
private void initializeFolderAccess(PasswordCache passwordCache) {
inbox = new EmailFolder(configuration.getInboxDir(), passwordCache);
outbox = new Outbox(configuration.getOutboxDir(), passwordCache);
sentFolder = new EmailFolder(configuration.getSentFolderDir(), passwordCache);
trashFolder = new TrashFolder(configuration.getTrashFolderDir(), passwordCache);
relayPacketFolder = new RelayPacketFolder(configuration.getRelayPacketDir());
MessageIdCache messageIdCache = new MessageIdCache(configuration.getMessageIdCacheFile(), configuration.getMessageIdCacheSize());
incompleteEmailFolder = new IncompleteEmailFolder(configuration.getIncompleteDir(), messageIdCache, inbox);
emailDhtStorageFolder = new EmailPacketFolder(configuration.getEmailDhtStorageDir());
indexPacketDhtStorageFolder = new IndexPacketFolder(configuration.getIndexPacketDhtStorageDir());
directoryDhtFolder = new DirectoryEntryFolder(configuration.getDirectoryEntryDhtStorageDir());
}
Aggregations