Skip to content

Commit

Permalink
global: Rename mail_attribute_dict to mail_attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
sirainen committed Dec 9, 2023
1 parent fa4d6fd commit a168b62
Show file tree
Hide file tree
Showing 6 changed files with 36 additions and 22 deletions.
2 changes: 1 addition & 1 deletion source/admin_manual/migrating_mailboxes.rst
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ Things that you should consider in your config:
* :ref:`Quota <quota>` without rules (to make sure quota gets calculated, but not enforced)
* :ref:`Mail caching settings <mail_cache_settings>`
* :dovecot_core:ref:`Attachment detection settings <mail_attachment_detection_options>`
* :dovecot_core:ref:`Mailbox attribute settings <mail_attribute_dict>`
* :dovecot_core:ref:`Mailbox attribute settings <mail_attribute>`
* :ref:`Compression <mail_compress_plugin>` and :ref:`encryption <mail_crypt_plugin>` settings
* :ref:`NFS related settings <nfs>`

Expand Down
8 changes: 4 additions & 4 deletions source/configuration_manual/dict/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -388,13 +388,13 @@ You can also access multiple SQL fields. For example
* ``INSERT INTO user_shares (from_user, to_user, dummy) VALUES ('$from',
'$to', '$value') ON DUPLICATE KEY UPDATE dummy='$value'``

SQL dict with mail_attribute_dict
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
SQL dict with mail_attribute
^^^^^^^^^^^^^^^^^^^^^^^^^^^^

It's possible to implement :dovecot_core:ref:`mail_attribute_dict` also with
It's possible to implement :dovecot_core:ref:`mail_attribute` also with
SQL dict.

.. warning:: Using shared attributes in mail_attribute_dict requires the
.. warning:: Using shared attributes in ``mail_attribute`` requires the
mailbox GUID to be unique between users. This is not the case when
mails were migrated via imapc, because it uses a hash of the
mailbox name as the GUID. So every migrated user would have
Expand Down
9 changes: 6 additions & 3 deletions source/configuration_manual/imap_metadata.rst
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ which allows per-mailbox, per-user
data to be stored and accessed via IMAP commands.

To activate metadata storage, a :ref:`dictionary <dict>` needs to be
configured in the Dovecot configuration using the ``mail_attribute_dict``
option.
configured in the Dovecot configuration using the
:dovecot_core:ref:`mail_attribute` setting.

To activate the IMAP METADATA commands, the ``imap_metadata`` option needs to
be activated.
Expand All @@ -20,7 +20,10 @@ Example:
.. code-block:: none
# Store METADATA information within user's Maildir directory
mail_attribute_dict = file:%h/Maildir/dovecot-attributes
mail_attribute {
dict_driver = file
dict_file_path = %h/Maildir/dovecot-attributes
}
protocol imap {
imap_metadata = yes
Expand Down
12 changes: 9 additions & 3 deletions source/configuration_manual/mail_crypt_plugin.rst
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ than one key pair, but only one can be active.

:dovecot_plugin:ref:`crypt_user_key_curve` must be set.

:dovecot_core:ref:`mail_attribute_dict` must be set, as is is used to store the
:dovecot_core:ref:`mail_attribute` must be set, as is is used to store the
keys.

Unencrypted User Keys
Expand All @@ -108,7 +108,10 @@ Example config for folder keys with Maildir:

.. code-block:: none
mail_attribute_dict = file:%h/Maildir/dovecot-attributes
mail_attribute {
dict_driver = file
dict_file_path = %h/Maildir/dovecot-attributes
}
mail_plugins = $mail_plugins mail_crypt
crypt_user_key_curve = secp521r1
Expand All @@ -123,7 +126,10 @@ Example config for mandatory encrypted folder keys with Maildir:

.. code-block:: none
mail_attribute_dict = file:%h/Maildir/dovecot-attributes
mail_attribute {
dict_driver = file
dict_file_path = %h/Maildir/dovecot-attributes
}
mail_plugins = $mail_plugins mail_crypt
crypt_user_key_curve = secp521r1
Expand Down
2 changes: 1 addition & 1 deletion source/configuration_manual/protocols/imap_server.rst
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ Some of the extensions need to be explicitly enabled:
* SPECIAL-USE
* NOTIFY: Set :dovecot_core:ref:`mailbox_list_index` to ``yes``
* URLAUTH: Set :dovecot_core:ref:`imap_urlauth_host` and
:dovecot_core:ref:`mail_attribute_dict`
:dovecot_core:ref:`mail_attribute`

.. seealso::

Expand Down
25 changes: 15 additions & 10 deletions source/settings/core.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1282,14 +1282,17 @@ See :ref:`settings` for list of all setting groups.
commands.

.. note:: If activated, a dictionary needs to be configured, via the
:dovecot_core:ref:`mail_attribute_dict` setting.
:dovecot_core:ref:`mail_attribute` setting.

Example:

.. code-block:: none
# Store METADATA information within user's Maildir directory
mail_attribute_dict = file:%h/Maildir/dovecot-attributes
mail_attribute {
dict_driver = file
dict_file_path = %h/Maildir/dovecot-attributes
}
protocol imap {
imap_metadata = yes
Expand Down Expand Up @@ -2121,22 +2124,24 @@ See :ref:`settings` for list of all setting groups.
Attachments below this size will not be saved externally.


.. dovecot_core:setting:: mail_attribute_dict
.. dovecot_core:setting:: mail_attribute
:seealso: @imap_metadata;dovecot_core
:todo: Indicate metadata setting
:values: @string

The dictionary to be used for key=value mailbox attributes.
:values: @named_filter

This is used by the URLAUTH and METADATA extensions.
Named filter for initializing :ref:`dict driver <dict>` for server and
mailbox attributes (key=value).

:ref:`Mail user variables <variables-mail_user>` can be used.
This is used by the URLAUTH and METADATA extensions, as well as various
other features.

Example:

.. code-block:: none
mail_attribute_dict = file:%h/dovecot-attributes
mail_attribute {
dict_driver = file
dict_file_path = %h/dovecot-attributes
}
.. dovecot_core:setting:: mail_cache_fields
Expand Down

0 comments on commit a168b62

Please sign in to comment.