aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOleg Streejak <oleg@pcbtech.ru>2025-11-14 02:05:25 +0000
committerVladimir Druzenko <vvd@FreeBSD.org>2025-11-14 02:05:25 +0000
commite69db495a51fb59f89b36bfcfc5c6e0124bbab85 (patch)
tree636e12e4532500e670dc2d61874bcf5e7f746932
parent7071c5d1b33b5c4fd6e039b10e0226990d49df41 (diff)
mail/roundcube-automatic_addressbook: Silence warnings
PR: 288954 Approved by: Andrej Ebert <andrej@ebert.su>
-rw-r--r--mail/roundcube-automatic_addressbook/Makefile3
-rw-r--r--mail/roundcube-automatic_addressbook/files/patch-automatic__addressbook.php24
2 files changed, 26 insertions, 1 deletions
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;
+ }