Re: Let's just tell Sun to rewrite the JavaMail API. Was: What about IMAP support?

2003-11-11 Thread Danny Angus





Bill!

And after I just bad mouthed you! So first I offer my heartfelt apology.
:-)

Also sorry for cross posting, I suggest we keep this discussion in one
place, James-dev is quite quiet.

You wrote:

> We did some of this.  We separated the pieces of JavaMail into the
> core API piece and the protocol provider pieces.  That allows you
> to pick just the pieces you need.

Yep this is true, there's an API and a Reference Implementation.
And it does allow developers to add new protocols and MIME types.

> But we haven't considered carving the core API piece into multiple
> pieces.  And we wouldn't consider doing anything of that sort that
> would break compatibility with the existing API.

I certainly wouldn't expect you to, but I hope I can convince you that
there's a middle ground where we can all benefit.

> If you think some great advantage could be had by splitting the APIs in
> this way, tell me more.

I don't believe that it is necessary to split the API per se, but consider
it this way..

A mail-client API and a mail-server API would be specialisations of a
generic mail API.
The generic API would be composed mainly of interfaces, and implementation
would be done by the specialisations.

This is reflects the fundamental principles of OOD.

What I'd like to see would be for more interfaces and fewer implementations
in the API itself, so that it could be left to
the developers of server software to replace Sun's implementation of an
interface with another implementation who's behaviour is better suited to
the specialisation.

MimeMessage is a case where I think we've missed the boat. It is probably
too entrenched in peoples use of javaMail for it's inheritance to be
meddled with but as a for-instance...

MimeMessage should be an interface.
AbstractMimeMessage should provide the basic functionality of MM, in terms
of the content type handlers and things.
ClientMimeMessage would implement MimeMessage but exhibit behaviour
appropriate in a client application (like the message-ID /saveChanges()
feature)
ServerMimeMessage would behave in a way specialised towards the
requirements of server software.

I'd like to look at the artificial distinction between Store and Transport,
and folders and the Session too to see if some meddling with inheritance
would at least give us the hooks on which we could hang server specialised
classes so that they would also be JavaMail implementations, I knw we can
achieve this at the moment, but not without going to some bizarre lengths
and to some extent loosing sight of the point of the exercise.


d.



***
The information in this e-mail is confidential and for use by the addressee(s) only. 
If you are not the intended recipient (or responsible for delivery of the message to 
the intended recipient) please notify us immediately on 0141 306 2050 and delete the 
message from your computer. You may not copy or forward it or use or disclose its 
contents to any other person. As Internet communications are capable of data 
corruption Student Loans Company Limited does not accept any  responsibility for 
changes made to this message after it was sent. For this reason it may be 
inappropriate to rely on advice or opinions contained in an e-mail without obtaining 
written confirmation of it. Neither Student Loans Company Limited or the sender 
accepts any liability or responsibility for viruses as it is your responsibility to 
scan attachments (if any). Opinions and views expressed in this e-mail are those of 
the sender and may not reflect the opinions and views of The Student Loans Company 
Limited.

This footnote also confirms that this email message has been swept for the presence of 
computer viruses.

**


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Problems with outgoing email

2003-11-11 Thread Richard O. Hammer
Two tools which I find useful for troubleshooting such difficulties are:
1. telnet to port 25 of the server in question (one of the Yahoo 
servers which DNS is finding for you) and talk SMTP to it.  That is, 
type in SMTP commands and observe the responses.  You can send test 
messages to yourself in this low-level way.  For an example of a SMTP 
exchange, see RFC 2821, Appendix D.

2. Ethereal to capture the packets of a given exchange.  It is 
possible that some error message is being generated, in the exchange 
between javax.mail.Transport and the yahoo mail server, which is not 
being reported up to you.  By scrutinizing the SMTP exchange, which 
you can capture with Ethereal, you might find an error message.

Rich Hammer

Serge Knystautas wrote:
Chandru wrote:
Hi,
Took me a bit of time to figure out that I need to point James to the
apropriate dns server (default is localhost).  The nameservers are set
correctly (I am using yahoo's namesservers currently).
The emails seem to be going out from James:



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Taking the plunge - Eclipse + Ant = James

2003-11-11 Thread James Bucanek
Greetings,

I'm about the take the plunge and see if I build James from source, then see if I'm 
programmer enough to contribute.  ;)

I'm taking this opportunity to learn/evaluate Eclipse at the same time.  Is anyone 
else here using Eclipse?  If so, is there anything I need to know about building James 
in Eclipse or accessing James' CVS repository via Eclipse?  (Ant scripts would be 
nice!)

If no one is using Eclipse, or has some reason why I shouldn't be using it, I'd like 
to know that too.

Thanks,

James

__
James Bucanek   

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Taking the plunge - Eclipse + Ant = James

