Search in sources :

Example 1 with IndexPacketFolder

use of i2p.bote.folder.IndexPacketFolder 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());
}
Also used : RelayPacketFolder(i2p.bote.folder.RelayPacketFolder) IncompleteEmailFolder(i2p.bote.folder.IncompleteEmailFolder) Outbox(i2p.bote.folder.Outbox) TrashFolder(i2p.bote.folder.TrashFolder) DirectoryEntryFolder(i2p.bote.folder.DirectoryEntryFolder) EmailPacketFolder(i2p.bote.folder.EmailPacketFolder) MessageIdCache(i2p.bote.folder.MessageIdCache) IndexPacketFolder(i2p.bote.folder.IndexPacketFolder) EmailFolder(i2p.bote.folder.EmailFolder) IncompleteEmailFolder(i2p.bote.folder.IncompleteEmailFolder)

Aggregations

DirectoryEntryFolder (i2p.bote.folder.DirectoryEntryFolder)1 EmailFolder (i2p.bote.folder.EmailFolder)1 EmailPacketFolder (i2p.bote.folder.EmailPacketFolder)1 IncompleteEmailFolder (i2p.bote.folder.IncompleteEmailFolder)1 IndexPacketFolder (i2p.bote.folder.IndexPacketFolder)1 MessageIdCache (i2p.bote.folder.MessageIdCache)1 Outbox (i2p.bote.folder.Outbox)1 RelayPacketFolder (i2p.bote.folder.RelayPacketFolder)1 TrashFolder (i2p.bote.folder.TrashFolder)1