Re: Matchers & X Window

2003-06-23 Thread Cesar Bonadio
Hello Oki I had the same problem developing a WebMail application using javamail the solution is: 1- Unjar the mail.jar file: 2- go to META-INF directory 3- alter ther file mailcap and comment the line image/gif;; x-java-content-handler=com.sun.mail.handlers.image_gif to #image/gif;; x-java-cont

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

2003-06-22 Thread Noel J. Bergman
> After reading your http://www.alaska.net/~royce/pub/solaris/MAGIC > link I see what it is all about. For those who don't understand, yet, this might help: http://www.halley.cc/ed/linux/newcomer/filename.html > is there any formal or informal organization that keeps a list > like that up to d

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. Althoug

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

2003-06-22 Thread Vincenzo Gianferrari Pini
tter of performance doing such work only 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: Matc

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

2003-06-22 Thread tobe
Noel J. Bergman wrote: I would check MIME type, file extension, and most importantly the magic, to make sure that they all match. Any failure to match would be suspect, regardless of what the A/V program says. I think you misunderstood my earlier point. In truth I must have done, I *st

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

2003-06-22 Thread Vincenzo Gianferrari Pini
mailto:[EMAIL PROTECTED] > Sent: domenica 22 giugno 2003 1.01 > To: James Users List > Subject: RE: Virus scanning (was RE: Matchers & X Window) > > > > > I would check MIME type, file extension, and most importantly the > > > magic, to make sure that they all match. A

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

2003-06-21 Thread Noel J. Bergman
> > I would check MIME type, file extension, and most importantly the > > magic, to make sure that they all match. Any failure to match > > would be suspect, regardless of what the A/V program says. I > > think you misunderstood my earlier point. > In truth I must have done, I *still* wouldn't l

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

2003-06-21 Thread Danny Angus
Noel, Yeah thats exactly the kind of thing, now I think of it. d. > I would check MIME type, file extension, and most importantly the > magic, to > make sure that they all match. Any failure to match would be suspect, > regardless of what the A/V program says. I think you misunderstood my > e

Virus scanning (was RE: Matchers & X Window)

2003-06-21 Thread Noel J. Bergman
A/V program says. I think you misunderstood my earlier point. In fairness, it wasn't clear as I had stated it. --- Noel -Original Message- From: Danny Angus [mailto:[EMAIL PROTECTED] Sent: Saturday, June 21, 2003 11:31 To: James Users List Subject: RE: Matchers & X Windo

RE: Matchers & X Window

2003-06-21 Thread Danny Angus
such a hard time. I urge caution. d. > -Original Message- > From: 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

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

RE: Matchers & X Window

2003-06-21 Thread Danny Angus
> So Sun have moved from their previous dumb position at last. It really > should be java.awt.Brainless=false. And yes, the situation applies to all > *nix like systems, my mistake. Don't be too harsh, I admit that it is odd that they didn't do this sooner, but there are good reasons why not to

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-20 Thread Steve Brewin
1:49 > To: James Users List; [EMAIL PROTECTED] Com; [EMAIL PROTECTED] > Subject: RE: Matchers & X Window > > > Guys, > Using java 1.4 you can set the system property > java.awt.Headless=true to allow you to use much, but not all, > of AWT in a headless system. > > I ca

RE: Matchers & X Window

2003-06-20 Thread Danny Angus
e context, i.e. X 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 Brewi

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 Vincenzo Gianferrari Pini
In 1.1.6 it is taken out. > -Original Message- > From: Oki DZ [mailto:[EMAIL PROTECTED] > Sent: venerdi 20 giugno 2003 3.50 > To: James Users List > Subject: Re: Matchers & X Window > > > On Thu, Jun 19, 2003 at 08:04:38PM -0400, Noel J. Bergman wrote: >

RE: Matchers & X Window

2003-06-19 Thread Oki DZ
On Thu, 19 Jun 2003, Noel J. Bergman wrote: > By the way, v2.2.0a7 is available. :-) It's already installed and running. Too bad that I couldn't recreate the problem, so I guess, I'm just going to be waiting for it to happen again, and see the logs. BTW, it's already in the morning I think; time

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-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 PR

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 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 tes

RE: Matchers & X Window

2003-06-19 Thread Noel J. Bergman
> I'm not so clear about the test build; is it newer than the 1.1.6? Don't confuse James with Vincenzo's anti-virus code. --- Noel - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTE

Re: Matchers & X Window

2003-06-19 Thread Oki DZ
On Thu, Jun 19, 2003 at 08:04:38PM -0400, Noel J. Bergman wrote: > If I have time to do a test build tonight, will you have time to test it? I'm not so clear about the test build; is it newer than the 1.1.6? BTW, I think it would be great if the "subject altering" feature is put on options too. I

Re: Matchers & X Window

2003-06-19 Thread Oki DZ
On Thu, Jun 19, 2003 at 08:04:38PM -0400, Noel J. Bergman wrote: > 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 Extension-Name: it.praxis.james Implementatio

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 h

RE: Matchers & X Window

2003-06-19 Thread Noel J. Bergman
> > as described, but an *Error*, subclass of *Throwable*. In this case > > it was caught another level up in the stack - JamesSpoolManager.run() > > - and the message was thrown away > Do you think that James should have a better exception handler? If that above were correct, I'd agree. How

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 a

RE: Matchers & X Window

2003-06-19 Thread Noel J. Bergman
> The message stays in the spool. So, it gets processed again and again, > filling up the spoolmanager log. If I have time to do a test build tonight, will you have time to test it? If so, what is your timeframe? --- Noel -

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 circumv

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? Th

RE: Matchers & X Window

2003-06-19 Thread Vincenzo Gianferrari Pini
> -Original Message- > From: Steve 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 W

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 .gif

RE: Matchers & X Window

2003-06-19 Thread Vincenzo Gianferrari Pini
m: Oki DZ [mailto:[EMAIL PROTECTED] > Sent: giovedi 19 giugno 2003 10.44 > To: James Users List > Subject: Re: Matchers & X Window > > > On Thu, Jun 19, 2003 at 10:01:53AM +0200, Vincenzo Gianferrari Pini wrote: > > java.io.UnsupportedEncodingException, that is alway

RE: Matchers & X Window

2003-06-19 Thread Jason Webb
The other option is to use a virtual X framebuffer (Xvfb) and use that as DISPLAY 0:0 It does work, but it's not very stable > -Original Message- > From: Steve Brewin [mailto:[EMAIL PROTECTED] > Sent: 19 June 2003 09:29 > To: 'James Users List' > Su

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
> Can't connect to X11 window server using ':0.0' > as the value of the DISPLAY variable.java.lang.InternalError: Can't > connect to X11 window server using ':0.0' as the value of the DISPLAY > variable. > at sun.awt.X11GraphicsEnvironment.initDisplay(Native Method) > at > sun.awt.X11Gr

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 th

RE: Matchers & X Window

2003-06-19 Thread Vincenzo Gianferrari Pini
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: >

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 excepti

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 DIS

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 ---

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