slackbuilds_ponce/network/opendmarc/patches/z01_changeSubjectFailureReport_v2.patch
Mario Preksavec fe01e850a8 network/opendmarc: Added (DMARC milter and library).
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
2019-05-17 23:20:52 +07:00

27 lines
928 B
Diff

diff --git a/opendmarc/opendmarc.c b/opendmarc/opendmarc.c
index bdad10d..d29036f 100644
--- a/opendmarc/opendmarc.c
+++ b/opendmarc/opendmarc.c
@@ -3005,19 +3005,9 @@ mlfi_eom(SMFICTX *ctx)
dmarcf_dstring_printf(dfc->mctx_afrf, "Date: %s\n",
timebuf);
- h = dmarcf_findheader(dfc, "subject", 0);
- if (h == NULL)
- {
- dmarcf_dstring_printf(dfc->mctx_afrf,
- "Subject: DMARC failure report for job %s\n",
- dfc->mctx_jobid);
- }
- else
- {
- dmarcf_dstring_printf(dfc->mctx_afrf,
- "Subject: FW: %s\n",
- h->hdr_value);
- }
+ dmarcf_dstring_printf(dfc->mctx_afrf,
+ "Subject: DMARC failure report for %s received from %s\n",
+ dfc->mctx_fromdomain, cc->cctx_host);
dmarcf_dstring_cat(dfc->mctx_afrf,
"MIME-Version: 1.0\n");