From e777252f07cd2d5d30f5eb1ff2b1cd0dba535e14 Mon Sep 17 00:00:00 2001 From: Gianluca Giacometti <52405+gianlucagiacometti@users.noreply.github.com> Date: Sun, 17 Jan 2021 23:53:04 +0100 Subject: [PATCH] Add a note for new fields It took me some time to understand that adding fields through the struct hook does not mean that they are automatically displayed in the corresponding virtual list. I think that adding a note here would make life easier to everybody. --- config.inc.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/config.inc.php b/config.inc.php index 66b93f4d..b0f003de 100644 --- a/config.inc.php +++ b/config.inc.php @@ -325,7 +325,9 @@ function maildir_name_hook($domain, $user) { Note: Adding a field to $struct adds the handling of this field in PostfixAdmin, but it does not create it in the database. You have to do - that yourself. + that yourself. + Note: If you add fields here and you want them to be displayed in the + virtual lists, you must also modify the corresponding virtual-list template. Please follow the naming policy for custom database fields and tables on https://sourceforge.net/p/postfixadmin/wiki/Custom_fields/ to avoid clashes with future versions of PostfixAdmin.