Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 14 Nov 2025 02:06:35 GMT
From:      Vladimir Druzenko <vvd@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: e69db495a51f - main - mail/roundcube-automatic_addressbook: Silence warnings
Message-ID:  <202511140206.5AE26ZRm044272@gitrepo.freebsd.org>

index | next in thread | raw e-mail

The branch main has been updated by vvd:

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         | 24 ++++++++++++++++++++++
 2 files changed, 26 insertions(+), 1 deletion(-)

diff --git a/mail/roundcube-automatic_addressbook/Makefile b/mail/roundcube-automatic_addressbook/Makefile
index 37cc22b85dd0..591497c40371 100644
--- a/mail/roundcube-automatic_addressbook/Makefile
+++ b/mail/roundcube-automatic_addressbook/Makefile
@@ -1,5 +1,6 @@
 PORTNAME=	automatic_addressbook
-PORTVERSION=	0.4.3
+DISTVERSION=	0.4.3
+PORTREVISION=	1
 CATEGORIES=	mail
 PKGNAMEPREFIX=	roundcube-
 PKGNAMESUFFIX=	${PHP_PKGNAMESUFFIX}
diff --git a/mail/roundcube-automatic_addressbook/files/patch-automatic__addressbook.php b/mail/roundcube-automatic_addressbook/files/patch-automatic__addressbook.php
new file mode 100644
index 000000000000..02dd4fd59b40
--- /dev/null
+++ b/mail/roundcube-automatic_addressbook/files/patch-automatic__addressbook.php
@@ -0,0 +1,24 @@
+--- automatic_addressbook.php.orig	2017-01-26 08:10:28 UTC
++++ automatic_addressbook.php
+@@ -129,9 +129,9 @@ class automatic_addressbook extends rcube_plugin
+             );
+         } else {
+             $all_recipients = array_merge(
+-                rcube_mime::decode_address_list($headers['To'], null, true, $headers['charset']),
+-                rcube_mime::decode_address_list($headers['Cc'], null, true, $headers['charset']),
+-                rcube_mime::decode_address_list($headers['Bcc'], null, true, $headers['charset'])
++                @rcube_mime::decode_address_list($headers['To'], null, true, $headers['charset']),
++                @rcube_mime::decode_address_list($headers['Cc'], null, true, $headers['charset']),
++                @rcube_mime::decode_address_list($headers['Bcc'], null, true, $headers['charset'])
+             );
+         }
+ 
+@@ -284,7 +284,7 @@ class automatic_addressbook extends rcube_plugin
+         if ($args['source'] !== $this->abook_id) {
+             foreach (array('email:home', 'email:work', 'email:other') as $email_field) {
+                 // Would trigger a warning with rc 0.5 without this if
+-                if ($args['record'][$email_field]) {
++                if (@$args['record'][$email_field]) {
+                     foreach ($args['record'][$email_field] as $email) {
+                         $contact_emails[] = $email;
+                     }


home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202511140206.5AE26ZRm044272>