Skip to content

Commit

Permalink
do not put PID and UID in 'Received' header
Browse files Browse the repository at this point in the history
Having a process id and user id in the 'Received' mail header is of
little use.  Better use nullmailer's package name and version instead.
  • Loading branch information
haubi committed May 22, 2019
1 parent 7c581ab commit 38d20ca
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/queue.cc
Original file line number Diff line number Diff line change
Expand Up @@ -122,11 +122,7 @@ bool copyenv(fdobuf& out)

bool makereceived(fdobuf& out)
{
mystring line("Received: (nullmailer pid ");
line += itoa(pid);
line += " invoked by uid ";
line += itoa(uid);
line += ");\n\t";
mystring line("Received: by " PACKAGE_STRING ";\n\t");
char buf[100];
if(!strftime(buf, 100, "%a, %d %b %Y %H:%M:%S -0000\n", gmtime(&timesecs)))
fail("Error generating a date string.");
Expand Down

0 comments on commit 38d20ca

Please sign in to comment.