Scan attachments that have no filename

git-svn: trunk@1739
remotes/push_mirror/metadata
Nigel Horne 20 years ago
parent a4c1e5c323
commit ab84808e5f
  1. 4
      clamav-devel/ChangeLog
  2. 13
      clamav-devel/libclamav/mbox.c

@ -1,3 +1,7 @@
Mon Oct 31 21:21:38 GMT 2005 (njh)
----------------------------------
* libclamav/mbox.c: Scan attachments that have no filename
Sun Oct 30 21:22:35 CET 2005 (tk)
---------------------------------
* clamd/others.c: fix compilation error on Cobalt Qube 1

@ -15,7 +15,7 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
static char const rcsid[] = "$Id: mbox.c,v 1.260 2005/09/30 14:58:37 nigelhorne Exp $";
static char const rcsid[] = "$Id: mbox.c,v 1.261 2005/10/31 21:21:13 nigelhorne Exp $";
#if HAVE_CONFIG_H
#include "clamav-config.h"
@ -3092,6 +3092,17 @@ parseMimeHeader(message *m, const char *cmd, const table_t *rfc821Table, const c
}
free(p);
}
if((p = (char *)messageFindArgument(m, "filename")) == NULL)
/*
* Handle this type of header, without
* a filename (e.g. some Worm.Torvil.D)
* Content-ID: <nRfkHdrKsAxRU>
* Content-Transfer-Encoding: base64
* Content-Disposition: attachment
*/
messageAddArgument(m, "filename=unknown");
else
free(p);
}
if(copy)
free(copy);

Loading…
Cancel
Save