mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-27 08:04:14 +00:00
a8ec44af72
- Don't coredump in comsat code if interrupted early - Correctly handle COMSAT=on - Once used, the 'H' and 'r' flags would never be cleared - Fix possible buffer overflow in variable-capture actions - Fix up the parsing of variable-capture actions - LMTP code assumed sizeof(long)==sizeof(int) - SHELL is now always preset to /bin/sh. USER_SHELL contains the shell from the user's passwd entry - When HOST is mismatched, reset it for the next rcfile - Always read in a new, global rcfile (/etc/procmail.conf) to allow runtime configuration of variables like DEFAULT. This rcfile cannot deliver or filter messages - Mismatched HOST in /etc/procmailrc didn't discard the message - backquote expansion in a condition disabled header concatenation for that condition - LMTP didn't correctly handle quoted localparts - Removed SIZE extension from LMTP (unsupportable semantics) - Don't coredump if unable to exec /bin/sh - Enable "+detail" processing in LMTP mode by passing the delimiter (e.g., "+") as an optional argument after -z - In LMTP mode, save the domain of the recipient in PROCMAIL_DOMAIN - Set PROCMAIL_MODE to one of "d", "m", "z", or "" to reflect the mode option it was invoked with, if any - Fixed all bugs collected by Debian and others during the past 21 years. See the git commit history for detailed descriptions.
33 lines
922 B
Nix
33 lines
922 B
Nix
{ lib, stdenv, fetchurl }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "procmail";
|
|
version = "3.24";
|
|
|
|
src = fetchurl {
|
|
url = "https://github.com/BuGlessRB/procmail/archive/refs/tags/v${version}.tar.gz";
|
|
sha256 = "UU6kMzOXg+ld+TIeeUdx5Ih7mCOsVf2yRpcCz2m9OYk=";
|
|
};
|
|
|
|
# getline is defined differently in glibc now. So rename it.
|
|
# Without the .PHONY target "make install" won't install anything on Darwin.
|
|
postPatch = ''
|
|
sed -i Makefile \
|
|
-e "s%^RM.*$%#%" \
|
|
-e "s%^BASENAME.*%\BASENAME=$out%" \
|
|
-e "s%^LIBS=.*%LIBS=-lm%"
|
|
sed -e "s%getline%thisgetline%g" -i src/*.c src/*.h
|
|
sed -e "3i\
|
|
.PHONY: install
|
|
" -i Makefile
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Mail processing and filtering utility";
|
|
homepage = "https://github.com/BuGlessRB/procmail/";
|
|
license = licenses.gpl2;
|
|
platforms = platforms.unix;
|
|
maintainers = with maintainers; [ gebner ];
|
|
};
|
|
}
|