Previous Topic

Next Topic

Book Contents

Book Index

Directory Cache

About

This tab allows you to define settings for your mail database. This database is used to keep information about email boxes – their sizes, numbers of messages, etc. Data are recounted after each change (except for e. g. copying emails manually within a file manager – in this case you can use the Run Now button).

As access to a drive where the database is kept can take some time, it is convenient to have this database in memory – cache.

directory_cache_tab

Field

Description

DB Settings

Click the button to open the standard Database dialog where you can define and maintain the database settings.

For more information, refer to the IceWarp Server GUI Reference – Database Settings chapter.

Schedule

Click the button to define how often the database contents are to be refreshed. The standard Schedule dialog opens.

For more information, refer to the IceWarp Server GUI Reference – Schedule chapter.

Run Now

You may want to recalculate database data immediately (e. g. after copying some messages manually using a file manager). Click the button.

Indexed Directories

Indexed directories are shown here. These are mail and archive directories (default or as set on the appropriate places – System – Storage – Directories, Mail – Archive).

Not editable here.

NOTE: The externaldirs.dat file can be used to list non-standard mailbox paths. (For more information, refer to the Domains and Accounts – Management – Domains – Options chapter – Folder section.) All mailbox paths included in this file are also automatically listed in this field.

Directory Cache Moved to Database

Disk based directory cache (subdirs.dat, size.dat in user's mailboxes) has been removed. After upgrade a database is created (SQLite by default) to which the directory indices and sizes will be written. When the DB is empty, the directories are indexed on demand, whenever requested by server (e.g. IMAP folder list).

Each Friday before midnight (but this can be scheduled to custom time) the /mail folder and /archive folder is traversed and directory indices and sizes are updated. The downside is that folders copied into mailboxes will not appear to users unless the directory cache is updated using the System – Advanced – Directory Cache – Run Now button or the folders are copied using the built-in File Manager, which rebuilds the index automatically (and also updates imapindex.dat for any files copied).

The default directory cache database should be changed to MySQL for large installations, and the full index built after upgrade using the Run Now button. This can take many hours since the indexing runs with a very low priority but will not affect server operation beside some slowdowns when the directory information is requested for the first time.

See Also

Advanced

Protocol

Patterns