pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/mail/mimedefang



Module Name:    pkgsrc
Committed By:   bouyer
Date:           Tue Feb 28 20:23:13 UTC 2023

Modified Files:
        pkgsrc/mail/mimedefang: Makefile distinfo
Added Files:
        pkgsrc/mail/mimedefang/patches:
            patch-modules_lib_Mail_MIMEDefang_MIME.pm

Log Message:
some UTF-8 attachement filename can cause mimedefang to crash;
fix it by rewriting the filename with ascii characters, using code which
was present upstream at some point.
See patches/patch-modules_lib_Mail_MIMEDefang_MIME.pm for details.
Bump PKGREVISION


To generate a diff of this commit:
cvs rdiff -u -r1.71 -r1.72 pkgsrc/mail/mimedefang/Makefile
cvs rdiff -u -r1.32 -r1.33 pkgsrc/mail/mimedefang/distinfo
cvs rdiff -u -r0 -r1.1 \
    pkgsrc/mail/mimedefang/patches/patch-modules_lib_Mail_MIMEDefang_MIME.pm

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/mail/mimedefang/Makefile
diff -u pkgsrc/mail/mimedefang/Makefile:1.71 pkgsrc/mail/mimedefang/Makefile:1.72
--- pkgsrc/mail/mimedefang/Makefile:1.71        Tue Feb 28 11:33:03 2023
+++ pkgsrc/mail/mimedefang/Makefile     Tue Feb 28 20:23:13 2023
@@ -1,8 +1,9 @@
-# $NetBSD: Makefile,v 1.71 2023/02/28 11:33:03 bouyer Exp $
+# $NetBSD: Makefile,v 1.72 2023/02/28 20:23:13 bouyer Exp $
 
 DISTNAME=              mimedefang-3.3
 CATEGORIES=            mail
 MASTER_SITES=          https://mimedefang.org/releases/
+PKGREVISION=           1
 
 MAINTAINER=            pettai%NetBSD.org@localhost
 HOMEPAGE=              https://www.mimedefang.org/

Index: pkgsrc/mail/mimedefang/distinfo
diff -u pkgsrc/mail/mimedefang/distinfo:1.32 pkgsrc/mail/mimedefang/distinfo:1.33
--- pkgsrc/mail/mimedefang/distinfo:1.32        Tue Feb 28 11:33:03 2023
+++ pkgsrc/mail/mimedefang/distinfo     Tue Feb 28 20:23:13 2023
@@ -1,7 +1,8 @@
-$NetBSD: distinfo,v 1.32 2023/02/28 11:33:03 bouyer Exp $
+$NetBSD: distinfo,v 1.33 2023/02/28 20:23:13 bouyer Exp $
 
 BLAKE2s (mimedefang-3.3.tar.gz) = f464307b1a34e15e9879ba3bc1622841743fa28dcb47f17f1f05747152c54311
 SHA512 (mimedefang-3.3.tar.gz) = f973d6bf8e5bb5043f6d255961dcf3f4f8208c7fb159694f5d62884e4dd480ab2d04cf6b71c8f48f56f368aa31b7ce54ec499503a4a3f55b9bf0696299a240ef
 Size (mimedefang-3.3.tar.gz) = 495544 bytes
 SHA1 (patch-Makefile.in) = 14d53b305bc1bb099624d02cc8bca63ab7226ace
 SHA1 (patch-mimedefang.pl.in) = d46c79ad616a6abc5c2791d32c678c5988ed64c9
+SHA1 (patch-modules_lib_Mail_MIMEDefang_MIME.pm) = 1d77a693fde1c7d883e3bca1407ced45629c97de

Added files:

Index: pkgsrc/mail/mimedefang/patches/patch-modules_lib_Mail_MIMEDefang_MIME.pm
diff -u /dev/null pkgsrc/mail/mimedefang/patches/patch-modules_lib_Mail_MIMEDefang_MIME.pm:1.1
--- /dev/null   Tue Feb 28 20:23:13 2023
+++ pkgsrc/mail/mimedefang/patches/patch-modules_lib_Mail_MIMEDefang_MIME.pm    Tue Feb 28 20:23:13 2023
@@ -0,0 +1,16 @@
+$NetBSD: patch-modules_lib_Mail_MIMEDefang_MIME.pm,v 1.1 2023/02/28 20:23:13 bouyer Exp $
+
+Fix https://github.com/The-McGrail-Foundation/MIMEDefang/issues/54
+using https://github.com/The-McGrail-Foundation/MIMEDefang/commit/456aeb107d5bb8fd56cc440cb10adccc65bb55d2
+Reported as issue #74
+
+--- ./modules/lib/Mail/MIMEDefang/MIME.pm.orig 2023-02-28 20:47:36.956901101 +0100
++++ ./modules/lib/Mail/MIMEDefang/MIME.pm      2023-02-28 20:47:40.716138964 +0100
+@@ -97,6 +97,7 @@
+       my $guess = $entity->head->recommended_filename();
+ 
+       if( defined $guess ) {
++              $guess =~ tr/\x00-\x7F/#/c;
+               return scalar( decode_mimewords( $guess ) );
+       }
+ 



Home | Main Index | Thread Index | Old Index