File decode-spam-headers.spec of Package decode-spam-headers

#
# spec file for package decode-spam-headers
#
# Copyright (c) 2025, Martin Hauke <mardnh@gmx.de>
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via https://bugs.opensuse.org/
#

Name:           decode-spam-headers
Version:        0~git20250417
Release:        0
Summary:        A script that helps you understand why your E-Mail ended up in Spam
License:        MIT
URL:            https://github.com/mgeeky/decode-spam-headers
#Git-Clone:     https://github.com/mgeeky/decode-spam-headers.git
Source:         %{name}-%{version}.tar.xz
Requires:       python3-dateutil
Requires:       python3-tldextract
Requires:       python3-packaging
Requires:       python3-dnspython
Requires:       python3-requests
Requires:       python3-colorama
BuildArch:      noarch

%description
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!

Idea arose while delivering a commercial Phishing Simulation
exercises against MS Office365 E5 estate, equipped with
MS Defender for Office365. As one can imagine, pretty tough security
stack to work with from a phishing-simulation perspective.
After digging manually through all these Office365 SMTP headers and
trying to cherry-pick these SCL values, time come to write up a
proper parser for SMTP headers.

Time went by, I was adding support for more and more SMTP headers -
and here we have it. Tool that now comprehends tens of different headers.

%prep
%autosetup

%build

%install
install -D -m0755 decode-spam-headers.py %{buildroot}%{_bindir}/decode-spam-headers

%files
%doc README.md
%license LICENSE
%{_bindir}/decode-spam-headers

%changelog
openSUSE Build Service is sponsored by