diff --git a/src/Makefile b/src/Makefile index b684b82e2..c858b52ae 100644 --- a/src/Makefile +++ b/src/Makefile @@ -38,7 +38,6 @@ else endif ONEWAY?=no -CLEANFULL?=no export MYLDFLAGS= "${LDFLAGS}" export MYCFLAGS= "${CFLAGS}" @@ -137,10 +136,6 @@ ifdef DEBUG OSSEC_CFLAGS+=-g endif #DEBUG -ifneq (,$(filter ${CLEANFULL},yes y Y 1)) - DEFINES+=-DCLEANFULL -endif - ifneq (,$(filter ${ONEWAY},yes y Y 1)) DEFINES+=-DONEWAY_ENABLED endif @@ -571,7 +566,6 @@ settings: @echo " REUSE_ID: ${REUSE_ID}" @echo " DATABASE: ${DATABASE}" @echo " ONEWAY: ${ONEWAY}" - @echo " CLEANFULL: ${CLEANFULL}" @echo "User settings:" @echo " OSSEC_GROUP: ${OSSEC_GROUP}" @echo " OSSEC_USER: ${OSSEC_USER}" diff --git a/src/os_maild/maild.h b/src/os_maild/maild.h index 8aeda521d..2472db536 100644 --- a/src/os_maild/maild.h +++ b/src/os_maild/maild.h @@ -22,13 +22,8 @@ #define BODY_SIZE OS_MAXSTR + OS_SIZE_1024 #define SMS_SUBJECT "OSSEC %d - %d - %s" -#define MAIL_SUBJECT "OSSEC Notification - %s - Alert level %d" -#define MAIL_SUBJECT_FULL "OSSEC Alert - %s - Level %d - %s" - /* Full subject without ossec in the name */ -#ifdef CLEANFULL #define MAIL_SUBJECT_FULL2 "%d - %s - %s" -#endif #ifdef LIBGEOIP_ENABLED #define MAIL_BODY "\r\nOSSEC HIDS Notification.\r\n" \ diff --git a/src/os_maild/os_maild_client.c b/src/os_maild/os_maild_client.c index b6d32132a..28ed85629 100644 --- a/src/os_maild/os_maild_client.c +++ b/src/os_maild/os_maild_client.c @@ -144,26 +144,11 @@ MailMsg *OS_RecvMailQ(file_queue *fileq, struct tm *p, *subject_host = '\0'; } - /* We have two subject options - full and normal */ - if (Mail->subject_full == 0) { - /* Option for a clean full subject (without ossec in the name) */ -#ifdef CLEANFULL - snprintf(mail->subject, SUBJECT_SIZE - 1, MAIL_SUBJECT_FULL2, - al_data->level, - al_data->comment, - al_data->location); -#else - snprintf(mail->subject, SUBJECT_SIZE - 1, MAIL_SUBJECT_FULL, - al_data->location, - al_data->level, - al_data->comment); -#endif - } else { - snprintf(mail->subject, SUBJECT_SIZE - 1, MAIL_SUBJECT, - al_data->location, - al_data->level); - } - + /* Option for a clean full subject (without ossec in the name) */ + snprintf(mail->subject, SUBJECT_SIZE - 1, MAIL_SUBJECT_FULL2, + al_data->level, + al_data->comment, + al_data->location); /* Fix subject back */ if (subject_host) {