Handle sendmail variables after clamav variables

git-svn: trunk@891
remotes/push_mirror/metadata
Nigel Horne 21 years ago
parent 16394c6d1a
commit 5e9f74300c
  1. 9
      clamav-devel/ChangeLog
  2. 4
      clamav-devel/clamav-milter/INSTALL
  3. 12
      clamav-devel/clamav-milter/clamav-milter.c

@ -1,6 +1,13 @@
Fri Sep 17 16:42:06 BST 2004 (njh)
----------------------------------
* clamav-milter: Fix problem in the template file handling where sendmail
variables did't work after clamav variables.
Thanks to "Sergey Y. Afonin" <asy@kraft-s.ru>
for pointing this out
Fri Sep 17 14:47:53 BST 2004 (njh)
----------------------------------
* libclamav: Scan yEnc mime attachments
* libclamav: Scan yEnc mime attachments
Fri Sep 17 11:56:58 BST 2004 (njh)
----------------------------------

@ -492,7 +492,9 @@ Changes
environment.
0.75p 13/9/04 Updated SESSION code.
0.75q 13/9/04 Use pthread_cond_broadcast() instead of pthread_cond_signal()
0.75r 15/9/04 --help didn't include information about --max-children
0.75r 17/9/04 --help didn't include information about --max-children
Fix problem in the template file handling where sendmail
variables did't work after clamav variables.
INTERNATIONALISATION

@ -26,6 +26,9 @@
*
* Change History:
* $Log: clamav-milter.c,v $
* Revision 1.129 2004/09/17 15:40:02 nigelhorne
* Handle sendmail variables after clamav variables
*
* Revision 1.128 2004/09/15 08:46:33 nigelhorne
* Added --max-children to --help
*
@ -395,7 +398,7 @@
* Revision 1.6 2003/09/28 16:37:23 nigelhorne
* Added -f flag use MaxThreads if --max-children not set
*/
static char const rcsid[] = "$Id: clamav-milter.c,v 1.128 2004/09/15 08:46:33 nigelhorne Exp $";
static char const rcsid[] = "$Id: clamav-milter.c,v 1.129 2004/09/17 15:40:02 nigelhorne Exp $";
#define CM_VERSION "0.75r"
@ -3489,6 +3492,7 @@ sendtemplate(SMFICTX *ctx, const char *filename, FILE *sendmail, const char *vir
filename, *ptr);
break;
}
break;
case '$': /* sendmail string */ {
const char *val;
char *end = strchr(++ptr, '$');
@ -3511,6 +3515,7 @@ sendtemplate(SMFICTX *ctx, const char *filename, FILE *sendmail, const char *vir
} else
fputs(val, sendmail);
ptr = end;
break;
}
case '\\':
if(*++ptr == '\0') {
@ -3745,8 +3750,9 @@ watchdog(void *a)
* How often (in seconds) to try to fix broken clamd sessions.
* We may try more often than this e.g. when we're idle or all
* connections are down, so you can put this figure quite high.
* But can't be too high because a SESSION doesn't remain
* open if no data goes down for ReadTimeout seconds
* But can't be too high because with older clamd SESSION
* didn't remain open if no data goes down for ReadTimeout
* seconds
*/
ts.tv_sec = tp.tv_sec + readTimeout - 1;
ts.tv_nsec = tp.tv_usec * 1000;

Loading…
Cancel
Save