Re: Unsupported charater set

2003-06-06 Thread Marc de Oliveira
When comparing a mail sent to a maillist with one sent directly the character set used is not the same. 1) When sending to a maillist the character set is: charset=Cp1252 2) When sending directly the character set is: charset=iso-8859-1 It seems that a lot of people that uses Outlook as the mail

Re: James 2.2.0a3 and new Classloader mechanism

2003-06-06 Thread Sheldon Hearn
On (2003/06/04 20:48), Marco Tedone wrote: Noel, you will be pleased to know that by deploying jamailet directly under SAR-INF/lib (thus not including it in the james.sar file) it works perfectly. And the crowd went absolutely bananas! :-) Ciao, Sheldon.

Reading resources within a mailet

2003-06-06 Thread Mitchell Morris
My question: how do I refer to plain ol' file resources from within a mailet without hard-coding the full pathname? Failing that, is there an interpolation service available to a mailet? I have written a simple mailet to wrap an existing external service. The service object originally expected to

RE: Reading resources within a mailet

2003-06-06 Thread Noel J. Bergman
There is a service, but it isn't exposed to the Mailet API. James uses it, itself, as you can see from all of the file:// references. Are you asking for the equivalent of ServletContext.getRealPath(String), e.g., MailetContext.getRealPath(String)? I don't have a problem with it. I've been

RE: Reading resources within a mailet

2003-06-06 Thread Mitchell Morris
I don't know enough to know if that's the best thing to ask for. What I would like (eventually) is to be able to package this mailet up into james.sar such that it doesn't require editing the path to the configuration file if it gets unpacked into a different location. If something like

RE: Reading resources within a mailet

2003-06-06 Thread Noel J. Bergman
Mitchell, I'm in favor of implementing MailetContext.getRealPath(String), with the same caveat mentioned by Craig for ServletContext.getRealpath(String): http://w6.metronet.com/~wjm/tomcat/2001/Feb/msg00294.html For James v3, another approach would be to put the resource into a JNDI context,

Virus scanning mailet/matcher

2003-06-06 Thread james-subscribe
Hi all! Does anybody have virus scanning mailet/matcher ready for production usage? Actually even it needs changes i would be appreciate for link or for source code. It became very urgent since new virus attack in Europe using holes in M$ Outlook. -- Best regards, james-subscribe

RE: Virus scanning mailet/matcher

2003-06-06 Thread Vincenzo Gianferrari Pini
See http://www.mailet.org/directory.html The antivirus invoker matcher works, and is catching the new W32/[EMAIL PROTECTED] virus in my production system. If you need any help let me know. Vincenzo -Original Message- From: james-subscribe [mailto:[EMAIL PROTECTED] Sent: venerdi 6

Problem with Database

2003-06-06 Thread Maza, Mohamed
Hi new here! My Prob.: I have configured James to use an Oracle database, but he tries to create the tables everytime I start the service. If the database is empty the service starts correctly but if the tables are there I get an Exception(in the logs: that the tables already exist). Thanks,

RE: Virus scanning mailet/matcher

2003-06-06 Thread Vincenzo Gianferrari Pini
Steve, you are right, in this case the message will be considered as not infected. The point is that this header is written in order to have more flexibility writing config.xml, and to avoid scanning more than once. The risk of having the sender of the virus infected email adding *exactly*

Re: Virus scanning mailet/matcher

2003-06-06 Thread Carlos Cortés del Valle
But in fact is something to address, and my plans are to change it from being a matcher that does everything to being a mailet that has 2 special init parms: a headerNamemy [EMAIL PROTECTED]/headerName and a scanAlwaystrue/false/scanAlways. If you could name the header as you want, I think the

RE: Virus scanning mailet/matcher

2003-06-06 Thread Vincenzo Gianferrari Pini
Exactly what I mean having a new headerName init parameter in a *mailet*: to allow for very personal, server specific header names like PepeGoesToTheBeach :-) I could do it also in the current *matcher*, but as I said the matcher condition string is already ugly. Vincenzo -Original

RE: Virus scanning mailet/matcher