2003-11-11 Thread Edward Flick
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Hey James,
I'm not an active committer to this project, but I would highly
recommend Eclipse.  It really simplifies coding, and browsing through
code (well it simplifies a lot of other things too, but thats probably
all you are concerned with).  Let me help you in advance though, don't
get discouraged.  Eclipse is very logical in its usage, but it is a
little hard to discover these features.  But if you stick with it, you
will like it, I guarantee it.  Also, read up on it, while you are using
it, and remember right clicking is your friend.  It helps.
Edward

James Bucanek wrote:

| Greetings,
|
| I'm about the take the plunge and see if I build James from source,
then see if I'm programmer enough to contribute.  ;)
|
| I'm taking this opportunity to learn/evaluate Eclipse at the same
time.  Is anyone else here using Eclipse?  If so, is there anything I
need to know about building James in Eclipse or accessing James' CVS
repository via Eclipse?  (Ant scripts would be nice!)
|
| If no one is using Eclipse, or has some reason why I shouldn't be
using it, I'd like to know that too.
|
| Thanks,
|
| James
|
| __
| James Bucanek   
|
| -
| To unsubscribe, e-mail: [EMAIL PROTECTED]
| For additional commands, e-mail: [EMAIL PROTECTED]
|
|
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.3 (MingW32)
iD8DBQE/sSHHvWeCZ4RLdzYRAlr1AJ4+5Mb3843HJu6NLw+38RTpIiBOIwCcDjhp
tiIi4l3DEUnaVHDeQeRCxDs=
=4zb8
-END PGP SIGNATURE-
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: Taking the plunge - Eclipse + Ant = James

2003-11-11 Thread Steve Brewin
James Bucanek wrote:

> I'm taking this opportunity to learn/evaluate Eclipse at the
> same time.  Is anyone else here using Eclipse?

I have always used Eclipse to develop James code and am very happy with it.

> If so, is
> there anything I need to know about building James in Eclipse
> or accessing James' CVS repository via Eclipse?

1) Be sure to check out James as a Java Project (oddly enough), this is not
the default project type
2) Set the Project Properties to use a seperate directory such as
/dev/jamesHead
3) Once everything has been loaded, from the Java Perspective select your
new Project's Properties Select use source folders contained in the project,
add the existing folder 'src/java' and allow the ouput folder to be 'bin'.
4) To resolve compile errors you will need to ensure all the relevant
libraries are specified in the Library page which sets the classpath and
that JDK1.3.1 is used. To help you on your way I have attached the contents
of my .classpath file as a guide. I would suggest you use the GUI to enter
them rather than mess with the file!

> (Ant scripts
> would be nice!)

James has its own Ant script, build.xml. Personally, I always use this
outside of Eclipse as I want to be sure that the build as distributed will
work.

Also, I execute James outside of Eclipse using Eclipse's remote debugger to
attach to the remote JVM which in this case needs to be JDK 1.4.x.

I hope this helps,

-- Steve

Eclipse .classpath file contents...














































- - - - - - - - - - - - - - - - - -

This private and confidential e-mail has been sent to you by Synergy Systems Limited. 
It may not represent the views of Synergy Systems Limited.

If you are not the intended recipient of this e-mail and have received it in error, 
please notify the sender by replying with "received in error" as the subject and then 
delete it from your mailbox.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Taking the plunge - Eclipse + Ant = James

2003-11-11 Thread Noel J. Bergman
Steve,

Would you please do a writeup on using Eclipse with James, and post it to
the Wiki?

--- Noel


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Taking the plunge - Eclipse + Ant = James

2003-11-11 Thread Steve Brewin
Noel J. Bergman wrote:

> Steve,
> 
> Would you please do a writeup on using Eclipse with James, 
> and post it to
> the Wiki?
> 
>   --- Noel

Went into my 'to do' list as soon as I sent the previous mail!

-- Steve

- - - - - - - - - - - - - - - - - -

This private and confidential e-mail has been sent to you by Synergy Systems Limited. 
It may not represent the views of Synergy Systems Limited.

If you are not the intended recipient of this e-mail and have received it in error, 
please notify the sender by replying with "received in error" as the subject and then 
delete it from your mailbox.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Taking the plunge - Eclipse + Ant = James

2003-11-11 Thread Steve Brewin
James Bucanek wrote:
>
>
> Steve,
>
> Thanks a million for the tips.  I'm about half way through my
> "Eclipse in Action" published by Manning, and things are
> starting to make sense.  ;)
>
> If I run into trouble, would you mind if I picked your brain?

No problem. In fact it would be useful to know where you had issues so that
we could highlight them in the a future Wiki entry.

Be sure to post to the James Developers List so others can add their
insights.

-- Steve

- - - - - - - - - - - - - - - - - -

This private and confidential e-mail has been sent to you by Synergy Systems Limited. 
It may not represent the views of Synergy Systems Limited.

If you are not the intended recipient of this e-mail and have received it in error, 
please notify the sender by replying with "received in error" as the subject and then 
delete it from your mailbox.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]