Browse code

Improved debug statements

git-svn: trunk@1313

Nigel Horne authored on 2005/02/06 18:22:11
Showing 1 changed files
... ...
@@ -17,6 +17,9 @@
17 17
  *
18 18
  * Change History:
19 19
  * $Log: message.c,v $
20
+ * Revision 1.142  2005/02/06 09:22:11  nigelhorne
21
+ * Improved debug statements
22
+ *
20 23
  * Revision 1.141  2005/02/03 21:07:34  nigelhorne
21 24
  * Faster handling of bounce messages
22 25
  *
... ...
@@ -420,7 +423,7 @@
420 420
  * uuencodebegin() no longer static
421 421
  *
422 422
  */
423
-static	char	const	rcsid[] = "$Id: message.c,v 1.141 2005/02/03 21:07:34 nigelhorne Exp $";
423
+static	char	const	rcsid[] = "$Id: message.c,v 1.142 2005/02/06 09:22:11 nigelhorne Exp $";
424 424
 
425 425
 #if HAVE_CONFIG_H
426 426
 #include "clamav-config.h"
... ...
@@ -698,7 +701,7 @@ messageSetMimeType(message *mess, const char *type)
698 698
 						type, closest, highestSimil);
699 699
 					mess->mimeType = (mime_type)t;
700 700
 				} else {
701
-					cli_dbgmsg("Unknown MIME type: `%s', set to Application - if you believe this file contains a virus, report it to bugs@clamav.net\n", type);
701
+					cli_dbgmsg("Unknown MIME type: `%s', set to Application - if you believe this file contains a missed virus, report it to bugs@clamav.net\n", type);
702 702
 					mess->mimeType = APPLICATION;
703 703
 				}
704 704
 			}
... ...
@@ -949,7 +952,7 @@ messageAddArguments(message *m, const char *s)
949 949
 				 * TODO: the file should still be saved and
950 950
 				 * virus checked
951 951
 				 */
952
-				cli_dbgmsg("Can't parse header\"%s\" - if you believe this file contains a virus, report it to bugs@clamav.net\n", s);
952
+				cli_dbgmsg("Can't parse header \"%s\" - if you believe this file contains a missed virus, report it to bugs@clamav.net\n", s);
953 953
 				if(data)
954 954
 					free(data);
955 955
 				free((char *)key);
... ...
@@ -1694,7 +1697,7 @@ messageExport(message *m, const char *dir, void *(*create)(void), void (*destroy
1694 1694
 			filename = (char *)messageFindArgument(m, "name");
1695 1695
 
1696 1696
 			if(filename == NULL) {
1697
-				cli_dbgmsg("Attachment sent with no filename\n");
1697
+				cli_dbgmsg("Unencoded attachment sent with no filename\n");
1698 1698
 				messageAddArgument(m, "name=attachment");
1699 1699
 			} else
1700 1700
 				/*
... ...
@@ -1814,7 +1817,8 @@ messageExport(message *m, const char *dir, void *(*create)(void), void (*destroy
1814 1814
 			free((char *)filename);
1815 1815
 
1816 1816
 		/*
1817
-		 * t_line should now point to the first (encoded) line of the message
1817
+		 * t_line should now point to the first (encoded) line of the
1818
+		 * message
1818 1819
 		 */
1819 1820
 		if(t_line == NULL) {
1820 1821
 			cli_warnmsg("Empty attachment not saved\n");