2003-06-06 Thread Steve Brewin
Vincenzo Sounds like you are way ahead of me! -- Steve -Original Message- From: Vincenzo Gianferrari Pini [mailto:[EMAIL PROTECTED] Sent: 06 June 2003 12:00 To: James Users List; [EMAIL PROTECTED] Subject: RE: Virus scanning mailet/matcher Steve, you are right, in this

Re[2]: Virus scanning mailet/matcher

2003-06-06 Thread james-subscribe
Hello Steve, I think as far as recipient MTA gets this message it can overwrite envelop header after corresponded virus scan. Friday, June 6, 2003, 1:09:14 PM, you wrote: SB Vincenzo SB Just had a quick look at the docs for your virus scanner. One question. What SB happens if the sender of the

RE: Re[2]: Virus scanning mailet/matcher

2003-06-06 Thread Vincenzo Gianferrari Pini
Ok, but the reason for all this, as said in my message, is to avoid scanning more than once. Look at this example (in my own system): 1) A message is received. 2) The IsInfected matcher looks for the header, doen't find it, then scans, finds no virus, writes the header saying that it is not

Re: Re[2]: Virus scanning mailet/matcher

2003-06-06 Thread Hontvari Jozsef
(you can simply bounce back a message with .scr, .pif, .exe etc. attachments, especially in case of an email list) - Original Message - From: Vincenzo Gianferrari Pini [EMAIL PROTECTED] To: James Users List [EMAIL PROTECTED]; james-subscribe [EMAIL PROTECTED] Sent: Friday, June 06, 2003

RE: Re[2]: Virus scanning mailet/matcher

2003-06-06 Thread Vincenzo Gianferrari Pini
This is another story, and I'm doing it also right now. But both techniques may be needed, as for example I'm blocking and bouncing back messages with *.exe,*.com,*.bat,*.pif,*.scr,*.vbs,*.eml,*.avi,*.mp3,*.mpeg,*.shs, but accepting *.doc and *.xls, that could be infected too and have to be

Re: Reading resources within a mailet

2003-06-06 Thread Serge Knystautas
Noel J. Bergman wrote: By the way, you should not be placing mailets into james.sar as of the next release. James v2.2 (test versions already available) and later allow mailets to be placed in SAR-INF/classes (class files) or SAR-INF/lib (jars). It wouldn't take more than a few minutes to add

RE: Reading resources within a mailet

2003-06-06 Thread Chris Means
Noel J. Bergman wrote: By the way, you should not be placing mailets into james.sar as of the next release. James v2.2 (test versions already available) and later allow mailets to be placed in SAR-INF/classes (class files) or SAR-INF/lib (jars). Confirmed. When I upgraded to James

RE: Virus scanning mailet/matcher

2003-06-06 Thread Noel J. Bergman
The point is that this header is written in order to have more flexibility writing config.xml, and to avoid scanning more than once. Mail attributes will fix this issue. You would set a header unless you need to use a header to communicate with another MUA/MTA. --- Noel

How to Enable Debug?

2003-06-06 Thread Cai Jeff
Hi, I want to enable debug for James.Mailet to get more info, but after I changed the INFO to DEBUG in environment.xml for category James.Mailet and restart james, I could not find any difference in mailet log file, anything am I missing? Thanks

RE: How to Enable Debug?

2003-06-06 Thread Noel J. Bergman
Hi, I want to enable debug for James.Mailet to get more info Mailet Logging isn't consistent with the rest of logging. A mailet can only say to log or not; it has no log levels. What you need to do is to add debugtrue/debug to each mailet that you want to debug. --- Noel

[ANN] James v2.2.0a4 Test Build

2003-06-06 Thread Noel J. Bergman
James v2.2.0a4 is available for testing. This release contains few enhancements over the v2.2.0a3 test build, but contains several fixes to new features. This version is actively being tested, and is in use on at least one production server (with live monitoring of its performance). This

RE: Problem with Database

2003-06-06 Thread Noel J. Bergman
What version of James, what version of Oracle, what drivers, what OS, what JVM, etc. James uses meta data from JDBC to inquire about the existence of the tables. --- Noel -Original Message- From: Maza, Mohamed [mailto:[EMAIL PROTECTED] Sent: Friday, June 06, 2003 6:41 To: