RE: Virus scanning (was RE: Matchers X Window)

2003-06-22 Thread Vincenzo Gianferrari Pini
once while scanning for viruses. Vincenzo -Original Message- From: Vincenzo Gianferrari Pini [mailto:[EMAIL PROTECTED] Sent: domenica 22 giugno 2003 10.23 To: James Users List Subject: RE: Virus scanning (was RE: Matchers X Window) This magic number topic is quite new to me

RE: Virus scanning (was RE: Matchers X Window)

2003-06-22 Thread Noel J. Bergman
Try telling a Mac-user (or a Unix-user) that he *must* put a file-extension on the filename ;-) If there isn't an extension, then it doesn't need to match. :-) As far as I know, only Windows and VMS require a file extension in the filename. Actually, that's part of the problem. Although

Re: Matchers X Window

2003-06-21 Thread tobe
As graphic parts can't carry viruses, is it necessary to get the content at all? Not doing so would circumvent the problem and speed things up too. How do you know it is really a graphic? All you know is that the mime-type description has been set to image/gif. It might have a file-name that

RE: Matchers X Window

2003-06-21 Thread Noel J. Bergman
As graphic parts can't carry viruses, is it necessary to get the content at all? Not doing so would circumvent the problem and speed things up too. How do you know it is really a graphic? All you know is that the mime-type description has been set to image/gif. It might have a file-name

RE: Matchers X Window

