Created attachment 263071 [details] patch to hush the warnings Hello. I saw lot of errors in me log file due to trying to check of uninitialised/non-existed vars: [31-Jul-2025 20:16:50 Europe/Moscow] PHP Warning: Undefined array key "charset" in /usr/local/www/roundcube/plugins/automatic_addressbook/automatic_addressbook.php on line 132 [31-Jul-2025 20:16:50 Europe/Moscow] PHP Warning: Undefined array key "Cc" in /usr/local/www/roundcube/plugins/automatic_addressbook/automatic_addressbook.php on line 133 [31-Jul-2025 20:16:50 Europe/Moscow] PHP Warning: Undefined array key "charset" in /usr/local/www/roundcube/plugins/automatic_addressbook/automatic_addressbook.php on line 133 [31-Jul-2025 20:16:50 Europe/Moscow] PHP Warning: Undefined array key "Bcc" in /usr/local/www/roundcube/plugins/automatic_addressbook/automatic_addressbook.php on line 134 [31-Jul-2025 20:16:50 Europe/Moscow] PHP Warning: Undefined array key "charset" in /usr/local/www/roundcube/plugins/automatic_addressbook/automatic_addressbook.php on line 134 [31-Jul-2025 20:16:50 Europe/Moscow] PHP Warning: Undefined array key "email:home" in /usr/local/www/roundcube/plugins/automatic_addressbook/automatic_addressbook.php on line 287 [31-Jul-2025 20:16:50 Europe/Moscow] PHP Warning: Undefined array key "email:work" in /usr/local/www/roundcube/plugins/automatic_addressbook/automatic_addressbook.php on line 287 and so I propose the attched patch to hush this kind of warnings. Tested on my servers, it seems to works as expected WBR
Looks good to me, but can't commit it.
A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=e69db495a51fb59f89b36bfcfc5c6e0124bbab85 commit e69db495a51fb59f89b36bfcfc5c6e0124bbab85 Author: Oleg Streejak <oleg@pcbtech.ru> AuthorDate: 2025-11-14 02:05:25 +0000 Commit: Vladimir Druzenko <vvd@FreeBSD.org> CommitDate: 2025-11-14 02:05:25 +0000 mail/roundcube-automatic_addressbook: Silence warnings PR: 288954 Approved by: Andrej Ebert <andrej@ebert.su> mail/roundcube-automatic_addressbook/Makefile | 3 ++- .../files/patch-automatic__addressbook.php (new) | 24 ++++++++++++++++++++++ 2 files changed, 26 insertions(+), 1 deletion(-)
Thanks. Next time please create patch against ports tree. You can use my commit as example.