git-svn-id: file:///var/lib/svn/clamav-devel/trunk/clamav-devel@1325 77e5149b-7576-45b1-b177-96237e5ba77b
Nigel Horne authored on 2005/02/08 18:04:30... | ... |
@@ -26,6 +26,9 @@ |
26 | 26 |
* |
27 | 27 |
* Change History: |
28 | 28 |
* $Log: clamav-milter.c,v $ |
29 |
+ * Revision 1.180 2005/02/08 09:01:26 nigelhorne |
|
30 |
+ * Turn off SESSION mode |
|
31 |
+ * |
|
29 | 32 |
* Revision 1.179 2005/02/07 22:35:14 nigelhorne |
30 | 33 |
* Bug fix to detect-forged-email-address |
31 | 34 |
* |
... | ... |
@@ -548,9 +551,9 @@ |
548 | 548 |
* Revision 1.6 2003/09/28 16:37:23 nigelhorne |
549 | 549 |
* Added -f flag use MaxThreads if --max-children not set |
550 | 550 |
*/ |
551 |
-static char const rcsid[] = "$Id: clamav-milter.c,v 1.179 2005/02/07 22:35:14 nigelhorne Exp $"; |
|
551 |
+static char const rcsid[] = "$Id: clamav-milter.c,v 1.180 2005/02/08 09:01:26 nigelhorne Exp $"; |
|
552 | 552 |
|
553 |
-#define CM_VERSION "0.82a" |
|
553 |
+#define CM_VERSION "0.82b" |
|
554 | 554 |
|
555 | 555 |
#if HAVE_CONFIG_H |
556 | 556 |
#include "clamav-config.h" |
... | ... |
@@ -649,7 +652,7 @@ typedef unsigned int in_addr_t; |
649 | 649 |
|
650 | 650 |
#define VERSION_LENGTH 128 |
651 | 651 |
|
652 |
-#define SESSION /* |
|
652 |
+/*#define SESSION /* |
|
653 | 653 |
* Keep one command connection open to clamd, otherwise a new |
654 | 654 |
* command connection is created for each new email |
655 | 655 |
* |
... | ... |
@@ -2656,7 +2659,7 @@ clamfi_envfrom(SMFICTX *ctx, char **argv) |
2656 | 2656 |
return SMFIS_CONTINUE; |
2657 | 2657 |
} |
2658 | 2658 |
ptr = strstr(argv[0], me); |
2659 |
- if(ptr && (*--ptr == '@')) { |
|
2659 |
+ if(ptr && (ptr != argv[0]) && (*--ptr == '@')) { |
|
2660 | 2660 |
if(use_syslog) |
2661 | 2661 |
syslog(LOG_NOTICE, _("Rejected email falsely claiming to be from %s"), argv[0]); |
2662 | 2662 |
smfi_setreply(ctx, "550", "5.7.1", _("You have claimed to be me, but you are not")); |