Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
cmouse committed Feb 9, 2023
1 parent cdb6dbd commit 6e4ced2
Showing 1 changed file with 6 additions and 9 deletions.
15 changes: 6 additions & 9 deletions source/configuration_manual/imap_metadata.rst
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,17 @@ for storing the entries.
Database schema
---------------

Since username is a primary key, it is required to have some value. When empty,
it means that the value applies to keys with ``shared/`` prefix. Keys with ``priv/``
prefix are expected to have a non-empty username.

.. code:: sql
CREATE TABLE metadata (
attr_name VARCHAR(255) NOT NULL,
username VARCHAR(255) NOT NULL DEFAULT '',
attr_name VARCHAR(255) NOT NULL,
attr_value VARCHAR(65535),
PRIMARY KEY(attr_name, username)
PRIMARY KEY(username, attr_name)
);
Configuration
Expand All @@ -68,10 +72,3 @@ Then in dovecot add::
}

mail_attribute_dict = proxy::metadata

Storing metadata in redis
=========================

To use redis, you can use::

mail_attribute_dict = redis:127.0.0.1

0 comments on commit 6e4ced2

Please sign in to comment.