]> git.ipfire.org Git - thirdparty/sarg.git/commit - email.c
Fix the formating of the e-mail subject
authorFrédéric Marchal <fmarchal@users.sourceforge.net>
Fri, 6 Jan 2012 14:00:35 +0000 (14:00 +0000)
committerFrédéric Marchal <fmarchal@users.sourceforge.net>
Fri, 6 Jan 2012 14:00:35 +0000 (14:00 +0000)
commit9e023838406f13246e79e01667aac96176136cdd
tree656682e67891a42d0a1e102e27cd2936a6cc875e
parent6b380a798ef1ec7a0e36bc55176abd8102b5e77e
Fix the formating of the e-mail subject

The date in the subject line of the e-mail was produced with asctime.
But that function append a \n at the end of the date. The subject line
was therefore followed by a blank line as mailx was concerned and that
would mess with the header of the e-mail.

This patch render the subject line using strftime. It avoid the line
break and allow mailx to add additional headers from the command line.
email.c