Added bounce and handle text/plain encoding messages

git-svn: trunk@413
remotes/push_mirror/metadata
Nigel Horne 21 years ago
parent f6f5d56f02
commit 60348fbe98
  1. 5
      clamav-devel/ChangeLog
  2. 10
      clamav-devel/libclamav/message.c

@ -1,3 +1,8 @@
Thu Mar 18 14:16:19 GMT 2004 (njh)
----------------------------------
* libclamav/message.c: Added bounce and handle text/plain encoded
messages
Thu Mar 18 15:04:41 CET 2004 (tk)
---------------------------------
* clamdscan: in the LocalSocket mode the server2 address struct was not

@ -17,6 +17,9 @@
*
* Change History:
* $Log: message.c,v $
* Revision 1.39 2004/03/18 14:05:25 nigelhorne
* Added bounce and handle text/plain encoding messages
*
* Revision 1.38 2004/03/17 19:47:32 nigelhorne
* Handle spaces in disposition type
*
@ -111,7 +114,7 @@
* uuencodebegin() no longer static
*
*/
static char const rcsid[] = "$Id: message.c,v 1.38 2004/03/17 19:47:32 nigelhorne Exp $";
static char const rcsid[] = "$Id: message.c,v 1.39 2004/03/18 14:05:25 nigelhorne Exp $";
#if HAVE_CONFIG_H
#include "clamav-config.h"
@ -171,6 +174,7 @@ static const struct encoding_map {
encoding_type type;
} encoding_map[] = {
{ "7bit", NOENCODING },
{ "text/plain", NOENCODING },
{ "quoted-printable", QUOTEDPRINTABLE }, /* rfc1522 */
{ "base64", BASE64 },
{ "8bit", EIGHTBIT },
@ -193,6 +197,9 @@ static struct mime_map {
{ NULL, TEXT }
};
/*
* TODO: remove this table and scan all *efficiently* for bounce messages
*/
static const char *bounces[] = {
"--- Below this line is a copy of the message.",
"------ This is a copy of the message, including all the headers. ------",
@ -206,6 +213,7 @@ static const char *bounces[] = {
"A copy of the original message below this line:",
"==== Begin Message",
"------------------------------ Original message ------------------------------",
"Original message follows:",
NULL
};

Loading…
Cancel
Save