git-svn: trunk@490
Nigel Horne authored on 2004/04/14 17:33:57... | ... |
@@ -1,3 +1,8 @@ |
1 |
+Wed Apr 14 09:32:50 BST 2004 (njh) |
|
2 |
+---------------------------------- |
|
3 |
+ * libclamav/clamav-milter: When debugging print the email number when |
|
4 |
+ handling UNIX style mailboxes |
|
5 |
+ |
|
1 | 6 |
Wed Apr 14 03:24:44 CEST 2004 (tk) |
2 | 7 |
---------------------------------- |
3 | 8 |
* clamd: VirusEvent: disable support for %f |
... | ... |
@@ -17,6 +17,9 @@ |
17 | 17 |
* |
18 | 18 |
* Change History: |
19 | 19 |
* $Log: mbox.c,v $ |
20 |
+ * Revision 1.66 2004/04/14 08:32:21 nigelhorne |
|
21 |
+ * When debugging print the email number in mailboxes |
|
22 |
+ * |
|
20 | 23 |
* Revision 1.65 2004/04/07 18:18:07 nigelhorne |
21 | 24 |
* Some occurances of W97M.Lexar were let through |
22 | 25 |
* |
... | ... |
@@ -186,7 +189,7 @@ |
186 | 186 |
* Compilable under SCO; removed duplicate code with message.c |
187 | 187 |
* |
188 | 188 |
*/ |
189 |
-static char const rcsid[] = "$Id: mbox.c,v 1.65 2004/04/07 18:18:07 nigelhorne Exp $"; |
|
189 |
+static char const rcsid[] = "$Id: mbox.c,v 1.66 2004/04/14 08:32:21 nigelhorne Exp $"; |
|
190 | 190 |
|
191 | 191 |
#if HAVE_CONFIG_H |
192 | 192 |
#include "clamav-config.h" |
... | ... |
@@ -385,12 +388,14 @@ cl_mbox(const char *dir, int desc) |
385 | 385 |
* may contain more than one e-mail message to decode |
386 | 386 |
*/ |
387 | 387 |
bool lastLineWasEmpty = FALSE; |
388 |
+ int messagenumber = 1; |
|
388 | 389 |
|
389 | 390 |
do { |
390 | 391 |
/*cli_dbgmsg("read: %s", buffer);*/ |
391 | 392 |
|
392 | 393 |
cli_chomp(buffer); |
393 | 394 |
if(lastLineWasEmpty && (strncmp(buffer, "From ", 5) == 0)) { |
395 |
+ cli_dbgmsg("Deal with email number %d\n", messagenumber++); |
|
394 | 396 |
/* |
395 | 397 |
* End of a message in the mail box |
396 | 398 |
*/ |
... | ... |
@@ -415,6 +420,8 @@ cl_mbox(const char *dir, int desc) |
415 | 415 |
if(messageAddLine(m, buffer, 1) < 0) |
416 | 416 |
break; |
417 | 417 |
} while(fgets(buffer, sizeof(buffer), fd) != NULL); |
418 |
+ |
|
419 |
+ cli_dbgmsg("Deal with email number %d\n", messagenumber); |
|
418 | 420 |
} else |
419 | 421 |
/* |
420 | 422 |
* It's a single message, parse the headers then the body |