git-svn-id: file:///var/lib/svn/clamav-devel/trunk/clamav-devel@48 77e5149b-7576-45b1-b177-96237e5ba77b
Tomasz Kojm authored on 2003/09/17 02:36:11... | ... |
@@ -1,3 +1,7 @@ |
1 |
+Tue Sep 16 19:34:56 CEST 2003 (tk) |
|
2 |
+---------------------------------- |
|
3 |
+ * libclamav: scan messages that start with "Delivered-To" |
|
4 |
+ |
|
1 | 5 |
Tue Sep 16 18:47:39 CEST 2003 (tk) |
2 | 6 |
---------------------------------- |
3 | 7 |
* clamd: fixed compilation error (missing sighup variable) |
... | ... |
@@ -57,6 +57,7 @@ int cli_scanrar_inuse = 0; |
57 | 57 |
#define MAIL_MAGIC_STR "From " |
58 | 58 |
#define RAWMAIL_MAGIC_STR "Received: " |
59 | 59 |
#define MAILDIR_MAGIC_STR "Return-Path: " |
60 |
+#define DELIVERED_MAGIC_STR "Delivered-To: " |
|
60 | 61 |
#define BZIP_MAGIC_STR "BZh" |
61 | 62 |
|
62 | 63 |
|
... | ... |
@@ -650,6 +651,9 @@ int cli_magic_scandesc(int desc, char **virname, long int *scanned, const struct |
650 | 650 |
} else if(!strncmp(magic, MAILDIR_MAGIC_STR, strlen(MAILDIR_MAGIC_STR))) { |
651 | 651 |
cli_dbgmsg("Recognized Maildir mail file.\n"); |
652 | 652 |
ret = cli_scanmail(desc, virname, scanned, root, limits, options, reclev); |
653 |
+ } else if(!strncmp(magic, DELIVERED_MAGIC_STR, strlen(DELIVERED_MAGIC_STR))) { |
|
654 |
+ cli_dbgmsg("Recognized (Delivered-To) mail file.\n"); |
|
655 |
+ ret = cli_scanmail(desc, virname, scanned, root, limits, options, reclev); |
|
653 | 656 |
} |
654 | 657 |
(*reclev)--; |
655 | 658 |
} |