Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 29 Dec 2018 17:03:59 -0700
From:      Janketh Jay <jankyj@unfs.us>
To:        freebsd-ports@freebsd.org
Subject:   Re: Maia Mailgaurd
Message-ID:  <c3a0c93d0d2bcbbefedff7c5f89cf3c0@unfs.us>
In-Reply-To: <9BE00ADB383D4AC1A8E546A8B4F0DD89@RIVENDELL>
References:  <3695c8be-c969-1715-a902-72752faf7d5e@hayers.org> <f8c68abc-049c-3ded-5739-f658cfb8dfec@unfs.us> <B99FC248102343D980E03E07F63E4F13@RIVENDELL> <c204d13e-69ef-fdfe-4619-b27500126608@unfs.us> <9BE00ADB383D4AC1A8E546A8B4F0DD89@RIVENDELL>

next in thread | previous in thread | raw e-mail | index | archive | help
Hi All,

On 03/12/2018 2:17 pm, Reko Turja via freebsd-ports wrote:
> Hello Janky Jay!
> 
> -----Original Message----- Sent: Monday, December 3, 2018 4:17 PM
> Subject: Re: Maia Mailgaurd
> 
>> Okay. No sweat. I'll work on getting a port patch going as that seems
>> it would be the easiest way to push this out. I'll provide a download 
>> as
>> soon as I have something available for testing.
> 
> Sounds good, thank you for your work on ports!
> 
> -Reko
> 

       So, after a bit of testing (and not being able to update the port 
for PHP7 due to Smarty issues), below is a simple patch that will keep 
the current port version of Maia (1.0.4_3) working with PHP7 (testing 
with PHP 7.2). Please let me know if this does not work or if there is 
anything else that needs to be added or changed. Hopefully, I'll get the 
Smarty issue(s) sorted out soon and have a new port submitted.

diff -Naur maia.orig/cache.php maia/cache.php
--- maia.orig/cache.php 2015-02-15 15:19:45.000000000 -0700
+++ maia/cache.php      2018-10-14 20:25:30.278960000 -0600
@@ -554,7 +554,7 @@
                      $rectmp = "";
                      foreach ($to_list as $recipient) {
                          if (isset($personal_addresses[$recipient]) || 
$domain_default) {
-                          $rectmp[] = $recipient;
+                          $rectmp = $recipient;
                          }
                      }
                      $rows[$count]['recipient_email'] = $rectmp;


       Essentially, you just need to remove the "[]" from "rectmp" on 
line 558 in your /usr/local/www/maia/cache.php file.

       Also, if you're interested in seeing/testing the new port (from 
the latest Github commit for technion's maia_mailguard), you can 
download the patch from the link below [1] and let me know if it's 
successful for you. Everything seems to work except for the WebUI due to 
a fatal call to Smarty which I cannot figure out (I'm not a PHP 
developer). However, once that is sorted, I should be ready to submit 
the new port so Maia can be updated to the latest version.

1. https://www.purplehat.org/downloads/maia/maia-1.0.4-g20181202.diff

Regards,
Janky Jay, III



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