From a3d72ff4079d4f3e05763b35161c24e843e402ef Mon Sep 17 00:00:00 2001 From: Nigel Horne Date: Fri, 13 Feb 2004 14:24:49 +0000 Subject: [PATCH] Add a new bounce delimeter git-svn: trunk@279 --- clamav-devel/ChangeLog | 4 ++++ clamav-devel/libclamav/message.c | 25 ++++++++++++++++--------- 2 files changed, 20 insertions(+), 9 deletions(-) diff --git a/clamav-devel/ChangeLog b/clamav-devel/ChangeLog index 31159e8c6..d89162ebf 100644 --- a/clamav-devel/ChangeLog +++ b/clamav-devel/ChangeLog @@ -1,3 +1,7 @@ +Fri Feb 13 14:28:05 GMT 2004 (njh +---------------------------------- + * libclamav: Added a new bounce delimeter + Thu Feb 12 18:47:44 GMT 2004 (njh) ---------------------------------- * libclamav: Use mkstemp() on Solaris in cl_mbox() diff --git a/clamav-devel/libclamav/message.c b/clamav-devel/libclamav/message.c index af035870b..a905dcc6b 100644 --- a/clamav-devel/libclamav/message.c +++ b/clamav-devel/libclamav/message.c @@ -17,6 +17,9 @@ * * Change History: * $Log: message.c,v $ + * Revision 1.30 2004/02/13 14:23:56 nigelhorne + * Add a new bounce delimeter + * * Revision 1.29 2004/02/10 17:01:30 nigelhorne * Recognise a new type of bounce message * @@ -84,7 +87,7 @@ * uuencodebegin() no longer static * */ -static char const rcsid[] = "$Id: message.c,v 1.29 2004/02/10 17:01:30 nigelhorne Exp $"; +static char const rcsid[] = "$Id: message.c,v 1.30 2004/02/13 14:23:56 nigelhorne Exp $"; #if HAVE_CONFIG_H #include "clamav-config.h" @@ -171,6 +174,18 @@ static struct mime_map { { NULL, 0 } }; +static const char *bounces[] = { + "--- Below this line is a copy of the message.", + "------ This is a copy of the message, including all the headers. ------", + "=================================================================================", + "------- The original message sent:", + " ----- Original message follows -----", + "------- Original mail message ----", + "------ A continuacion adjuntamos copia del mensaje, incluyendo las cabeceras. ------", + ",------- Returned Message --------", + NULL +}; + message * messageCreate(void) { @@ -1105,14 +1120,6 @@ bounceBegin(const message *m) { const text *t_line; static table_t *bounceMessages; - const char *bounces[] = { - "--- Below this line is a copy of the message.", - "------ This is a copy of the message, including all the headers. ------", - "=================================================================================", - "------- The original message sent:", - " ----- Original message follows -----", - NULL - }; if(bounceMessages == NULL) { const char **bounce;