Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 11 Dec 2024 21:28:20 GMT
From:      Michael Gmelin <grembo@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: 63ee6103f973 - main - devel/phorgeit-phorge: Wrap very long email header
Message-ID:  <202412112128.4BBLSKBN060588@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by grembo:

URL: https://cgit.FreeBSD.org/ports/commit/?id=63ee6103f973918498fd6e445732e48c114f0e43

commit 63ee6103f973918498fd6e445732e48c114f0e43
Author:     Michael Gmelin <grembo@FreeBSD.org>
AuthorDate: 2024-12-11 21:27:05 +0000
Commit:     Michael Gmelin <grembo@FreeBSD.org>
CommitDate: 2024-12-11 21:27:05 +0000

    devel/phorgeit-phorge:  Wrap very long email header
    
    Fixes X-Phabricator-Stamps getting too long to be accepted when using
    dma(8) as MTA.
---
 devel/phorgeit-phorge/Makefile                                |  2 +-
 ...applications_metamta_engine_PhabricatorMailEmailEngine.php | 11 +++++++++++
 2 files changed, 12 insertions(+), 1 deletion(-)

diff --git a/devel/phorgeit-phorge/Makefile b/devel/phorgeit-phorge/Makefile
index 8baa631c73de..39683556b8f4 100644
--- a/devel/phorgeit-phorge/Makefile
+++ b/devel/phorgeit-phorge/Makefile
@@ -1,6 +1,6 @@
 PORTNAME=	phorge
 PORTVERSION=	2024.19
-PORTREVISION=	1
+PORTREVISION=	2
 PORTEPOCH=	1
 CATEGORIES=	devel
 PKGNAMEPREFIX=	phorgeit
diff --git a/devel/phorgeit-phorge/files/patch-src_applications_metamta_engine_PhabricatorMailEmailEngine.php b/devel/phorgeit-phorge/files/patch-src_applications_metamta_engine_PhabricatorMailEmailEngine.php
new file mode 100644
index 000000000000..ca23ddec2eb2
--- /dev/null
+++ b/devel/phorgeit-phorge/files/patch-src_applications_metamta_engine_PhabricatorMailEmailEngine.php
@@ -0,0 +1,11 @@
+--- src/applications/metamta/engine/PhabricatorMailEmailEngine.php.orig	2021-12-18 19:11:09 UTC
++++ src/applications/metamta/engine/PhabricatorMailEmailEngine.php
+@@ -80,7 +80,7 @@ final class PhabricatorMailEmailEngine
+     if ($stamps) {
+       $headers[] = $this->newEmailHeader(
+         'X-Phabricator-Stamps',
+-        implode(' ', $stamps));
++        wordwrap(implode(' ', $stamps), 800, "\n\t"));
+     }
+ 
+     $must_encrypt = $mail->getMustEncrypt();



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