-/* @(#) $Id$ */
+/* @(#) $Id: ./src/monitord/generate_reports.c, 2011/09/08 dcid Exp $
+ */
/* Copyright (C) 2010 Trend Micro Inc.
* All right reserved.
*
* This program is a free software; you can redistribute it
* and/or modify it under the terms of the GNU General Public
- * License (version 2) as published by the FSF - Free Software
+ * License (version 2) as published by the FSF - Free Software
* Foundation
*/
#include "shared.h"
#include "monitord.h"
-int OS_SendCustomEmail(char **to, char *subject, char *smtpserver, char *from, FILE *fp, struct tm *p);
+int OS_SendCustomEmail(char **to, char *subject, char *smtpserver, char *from, char *idsname, FILE *fp, struct tm *p);
char *(monthss[])={"Jan","Feb","Mar","Apr","May","Jun","Jul","Aug",
"Sep","Oct","Nov","Dec"};
{
merror("%s: INFO: Report '%s' empty.", ARGV0, mond.reports[s]->title);
}
- else if(OS_SendCustomEmail(mond.reports[s]->emailto, mond.reports[s]->title,
- mond.smtpserver, mond.emailfrom, mond.reports[s]->r_filter.fp, p) != 0)
+ else if(OS_SendCustomEmail(mond.reports[s]->emailto, mond.reports[s]->title,
+ mond.smtpserver, mond.emailfrom, mond.emailidsname, mond.reports[s]->r_filter.fp, p) != 0)
{
merror("%s: WARN: Unable to send report email.", ARGV0);
}