novi upstream verzije 2.8.3
[ossec-hids.git] / src / monitord / generate_reports.c
index 6e076c4..de29fde 100755 (executable)
@@ -1,18 +1,19 @@
-/* @(#) $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"};
 
@@ -81,8 +82,8 @@ void generate_reports(int cday, int cmon, int cyear,struct tm *p)
                 {
                     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);
                 }