!1 Package init
From: @chengzihan2 Reviewed-by: @small_leek Signed-off-by: @small_leek
This commit is contained in:
commit
1299561d39
47
0001-Fix-SIGSEGV-in-reformime-1613761.patch
Normal file
47
0001-Fix-SIGSEGV-in-reformime-1613761.patch
Normal file
@ -0,0 +1,47 @@
|
|||||||
|
From 1186c36c44ca581fd4819f59d1823d3f2ec17164 Mon Sep 17 00:00:00 2001
|
||||||
|
From: "Brian C. Lane" <bcl@brianlane.com>
|
||||||
|
Date: Wed, 8 Aug 2018 13:06:58 -0700
|
||||||
|
Subject: [PATCH] Fix SIGSEGV in reformime (#1613761)
|
||||||
|
|
||||||
|
Check for NULL section when running strtok on it for decode and
|
||||||
|
do_extract handling.
|
||||||
|
---
|
||||||
|
libs/rfc2045/reformime.c | 10 ++++++----
|
||||||
|
1 file changed, 6 insertions(+), 4 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/libs/rfc2045/reformime.c b/libs/rfc2045/reformime.c
|
||||||
|
index 9851c65..49a0ebd 100644
|
||||||
|
--- a/libs/rfc2045/reformime.c
|
||||||
|
+++ b/libs/rfc2045/reformime.c
|
||||||
|
@@ -1164,10 +1164,11 @@ int rc=0;
|
||||||
|
}
|
||||||
|
else if (dodecode)
|
||||||
|
{
|
||||||
|
- mimesection = strtok(section,",");
|
||||||
|
+ mimesection = section ? strtok(section, ","):NULL;
|
||||||
|
do {
|
||||||
|
print_decode(p, mimesection);
|
||||||
|
- mimesection = strtok(NULL,",");
|
||||||
|
+ if (mimesection)
|
||||||
|
+ mimesection = strtok(NULL,",");
|
||||||
|
} while (mimesection != NULL);
|
||||||
|
}
|
||||||
|
else if (dorewrite)
|
||||||
|
@@ -1176,11 +1177,12 @@ int rc=0;
|
||||||
|
dsn(p, dodsn == 2);
|
||||||
|
else if (do_extract)
|
||||||
|
{
|
||||||
|
- mimesection = strtok(section,",");
|
||||||
|
+ mimesection = section ? strtok(section, ","):NULL;
|
||||||
|
do {
|
||||||
|
extract_section(p, mimesection, extract_filename,
|
||||||
|
argc-argn, argv+argn, do_extract);
|
||||||
|
- mimesection = strtok(NULL,",");
|
||||||
|
+ if (mimesection)
|
||||||
|
+ mimesection = strtok(NULL,",");
|
||||||
|
} while (mimesection != NULL);
|
||||||
|
}
|
||||||
|
else if (dovalidate)
|
||||||
|
--
|
||||||
|
2.17.1
|
||||||
|
|
||||||
BIN
maildrop-2.9.3.tar.bz2
Normal file
BIN
maildrop-2.9.3.tar.bz2
Normal file
Binary file not shown.
BIN
maildrop-2.9.3.tar.bz2.sig
Normal file
BIN
maildrop-2.9.3.tar.bz2.sig
Normal file
Binary file not shown.
77
maildrop.spec
Normal file
77
maildrop.spec
Normal file
@ -0,0 +1,77 @@
|
|||||||
|
%global _hardened_build 1
|
||||||
|
Summary: Mail delivery agent with filtering abilities
|
||||||
|
Name: maildrop
|
||||||
|
Version: 2.9.3
|
||||||
|
Release: 1
|
||||||
|
License: GPLv2 with exceptions
|
||||||
|
URL: https://sourceforge.net/projects/courier
|
||||||
|
Source0: https://downloads.sourceforge.net/project/courier/%{name}/%{version}/%{name}-%{version}.tar.bz2
|
||||||
|
Source1: https://downloads.sourceforge.net/project/courier/%{name}/%{version}/%{name}-%{version}.tar.bz2.sig
|
||||||
|
Source2: pubkey.maildrop
|
||||||
|
Patch0001: 0001-Fix-SIGSEGV-in-reformime-1613761.patch
|
||||||
|
Requires: courier-unicode >= 1.4
|
||||||
|
BuildRequires: automake, libtool, autoconf gcc-c++, gdbm-devel, libdb-devel, pcre-devel gawk
|
||||||
|
BuildRequires: gnupg courier-unicode-devel >= 1.4 gamin-devel
|
||||||
|
%description
|
||||||
|
maildrop is the mail filter/mail delivery agent that's used by the
|
||||||
|
Courier Mail Server. This is a standalone build of the maildrop mail
|
||||||
|
filter that can be used with other mail servers.
|
||||||
|
maildrop is a replacement for your local mail delivery agent. maildrop
|
||||||
|
reads a mail message from standard input, then delivers the message to
|
||||||
|
your mailbox. maildrop knows how to deliver mail to mbox-style
|
||||||
|
mailboxes, and maildirs.
|
||||||
|
maildrop optionally reads instructions from a file, which describe how
|
||||||
|
to filter incoming mail. These instructions can direct maildrop to
|
||||||
|
deliver the message to an alternate mailbox, or forward it somewhere
|
||||||
|
else. Unlike procmail, maildrop uses a structured filtering language.
|
||||||
|
maildrop is written in C++, and is significantly larger than
|
||||||
|
procmail. However, it uses resources much more efficiently. Unlike
|
||||||
|
procmail, maildrop will not read a 10 megabyte mail message into
|
||||||
|
memory. Large messages are saved in a temporary file, and are filtered
|
||||||
|
from the temporary file. If the standard input to maildrop is a file,
|
||||||
|
and not a pipe, a temporary file will not be necessary.
|
||||||
|
maildrop checks the mail delivery instruction syntax from the filter
|
||||||
|
file, before attempting to deliver a message. Unlike procmail, if the
|
||||||
|
filter file contains syntax errors, maildrop terminates without
|
||||||
|
delivering the message. The user can fix the typo without causing any
|
||||||
|
mail to be lost.
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%autosetup -p1
|
||||||
|
gpg --import %{SOURCE2}
|
||||||
|
gpg --verify %{SOURCE1} %{SOURCE0}
|
||||||
|
|
||||||
|
%build
|
||||||
|
%configure --disable-shared \
|
||||||
|
--enable-use-flock=1 --with-locking-method=fcntl \
|
||||||
|
--enable-use-dotlock=1 \
|
||||||
|
--enable-syslog=1 \
|
||||||
|
--enable-sendmail=%{_sbindir}/sendmail
|
||||||
|
make
|
||||||
|
|
||||||
|
%install
|
||||||
|
rm -rf %{buildroot}
|
||||||
|
make install DESTDIR=%{buildroot} htmldir=%{_defaultdocdir}/%{name}
|
||||||
|
cp -pr COPYING COPYING.GPL AUTHORS %{buildroot}%{_defaultdocdir}/%{name}
|
||||||
|
cp -pr README README.postfix ChangeLog UPGRADE %{buildroot}%{_defaultdocdir}/%{name}
|
||||||
|
|
||||||
|
%files
|
||||||
|
%doc %{_defaultdocdir}/%{name}
|
||||||
|
%attr(6755,root,mail) %{_bindir}/maildrop
|
||||||
|
%attr(6755,root,mail) %{_bindir}/lockmail
|
||||||
|
%{_bindir}/deliverquota
|
||||||
|
%{_bindir}/mailbot
|
||||||
|
%{_bindir}/maildirmake
|
||||||
|
%{_bindir}/makemime
|
||||||
|
%{_bindir}/reformail
|
||||||
|
%{_bindir}/reformime
|
||||||
|
%{_bindir}/makedat
|
||||||
|
%{_bindir}/makedatprog
|
||||||
|
%{_mandir}/man1/*.1*
|
||||||
|
%{_mandir}/man5/*.5*
|
||||||
|
%{_mandir}/man7/*.7*
|
||||||
|
%{_mandir}/man8/*.8*
|
||||||
|
|
||||||
|
%changelog
|
||||||
|
* Wed Oct 14 2020 chengzihan <chengzihan2@huawei.com> - 2.9.3-1
|
||||||
|
- Package init
|
||||||
4
maildrop.yaml
Normal file
4
maildrop.yaml
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
version_control: git
|
||||||
|
src_repo: https://git.code.sf.net/p/courier/courier-libs.git
|
||||||
|
tag_prefix: "^"
|
||||||
|
separator: "."
|
||||||
53
pubkey.maildrop
Normal file
53
pubkey.maildrop
Normal file
@ -0,0 +1,53 @@
|
|||||||
|
-----BEGIN PGP PUBLIC KEY BLOCK-----
|
||||||
|
Version: GnuPG v1
|
||||||
|
|
||||||
|
mQINBFIaWFgBEAD3yahhf9kg8DKupe2vF8Vhva6hnQm07u9seA5/YTirGvKZa1o9
|
||||||
|
R9OWy2YXFEvYjcRarwxIrzbDD3+Q09TTFjFmlNu6rV9RXlzLtJDQN4IoY9gfC08g
|
||||||
|
X6EzpwAzHuBeJrVCTFCgPdBk7s4FwlSXnKr/9mCn0EzDhz++Fma/WxaB8x9J032z
|
||||||
|
NfDsrjT98vA0cq+wc3a94dj96mFqHz+d+mOHkFYU+OpQeR/3LkFt7MAkko31DuiD
|
||||||
|
O9IGXVNwCVDBTIUnLjHs4AnJgTP6PtbyfLMCKhe0aUOLDZqhhAy/yxl5Pyn3xq/J
|
||||||
|
tQWgLjtQR+WJWgEUtjZ9YMC9koVJmjsBkGJTQFNwl8kTeMkvJ/+tsKW/j/fcl5j9
|
||||||
|
Jq59WkqVSvvXoMqsHLRORD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q0tTEQ4aMnh/PlogGpKkAhJ7oDd
|
||||||
|
evSK5sLS70B1sKJu4QARAQABiQIlBBgBAgAPBQJSGlhYAhsMBQkSzAMAAAoJEGs6
|
||||||
|
Yr4nnb8l+IAP/ju+6SSgYGAOFTRXQDI0fVEJ3yZaudC+LRLXcoteOI7L9s25KSxz
|
||||||
|
+Vma2QS834kyDvIo+Fm3HBz+L7miBPp0JNspOuvygTesyBx1YvxUa0Q+JPDLPZLQ
|
||||||
|
oCz6+KbruC31yp89UE5glBceo3/XDsIYreDMEHRbUwxmv0cvTsFeqnqsKYaPLcpi
|
||||||
|
P4bj1M0FsPU6p7BTeI4732rxolM3KnRckdVv46rYx9aAPgAX+phLpOdSBDkB7vC6
|
||||||
|
FKLGGKjpUL61H+CcrvgRxDFU+hlOUw710RxHrNKQKxguqrwq2Rlu6y2A1LHZNTHc
|
||||||
|
inoWgI6dDSWPKoEgDHMQq4A42lPaM0a936NtfzHlp/MAHSUNZNrwG53ee0Pa1ltl
|
||||||
|
9F+TFcetliWnP01KRvAGT3Pvd/9Ye38nRNK4n0CMHikBgFUeuG3ZnnTyX4vD5R/k
|
||||||
|
oO8Z3iVlxY8atDyuF6ntfID710YNXgAna5xB7l3PVPFjwx1j2cqoyAibCeuQ5PQz
|
||||||
|
Uo9W+DM9NMEaqFCC8buLikJzj0mU9VfEQuDntAuDGvbH0vQfl8w8Rrq8vS2sjXrt
|
||||||
|
YMyZ3FqO5LpOjWv/3ywmeHZMgt2L0VjXc6p52zbG5QPEvp25mEHNEHbGlFpqlO+S
|
||||||
|
n13W3olBdLG97hH2N7/P8Gf7mhokBzXmm0M7CPAw3VI5McKysVu35OX0
|
||||||
|
=85Hx
|
||||||
|
-----END PGP PUBLIC KEY BLOCK-----
|
||||||
Loading…
x
Reference in New Issue
Block a user