2003-06-21 Thread Danny Angus
: Noel J. Bergman [mailto:[EMAIL PROTECTED] Sent: 21 June 2003 15:47 To: James Users List Subject: RE: Matchers X Window As graphic parts can't carry viruses, is it necessary to get the content at all? Not doing so would circumvent the problem and speed things up too. How do

Re: Matchers X Window

2003-06-20 Thread Oki DZ
On Fri, Jun 20, 2003 at 09:06:27AM +0200, Vincenzo Gianferrari Pini wrote: In 1.1.6 it is taken out. Has just been installed. Oki - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: Matchers X Window

2003-06-20 Thread Danny Angus
on *nix. d. -Original Message- From: Oki DZ [mailto:[EMAIL PROTECTED] Sent: 20 June 2003 02:29 To: James Users List; [EMAIL PROTECTED] Subject: Re: Matchers X Window On Thu, Jun 19, 2003 at 09:28:46AM +0100, Steve Brewin wrote: Running on Solaris right? I'm running Linux

Re: Matchers X Window

2003-06-19 Thread Oki DZ
On Wed, Jun 18, 2003 at 11:19:46PM -0400, Noel J. Bergman wrote: Looks like something not in the class loader's path. And I have no idea why. I don't have X11 installed on any *nix system. Strictly headless servers. Neither I have. But my guess is that the JVM saw that you have a

RE: Matchers X Window

2003-06-19 Thread Vincenzo Gianferrari Pini
Oki, What happened is that the matcher tried to get the content of an attached object (a .gif) to write it decoded to a temp file to have the antivirus later scan it; the javax.mail.internet.MimeBodyPart.getContent(MimeBodyPart), for doing that, tried a path that for any reason threw an

RE: Matchers X Window

2003-06-19 Thread Vincenzo Gianferrari Pini
for the next attachment. Vincenzo -Original Message- From: Oki DZ [mailto:[EMAIL PROTECTED] Sent: giovedi 19 giugno 2003 9.34 To: James Users List Subject: Re: Matchers X Window On Wed, Jun 18, 2003 at 11:19:46PM -0400, Noel J. Bergman wrote: Looks like something not in the class

Re: Matchers X Window

2003-06-19 Thread Oki DZ
On Thu, Jun 19, 2003 at 09:51:27AM +0200, Vincenzo Gianferrari Pini wrote: javax.mail.internet.MimeBodyPart.getContent(MimeBodyPart), for doing that, tried a path that for any reason threw an exception, which could be ignored (a .gif is not a virus). It happened twice today; I looked into the

Re: Matchers X Window

2003-06-19 Thread Oki DZ
On Thu, Jun 19, 2003 at 10:01:53AM +0200, Vincenzo Gianferrari Pini wrote: java.io.UnsupportedEncodingException, that is always ignored in the matcher, that simpy continues looking for the next attachment. So, what is the quick fix? I have uncommented the mailet element that has the matcher.

RE: Matchers X Window

2003-06-19 Thread Steve Brewin
Vincenzo You will not get the problem under Win2K, its Solaris specific. Looking at the stack trace, its triggered when... it.praxis.james.matchers.IsInfected.dumpPart(IsInfected.java:418) invokes... javax.mail.internet.MimeBodyPart.getContent(MimeBodyPart.java:564) ...while processing a

RE: Matchers X Window

2003-06-19 Thread Vincenzo Gianferrari Pini
Brewin [mailto:[EMAIL PROTECTED] Sent: giovedi 19 giugno 2003 12.02 To: 'James Users List' Subject: RE: Matchers X Window Vincenzo You will not get the problem under Win2K, its Solaris specific. Looking at the stack trace, its triggered when

Re: Matchers X Window

2003-06-19 Thread Oki DZ
On Thu, Jun 19, 2003 at 10:58:50AM +0200, Vincenzo Gianferrari Pini wrote: Have you set scanAlways to true or false in your IsInfected invocation? It is set to false. When you get the exception, what happens to the mail message: is it sent to destination or sent to the error processor? The

Re: Matchers X Window

2003-06-19 Thread Oki DZ
On Thu, Jun 19, 2003 at 11:01:40AM +0100, Steve Brewin wrote: invokes... javax.mail.internet.MimeBodyPart.getContent(MimeBodyPart.java:564) ...while processing a .gif part. As graphic parts can't carry viruses, is it necessary to get the content at all? Not doing so would circumvent the

Re: Matchers X Window

2003-06-19 Thread Oki DZ
On Thu, Jun 19, 2003 at 02:12:49PM +0200, Vincenzo Gianferrari Pini wrote: This to find also viruses hidden under wrong extensions. It could be *optionally* changed to scan only known file extensions, and would be a good thing to do. It would be great if they (file extensions or scan them

Re: Matchers X Window

2003-06-19 Thread Oki DZ
On Thu, Jun 19, 2003 at 09:28:46AM +0100, Steve Brewin wrote: Running on Solaris right? I'm running Linux. The Solaris implementation of AWT requires a display device and by default uses DISPLAY 0:0. According to Sun this is not a bug and will not be fixed. I see; so it's a feature. I have

RE: Matchers X Window

2003-06-19 Thread Noel J. Bergman
If I have time to do a test build tonight, will you have time to test it? I'm currently going to install the following: Specification-Version: 1.1.6 Implementation-Vendor-Id: it.praxis That is Vincenzo's personal matcher, and not part of a James distribution. I will update the James test

Re: Matchers X Window

2003-06-19 Thread Oki DZ
On Thu, Jun 19, 2003 at 10:59:54PM -0400, Noel J. Bergman wrote: I'm starting the build now. It should be online in about 30 minutes or so. Downloading... Look for a7. OK. Oki - To unsubscribe, e-mail: [EMAIL PROTECTED]

Re: Matchers X Window

2003-06-19 Thread Oki DZ
On Thu, Jun 19, 2003 at 10:39:38PM -0400, Noel J. Bergman wrote: Don't confuse James with Vincenzo's anti-virus code. Hey, I have just recently been back to this list, slow down please. Oki - To unsubscribe, e-mail: [EMAIL

RE: Matchers X Window

2003-06-19 Thread Noel J. Bergman
Hey, I have just recently been back to this list, slow down please. :-) To clarify, then. If you download it from here, it is part of James. If you down it from Marco Tedone's Jamailet project, or Vincenzo's personal collection of matchers/mailets, it isn't part of James. Which is not to say

Re: Matchers X Window

2003-06-18 Thread Oki DZ
BTW, here is the version of the JVM. [EMAIL PROTECTED]:~$ java -version java version 1.4.1 Java(TM) 2 Runtime Environment, Standard Edition (build Blackdown-1.4.1-01) Java HotSpot(TM) Client VM (build Blackdown-1.4.1-01, mixed mode) Oki

RE: Matchers X Window

2003-06-18 Thread Noel J. Bergman
Looks like something not in the class loader's path. And I have no idea why. I don't have X11 installed on any *nix system. Strictly headless servers. But my guess is that the JVM saw that you have a DISPLAY, and wanted to pop-up a dialog. --- Noel