RE: Saving "session" information

2003-06-25 Thread Steve Brewin
Hmm. Thats the James 3 version of org.apache.mailet.Mail, not the current version. Guess its coming but not here yet. -- Steve > -Original Message- > From: Steve Brewin [mailto:[EMAIL PROTECTED] > Sent: 25 June 2003 22:13 > To: 'James Users List' > Sub

RE: Saving "session" information

2003-06-25 Thread Steve Brewin
Look at org.apache.mailet.Mail getAttribute() & setAttribute(). Seems to be what you are looking for. Never tried it though. -- Steve > -Original Message- > From: Jim Janson [mailto:[EMAIL PROTECTED] > Sent: 25 June 2003 21:52 > To: James Users List > Subject: Saving "session" information

RE: How to hook into James/Phoenix Logging routines ?

2003-06-25 Thread Steve Brewin
If you want to use mailet logging you are going to have to pass your XmlRpcHandler an object that implements org.apache.mailet.MailetContext as this is the interface that defines the logging methods. One way to get such an object is with the getMailetContext() method in GenericMailet. -- Steve >

RE: Correct version of the xdocs?

2003-06-24 Thread Steve Brewin
Noel, > > > Is http://james.apache.org/index.html using pages generated from > > > the correct version of the xdocs? > > As Danny said, we'll be separating the site docs into its own > repository. > > > As a quick fix, how about updating the docs. in the CVS > head so that the > > documentation li

RE: Matchers & X Window

2003-06-20 Thread Steve Brewin
ilto:[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? > > > &

RE: XML Entities in config.xml

2003-06-20 Thread Steve Brewin
> Has anyone had any success bringing XML entities into James' > config.xml > using something like this... > > > ]> > >&testScript; > > Solved it! Works with the following... ]> &testScript; The XML specs. don't mention "file:", but hey. -- Steve --

XML Entities in config.xml

2003-06-20 Thread Steve Brewin
Hi, Has anyone had any success bringing XML entities into James' config.xml using something like this... ]> &testScript; Xerces is throwing a MalformedURLException saying that "./testScript.xml" lacks a protocol. True, but irrelevant. The XML spec. says that this is valid. Of course, I sh

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 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: Fetchmail (was Re: Is this a valid From: address?)

2003-06-17 Thread Steve Brewin
> -Original Message- > From: tobe [mailto:[EMAIL PROTECTED] > Sent: 17 June 2003 00:15 > To: James Users List > Subject: Re: Fetchmail (was Re: Is this a valid From: address?) > > > Steve, > > you seem to have thought a lot about this. Light relief from the day job. > As long as I can han

RE: Reading and writing X-header fields

2003-06-16 Thread Steve Brewin
Look at the code for fetchpop or fetchmail to see how these do it. -- Steve > -Original Message- > From: Steve [mailto:[EMAIL PROTECTED] > Sent: 16 June 2003 20:43 > To: james-user > Subject: Reading and writing X-header fields > > > I am writing an application in which I need to track

RE: Fetchmail (was Re: Is this a valid From: address?)

2003-06-16 Thread Steve Brewin
> -Original Message- > From: tobe [mailto:[EMAIL PROTECTED] > Sent: 15 June 2003 12:27 > To: James Users List > Subject: Fetchmail (was Re: Is this a valid From: address?) > > Steve Brewin wrote: > > Tobe, > I am a bit concerned about "will only deliver

RE: DNS for JAMES

2003-06-13 Thread Steve Brewin
Since you are running Windows, open a command prompt, type 'ipconfig /all' and use the DNS servers you see listed there. -- Steve > -Original Message- > From: Daniel Joshua [mailto:[EMAIL PROTECTED] > Sent: 13 June 2003 11:29 > To: James-User (E-mail) > Subject: DNS for JAMES > > > I sett

RE: Available SMTP server for use with javax.mail

2003-06-12 Thread Steve Brewin
Daniel, James contains an SMTP server. If your project is simply to use javax.mail to send a message to an SMTP server, you don't need to worry about all the configuration stuff. Just run James on the same machine as you test the code you are developing. James' default settings allow 'localhost' -

RE: Correct version of the xdocs?

2003-06-12 Thread Steve Brewin
> -Original Message- > From: Danny Angus [mailto:[EMAIL PROTECTED] > Sent: 12 June 2003 11:42 > To: James Users List > Subject: RE: Correct version of the xdocs? > > > > Is http://james.apache.org/index.html using pages generated from > > the correct > > version of the xdocs? > > The docs o

Correct version of the xdocs?

2003-06-12 Thread Steve Brewin
Hi, Is http://james.apache.org/index.html using pages generated from the correct version of the xdocs? For instance, http://james.apache.org/provided_matchers_2_1.html lists "AttachmentFileNameIs" as a provided matcher, but this is in neither the source or binary distributions of 2.1.3. Nor is it

James is featured on IBM DeveloperWorks

2003-06-11 Thread Steve Brewin
I bet this increases the number of downloads! "Working with James, Part 1 An introduction to Apache's James enterprise e-mail" http://www-106.ibm.com/developerworks/java/library/j-james1.html -- Steve - To unsubscribe, e-mail:

RE: Virus scanning mailet/matcher

2003-06-06 Thread Steve Brewin
outcome of the antivirus mailet and do > whatever is required. > I need a mailet to avoid having an ugly matcher condition > string as is currently used. > > Vincenzo > > > -Original Message- > > From: Steve Brewin [mailto:[EMAIL PROTECTE

RE: Virus scanning mailet/matcher

2003-06-06 Thread Steve Brewin
Vincenzo Just had a quick look at the docs for your virus scanner. One question. What happens if the sender of the virus infected email adds an "X-MessageIsInfected: false" header to the envelope? -- Steve > -Original Message- > From: Vincenzo Gianferrari Pini > [mailto:[EMAIL PROTECTED]

RE: Step by step guide

2003-06-02 Thread Steve Brewin
Also, be sure to read and act on the comments in 'config.xml' indicating where things need to be changed. You will also find it helpful to uncomment the 'notifyPostmaster' snippets to get notification when things fail. You will need to add 'Postmaster' as a local user using the telnet interface, b

RE: Is this a valid From: address?

2003-06-02 Thread Steve Brewin
> Since POP3 isn't SMTP, it does seem to me that the gateway > concept does > apply. RFC2821 is clear enough. If James/fetchMail is only delivering locally, it is not an SMTP gateway as defined therein. Semantically, it is a gateway between a POP3/IMAP server and James' SMTP spool, but that isn't

RE: Is this a valid From: address?

2003-06-02 Thread Steve Brewin
Noel, RFC 2821 section 3.8.4 applies to gateways. My point (2) refers to MTAs acting as a relay. >From RFC 2821 section 3.7, Relaying... "As discussed in section 2.4.1, a relay SMTP has no need to inspect or act upon the headers or body of the message data and MUST NOT do so except to add its own

RE: Is this a valid From: address?

2003-05-31 Thread Steve Brewin
> > My feeling is that James > > should be agnostic to originator addresses and propogate them as is. > > That would be propagating invalid content that cannot be used > to reply: > > > > The SMTP handler would, and should, reject those addresses > when passed via SMTP. The way I see it is the

RE: Is this a valid From: address?

2003-05-31 Thread Steve Brewin
Danny, > > javax.mail.internet.ParseException: Out of data at position 26 > > no @ presumably.. can james handle a quoted local part > without an @ is the question. > > d. Well MailAddress expects an @, hence the exception. My feeling is that James should be agnostic to originator addresses and p

RE: Is this a valid From: address?

2003-05-31 Thread Steve Brewin
Noel, > > org.apache.mailet.MailAddress throws a parse exception > > proceessing the > > following From: address... > > <"nlt: Mail Administrator"> > > What exactly is the exception? Text and stacktrace context would be > helpful. OK. Changed the code to print a stacktrace and here it is... jav

Is this a valid From: address?

2003-05-30 Thread Steve Brewin
Hi, org.apache.mailet.MailAddress throws a parse exception proceessing the following From: address... <"nlt: Mail Administrator"> My reading of RFC 822 suggests that MailAdress is correct, this is an invalid From: address. Firstly, am I correct? Secondly, assuming MailAddress and I are correct