From owner-freebsd-ports@freebsd.org Sun Dec 30 00:04:11 2018 Return-Path: Delivered-To: freebsd-ports@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 6463914315F8 for ; Sun, 30 Dec 2018 00:04:11 +0000 (UTC) (envelope-from jankyj@unfs.us) Received: from stig.purplehat.org (stig.purplehat.org [50.243.134.106]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id DA1758AE63 for ; Sun, 30 Dec 2018 00:04:09 +0000 (UTC) (envelope-from jankyj@unfs.us) Received: from localhost (bill.goatse.unfs.us [50.243.134.106]) by stig.purplehat.org (Postfix) with ESMTP id 96A945C344 for ; Sat, 29 Dec 2018 17:04:00 -0700 (MST) DKIM-Filter: OpenDKIM Filter v2.10.3 stig.purplehat.org 96A945C344 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=unfs.us; s=mail; t=1546128240; bh=GK/rlcyCIsCgGcchzsaLboJwUp28MVVomLJsHPWSxTA=; h=Date:From:To:Subject:In-Reply-To:References:From; b=V8PPbIbpniLEE5YT/Sxdugp6JGEyVVr4ZVkfCZSWh2shGdE6IoQkZwCGwth1BJqJX JOhRCD04AXjYCO63O4fYGVf1OH4z/ps6f44SatGUqpm+/ezcIRm3u0GHs/DvapVHyi hPqx20jK8qXVB8U8/r8LUatA5hu2vytGPXYLh9Ys= Received: from stig.purplehat.org ([50.243.134.106]) by localhost (stig.purplehat.org [50.243.134.106]) (maiad, port 10024) with ESMTP id 55931-06 for ; Sat, 29 Dec 2018 17:03:59 -0700 (MST) Received: from webmail.purplehat.org (bill.goatse.unfs.us [50.243.134.106]) (Authenticated sender: jankyj@unfs.us) by stig.purplehat.org (Postfix) with ESMTPA id 26E375C33F for ; Sat, 29 Dec 2018 17:03:59 -0700 (MST) DKIM-Filter: OpenDKIM Filter v2.10.3 stig.purplehat.org 26E375C33F DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=unfs.us; s=mail; t=1546128239; bh=GK/rlcyCIsCgGcchzsaLboJwUp28MVVomLJsHPWSxTA=; h=Date:From:To:Subject:In-Reply-To:References:From; b=LlIByvRcQRKBX0Irp6azOW2W4WPjcZr6o5FPIr1+5ZSmtv3fGFdDaUmead/X/MFXq +j27v7pdbDDlzraIkb6SKUP04o8Uk304ftaPmXzLhsH4bC27sLHksy2FiEGgSPvxzM rlHwG8h1d+aKc4U7Jb+gY+5y/HoM5z73+0rDCqyg= MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Sat, 29 Dec 2018 17:03:59 -0700 From: Janketh Jay To: freebsd-ports@freebsd.org Subject: Re: Maia Mailgaurd In-Reply-To: <9BE00ADB383D4AC1A8E546A8B4F0DD89@RIVENDELL> References: <3695c8be-c969-1715-a902-72752faf7d5e@hayers.org> <9BE00ADB383D4AC1A8E546A8B4F0DD89@RIVENDELL> Message-ID: X-Sender: jankyj@unfs.us User-Agent: PHO Webmail X-Virus-Scanned: Maia Mailguard X-Rspamd-Queue-Id: DA1758AE63 X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=unfs.us header.s=mail header.b=V8PPbIbp; dkim=pass header.d=unfs.us header.s=mail header.b=LlIByvRc; dmarc=pass (policy=none) header.from=unfs.us; spf=pass (mx1.freebsd.org: domain of jankyj@unfs.us designates 50.243.134.106 as permitted sender) smtp.mailfrom=jankyj@unfs.us X-Spamd-Result: default: False [-4.34 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_DKIM_ALLOW(-0.20)[unfs.us:s=mail]; XM_UA_NO_VERSION(0.01)[]; FROM_HAS_DN(0.00)[]; R_SPF_ALLOW(-0.20)[+a]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-ports@freebsd.org]; TO_DN_NONE(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; RCVD_COUNT_THREE(0.00)[3]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; DKIM_TRACE(0.00)[unfs.us:+]; MX_GOOD(-0.01)[mx2.purplehat.org,stig.purplehat.org]; RCVD_IN_DNSWL_NONE(0.00)[106.134.243.50.list.dnswl.org : 127.0.10.0]; NEURAL_HAM_SHORT(-0.87)[-0.874,0]; DMARC_POLICY_ALLOW(-0.50)[unfs.us,none]; RCVD_NO_TLS_LAST(0.10)[]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; IP_SCORE(-0.56)[ipnet: 50.128.0.0/9(-1.99), asn: 7922(-0.74), country: US(-0.08)]; ASN(0.00)[asn:7922, ipnet:50.128.0.0/9, country:US]; MID_RHS_MATCH_FROM(0.00)[] X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 30 Dec 2018 00:04:11 -0000 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