mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-12 16:03:32 +00:00
4f0dadbf38
After final improvements to the official formatter implementation, this commit now performs the first treewide reformat of Nix files using it. This is part of the implementation of RFC 166. Only "inactive" files are reformatted, meaning only files that aren't being touched by any PR with activity in the past 2 months. This is to avoid conflicts for PRs that might soon be merged. Later we can do a full treewide reformat to get the rest, which should not cause as many conflicts. A CI check has already been running for some time to ensure that new and already-formatted files are formatted, so the files being reformatted here should also stay formatted. This commit was automatically created and can be verified using nix-builda08b3a4d19
.tar.gz \ --argstr baseRevb32a094368
result/bin/apply-formatting $NIXPKGS_PATH
68 lines
1.8 KiB
Nix
68 lines
1.8 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchFromGitHub,
|
|
python3Packages,
|
|
}:
|
|
|
|
python3Packages.buildPythonApplication rec {
|
|
pname = "decode-spam-headers";
|
|
version = "2022-09-22-unreleased";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "mgeeky";
|
|
repo = "decode-spam-headers";
|
|
rev = "492b6e744475cd5d3dd68a8140bc3478244b7df1";
|
|
sha256 = "sha256-gBDkvlZCndQjochn6TZtM/Lanza64LqMjNnLjn+pPR4=";
|
|
};
|
|
|
|
format = "other";
|
|
|
|
outputs = [
|
|
"out"
|
|
"doc"
|
|
];
|
|
|
|
installPhase = ''
|
|
install -D decode-spam-headers.py $out/bin/decode-spam-headers
|
|
|
|
mkdir -p $doc/share/doc/${pname}
|
|
mv \
|
|
README.md \
|
|
img/ \
|
|
$doc/share/doc/${pname}
|
|
'';
|
|
|
|
propagatedBuildInputs = [
|
|
python3Packages.python-dateutil
|
|
python3Packages.tldextract
|
|
python3Packages.packaging
|
|
python3Packages.dnspython
|
|
python3Packages.requests
|
|
python3Packages.colorama
|
|
];
|
|
|
|
meta = with lib; {
|
|
homepage = "https://github.com/mgeeky/decode-spam-headers/";
|
|
description = "Script that helps you understand why your E-Mail ended up in Spam";
|
|
mainProgram = "decode-spam-headers";
|
|
longDescription = ''
|
|
Whether you are trying to understand why a specific e-mail ended up in
|
|
SPAM/Junk for your daily Administrative duties or for your Red-Team
|
|
Phishing simulation purposes, this script is there for you to help!
|
|
|
|
This tool accepts on input an *.EML or *.txt file with all the SMTP
|
|
headers. It will then extract a subset of interesting headers and using
|
|
105+ tests will attempt to decode them as much as possible.
|
|
|
|
This script also extracts all IPv4 addresses and domain names and performs
|
|
full DNS resolution of them.
|
|
|
|
Resulting output will contain useful information on why this e-mail might
|
|
have been blocked.
|
|
'';
|
|
license = licenses.mit;
|
|
maintainers = [ ];
|
|
};
|
|
}
|