X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/disorder/blobdiff_plain/e7eb3a2744aa45179daea235800753d3d1955338..591bec8587c71a025bcc83092145b0ef9ffbe944:/lib/sendmail.c
diff --git a/lib/sendmail.c b/lib/sendmail.c
index b53a89f..a01b9d3 100644
--- a/lib/sendmail.c
+++ b/lib/sendmail.c
@@ -15,7 +15,13 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see .
*/
-
+/** @file lib/sendmail.c
+ * @brief Sending email
+ *
+ * Can send email either via a local MTA or by connecting to an SMTP TCP port.
+ * The former is preferred as there is a strong implication that the local MTA
+ * will queue for you than some random TCP SMTP server you found.
+ */
#include "common.h"
#include
@@ -120,7 +126,7 @@ static int sendmailfp(const char *tag, FILE *in, FILE *out,
time_t now;
char date[128];
- time(&now);
+ xtime(&now);
gmtime_r(&now, &ut);
strftime(date, sizeof date, "%a, %d %b %Y %H:%M:%S +0000", &ut);
gcry_create_nonce(idbuf, sizeof idbuf);