Skip to content

Commit

Permalink
Merge pull request trusteddomainproject#141 from glts/insheader
Browse files Browse the repository at this point in the history
Index 0 inserts before the MTA's Received header.

trusteddomainproject#141
  • Loading branch information
futatuki committed Sep 14, 2024
2 parents 6eb8588 + 5116db8 commit a2a8d24
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions openarc/openarc.c
Original file line number Diff line number Diff line change
Expand Up @@ -3805,7 +3805,7 @@ mlfi_eom(SMFICTX *ctx)
strlcat(hfvalue, arc_hdr_value(sealhdr),
sizeof hfvalue);

status = arcf_insheader(ctx, 1, hfname, hfvalue);
status = arcf_insheader(ctx, 0, hfname, hfvalue);
if (status == MI_FAILURE)
{
if (conf->conf_dolog)
Expand Down Expand Up @@ -3861,7 +3861,7 @@ mlfi_eom(SMFICTX *ctx)
" arc.chain=%s", arcchainbuf);
}

if (arcf_insheader(ctx, 1, AUTHRESULTSHDR,
if (arcf_insheader(ctx, 0, AUTHRESULTSHDR,
arcf_dstring_get(afc->mctx_tmpstr)) != MI_SUCCESS)
{
if (conf->conf_dolog)
Expand Down Expand Up @@ -3890,7 +3890,7 @@ mlfi_eom(SMFICTX *ctx)
afc->mctx_jobid != NULL ? afc->mctx_jobid
: (u_char *) JOBIDUNKNOWN);

if (arcf_insheader(ctx, 1, SWHEADERNAME, xfhdr) != MI_SUCCESS)
if (arcf_insheader(ctx, 0, SWHEADERNAME, xfhdr) != MI_SUCCESS)
{
if (conf->conf_dolog)
{
Expand Down

0 comments on commit a2a8d24

Please sign in to comment.