[From nobody Fri Sep 25 10:51:03 2026
Received: (at submit) by bugs.debian.org; 6 Jan 2025 22:32:05 +0000
X-Spam-Checker-Version: SpamAssassin 3.4.6-bugs.debian.org_2005_01_02
 (2021-04-09) on buxtehude.debian.org
X-Spam-Level: 
X-Spam-Status: No, score=-14.1 required=4.0 tests=BAYES_00,
 BODY_INCLUDES_PACKAGE,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,
 DKIM_VALID_EF,FOURLA,HAS_PACKAGE,SPF_HELO_PASS,SPF_PASS,
 UNPARSEABLE_RELAY autolearn=ham autolearn_force=no
 version=3.4.6-bugs.debian.org_2005_01_02
X-Spam-Bayes: score:0.0000 Tokens: new, 23; hammy, 130; neutral, 42; spammy,
 0. spammytokens: hammytokens:0.000-+--H*M:reportbug,
 0.000-+--H*MI:reportbug, 0.000-+--Maintainer, 0.000-+--sk:git2021,
 0.000-+--Uncaught
Return-path: &lt;devel@sumpfralle.de&gt;
Received: from mail.senselab.org ([51.68.160.139]:50308)
 by buxtehude.debian.org with esmtps
 (TLS1.3:ECDHE_X25519__RSA_PSS_RSAE_SHA256__AES_256_GCM:256)
 (Exim 4.94.2) (envelope-from &lt;devel@sumpfralle.de&gt;)
 id 1tUvdk-00C39T-BY
 for submit@bugs.debian.org; Mon, 06 Jan 2025 22:32:05 +0000
Received: from [127.0.0.1] (localhost [127.0.0.1])
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sumpfralle.de;
 s=mail; t=1736201583;
 h=from:from:reply-to:subject:subject:date:date:message-id:message-id:
 to:to:cc:mime-version:mime-version:content-type:content-type:
 content-transfer-encoding:content-transfer-encoding;
 bh=hElSG+d8nRHPnOd46NQ0Sw/8jUfFQTu9CtqhtbQdluQ=;
 b=RFvGLiR7Ejk0HrY0utzuOk2ucgqBL3i7LGbvXeJRMiC4PZF7zqyFSG/0zb6Vcsuy3IeUB4
 l9VDIzWDphCOPBvZEhcrDTRbpguGeNxKiLLs6ufihGAf38Fa/KkNipIACVJzjJnJbY468F
 mcbYkzaLZ9G/retozDxgK5zh1tp4QEYkhGdc7XxsC7j92hQKTvgEm1/ncWpqBhrv2aBeGI
 Otz1U/lnI/ByCGE0G8c+koUdghne/JjGXFuXNL4fkajvM+jEqABao9IYazG4WNKrgZtW38
 I44V3iaeroOn6c/TMBYe/WjjXujP0BR2//sNX/4Er2ZQEEO6aP7Ey1zIS4oLWcps49zHy8
 jGEMaT2xiibKgrCC7gVfPTEjLqAUIDTdC9PwJoCWLePw+HDgRXi9qVIoI2Wi9MDI2beg9z
 j8fmepDxxjI6iNs0TRGTazI3UMOCbWVo2VpdE0Y6/DHSy1z2YASf1Nr+M53zpnS4nMm9wx
 i8eKy+5HOvWIQWRvxjjPSHDmLm3lW0zW8p0GH4kuSow2NMtAlau4YhQ6J3QFvL+cOBPaYT
 6ALKE6DvSuZlLtiEG9yQPoFIjvX8A7wl/tCOrz4t8jhigyB9LgHORh5K2B90U9XL2W5JcD
 BHV0VD+djwTei+zpO9074RSwvK5ldQaV6XPC6v3OmdFBwDqFBje7I=
Content-Type: text/plain; charset=&quot;us-ascii&quot;
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
From: Lars Kruse &lt;devel@sumpfralle.de&gt;
To: Debian Bug Tracking System &lt;submit@bugs.debian.org&gt;
Subject: gosa-plugins-mailaddress: Accessing an account with email attribute
 fails with 'Undefined constant &quot;active&quot;'
Message-ID: &lt;173620158150.23484.18216438848898214865.reportbug@erker.lan&gt;
Date: Mon, 06 Jan 2025 23:13:01 +0100
X-Greylist: delayed 1134 seconds by postgrey-1.36 at buxtehude;
 Mon, 06 Jan 2025 22:32:04 UTC
Delivered-To: submit@bugs.debian.org

Package: gosa-plugins-mailaddress
Version: 2.8~git20211027.08b10a2-2
Severity: normal
Tags: patch

Dear Maintainer,

accessing the mail attribute of a user account (e.g. by clicking on the
email icon next to the username) fails with the following error message:

```
Fatal error: Uncaught Error: Undefined constant &quot;active&quot; in /usr/share/gosa/plugins/personal/mailaddress/class_mailAccount.inc:198 Stack trace:
 #0 /usr/share/gosa/include/class_tabs.inc(172): mailAccount-&gt;execute()
 #1 /usr/share/gosa/include/class_management.inc(224): tabs-&gt;execute()
 #2 /usr/share/gosa/plugins/admin/users/main.inc(44): management-&gt;execute()
 #3 /usr/share/gosa/html/main.php(427): require('...')
 #4 {main} thrown in /usr/share/gosa/plugins/personal/mailaddress/class_mailAccount.inc on line 198
```

The problem can be solved with the following change:

```patch
--- class_mailAccount.inc.orig  2025-01-06 22:48:11.591166049 +0100
+++ class_mailAccount.inc       2025-01-06 22:48:36.063175585 +0100
@@ -195,7 +195,7 @@
         }
 
         $smarty-&gt;assign (&quot;multiple_support&quot;,$this-&gt;multiple_support_active);
-        if ($this-&gt;multiple_support-active) {
+        if ($this-&gt;multiple_support_active) {
             $smarty-&gt;assign (&quot;multi_mail&quot;,array_slice ($this-&gt;multi_attrs_all['mail'],1));
         }
         return ($display.$smarty-&gt;fetch (get_template_path (&quot;generic.tpl&quot;,TRUE,dirname (__FILE__))));
```

Thank you for your time!

Cheers,
Lars
]