RE: Who wants to write POP and IMAP transports? [status]

2005-12-09 Thread Rajith Attapattu
I am almost done with the POP3 support and currently testing it. Will
upload a patch soon.

Sorry for the delay.

Rajith.

-Original Message-
From: Bilal Bhatti [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, December 07, 2005 1:20 PM
To: dev@geronimo.apache.org
Subject: Re: Who wants to write POP and IMAP transports? [status]

I was using JavaMail, I misunderstood the earlier discussions. I am
going
through the RFC and javamail specs, and coding a bit. I should have
something fairly soon.

bilal

 On Dec 6, 2005, at 7:24 AM, Bilal Bhatti wrote:

 I have the code for an online imap client. It has basic
 functionality to
 grab folders and pull down messages.

 Does your code use JavaMail or did you roll your own imap
 implementation?  If you rolled your own we could really use the code.

 Assuming you have your own IMAP transport code, can you post it to
 http://issues.apache.org/jira/secure/BrowseProject.jspa?id=10220 so
 we can take a look at it?  We can then work with you to convert the
 code into a JavaMail transport plugin.

 Thanks,

 -dain



-- bilal

-
We act as though comfort and luxury were the chief requirements of
life,
when all that we need to make us happy is something to be enthusiastic
about. - Einstein



Re: Who wants to write POP and IMAP transports? [status]

2005-12-07 Thread Bilal Bhatti
I was using JavaMail, I misunderstood the earlier discussions. I am going
through the RFC and javamail specs, and coding a bit. I should have
something fairly soon.

bilal

 On Dec 6, 2005, at 7:24 AM, Bilal Bhatti wrote:

 I have the code for an online imap client. It has basic
 functionality to
 grab folders and pull down messages.

 Does your code use JavaMail or did you roll your own imap
 implementation?  If you rolled your own we could really use the code.

 Assuming you have your own IMAP transport code, can you post it to
 http://issues.apache.org/jira/secure/BrowseProject.jspa?id=10220 so
 we can take a look at it?  We can then work with you to convert the
 code into a JavaMail transport plugin.

 Thanks,

 -dain



-- bilal

-
We act as though comfort and luxury were the chief requirements of life,
when all that we need to make us happy is something to be enthusiastic
about. - Einstein



RE: Who wants to write POP and IMAP transports? [status]

2005-12-06 Thread Rajith Attapattu

Bilal,

What Bruce was referring to are the following RFC's and JavaMail spec.

IMAP4 RFC
http://www.faqs.org/rfcs/rfc1730.html

POP3 RFC
http://www.faqs.org/rfcs/rfc1939.html

The following page has links to both JavaMail API doc and specs
http://java.sun.com/products/javamail/reference/api/index.html

http://java.sun.com/products/javamail/JavaMail-1.3-changes.txt

It's quite a bit to read :) 

Regards,

Rajith Attapattu.

-Original Message-
From: Bruce Snyder [mailto:[EMAIL PROTECTED] 
Sent: Monday, December 05, 2005 3:36 PM
To: dev@geronimo.apache.org; [EMAIL PROTECTED]
Subject: Re: Who wants to write POP and IMAP transports? [status]

On 12/5/05, Bilal Bhatti [EMAIL PROTECTED] wrote:

 Can you share the resources you have found about IMAP/JavaMail etc. in
 your research.  Let me know where I can help you with that. I'm not a
mail
 expert  but I will help where possible.

The majority of the resources I've found I have already noted in the
discussions on the topic of POP and IMAP transports (i.e., JavaMail
spec, relevant RFCs).

Bruce
--
perl -e 'print
unpack(u30,D0G)[EMAIL PROTECTED]5R\F)R=6-E+G-N61ED\!G;6%I;\YC;VT*
);'

The Castor Project
http://www.castor.org/

Apache Geronimo
http://geronimo.apache.org/


RE: Who wants to write POP and IMAP transports? [status]

2005-12-06 Thread Bilal Bhatti
Thanks, Rajith.

Is the goal to create a full IMAP client with offline capabilities. If so
what local message format is going to be used? Is this client going to be
plugged in as a portlet in the console?

I have the code for an online imap client. It has basic functionality to
grab folders and pull down messages. What are the feature requirements for
this thing?

Sorry for the dumb questions, if they have been discussed already.

bilal


 Bilal,

 What Bruce was referring to are the following RFC's and JavaMail spec.

 IMAP4 RFC
 http://www.faqs.org/rfcs/rfc1730.html

 POP3 RFC
 http://www.faqs.org/rfcs/rfc1939.html

 The following page has links to both JavaMail API doc and specs
 http://java.sun.com/products/javamail/reference/api/index.html

 http://java.sun.com/products/javamail/JavaMail-1.3-changes.txt

 It's quite a bit to read :)

 Regards,

 Rajith Attapattu.

 -Original Message-
 From: Bruce Snyder [mailto:[EMAIL PROTECTED]
 Sent: Monday, December 05, 2005 3:36 PM
 To: dev@geronimo.apache.org; [EMAIL PROTECTED]
 Subject: Re: Who wants to write POP and IMAP transports? [status]

 On 12/5/05, Bilal Bhatti [EMAIL PROTECTED] wrote:

 Can you share the resources you have found about IMAP/JavaMail etc. in
 your research.  Let me know where I can help you with that. I'm not a
 mail
 expert  but I will help where possible.

 The majority of the resources I've found I have already noted in the
 discussions on the topic of POP and IMAP transports (i.e., JavaMail
 spec, relevant RFCs).

 Bruce
 --
 perl -e 'print
 unpack(u30,D0G)[EMAIL PROTECTED]5R\F)R=6-E+G-N61ED\!G;6%I;\YC;VT*
 );'

 The Castor Project
 http://www.castor.org/

 Apache Geronimo
 http://geronimo.apache.org/



-- bilal

-
We act as though comfort and luxury were the chief requirements of life,
when all that we need to make us happy is something to be enthusiastic
about. - Einstein



RE: Who wants to write POP and IMAP transports? [status]

2005-12-06 Thread Rajith Attapattu
Bilal,

They are not dumb questions at all. The only dumb questions are the ones
that are not asked :)

Is the goal to create a full IMAP client with offline capabilities? If
so
what local message format is going to be used?
What are the feature requirements for this thing?

As to the offline capability I would assume we would like to have a full
blown client that supports both online and offline. 

I am not sure about the message format though (not an IMAP expert)

Bruce/Dain can u pls comment on this??

Is this client going to be plugged in as a portlet in the console?

The web config screens for the mail clients are portlet from what I know
(there is something for SMTP). But I do know from looking at the code
that all protocol providers are wrapped and installed as GBeans.

But I am not sure about how GBeans are exposed to the web layer via
portlets (not too familiar)

If somebody can fill me in that would be great.

Regards,

Rajith Attapattu.

-Original Message-
From: Bilal Bhatti [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, December 06, 2005 10:25 AM
To: dev@geronimo.apache.org
Cc: dev@geronimo.apache.org
Subject: RE: Who wants to write POP and IMAP transports? [status]

Thanks, Rajith.

Is the goal to create a full IMAP client with offline capabilities. If
so
what local message format is going to be used? Is this client going to
be
plugged in as a portlet in the console?

I have the code for an online imap client. It has basic functionality to
grab folders and pull down messages. What are the feature requirements
for
this thing?

Sorry for the dumb questions, if they have been discussed already.

bilal


 Bilal,

 What Bruce was referring to are the following RFC's and JavaMail spec.

 IMAP4 RFC
 http://www.faqs.org/rfcs/rfc1730.html

 POP3 RFC
 http://www.faqs.org/rfcs/rfc1939.html

 The following page has links to both JavaMail API doc and specs
 http://java.sun.com/products/javamail/reference/api/index.html

 http://java.sun.com/products/javamail/JavaMail-1.3-changes.txt

 It's quite a bit to read :)

 Regards,

 Rajith Attapattu.

 -Original Message-
 From: Bruce Snyder [mailto:[EMAIL PROTECTED]
 Sent: Monday, December 05, 2005 3:36 PM
 To: dev@geronimo.apache.org; [EMAIL PROTECTED]
 Subject: Re: Who wants to write POP and IMAP transports? [status]

 On 12/5/05, Bilal Bhatti [EMAIL PROTECTED] wrote:

 Can you share the resources you have found about IMAP/JavaMail etc.
in
 your research.  Let me know where I can help you with that. I'm not a
 mail
 expert  but I will help where possible.

 The majority of the resources I've found I have already noted in the
 discussions on the topic of POP and IMAP transports (i.e., JavaMail
 spec, relevant RFCs).

 Bruce
 --
 perl -e 'print
 unpack(u30,D0G)[EMAIL PROTECTED]5R\F)R=6-E+G-N61ED\!G;6%I;\YC;VT*
 );'

 The Castor Project
 http://www.castor.org/

 Apache Geronimo
 http://geronimo.apache.org/



-- bilal

-
We act as though comfort and luxury were the chief requirements of
life,
when all that we need to make us happy is something to be enthusiastic
about. - Einstein



Re: Who wants to write POP and IMAP transports? [status]

2005-12-06 Thread Rick McGuire

Bilal Bhatti wrote:


Thanks, Rajith.

Is the goal to create a full IMAP client with offline capabilities. If so
what local message format is going to be used? Is this client going to be
plugged in as a portlet in the console?

I have the code for an online imap client. It has basic functionality to
grab folders and pull down messages. What are the feature requirements for
this thing?
 

The requirements here are to add POP3 and IMAP support to the geronimo 
implementation of the javamail apis.  The end target is an 
implementation that functions exactly the same as the Sun implementation 
of the same.  Everything implemented here needs to be under the umbrella 
of the javamail apis.  So, for example, the local message format will be 
an implementation of the javamail message class.


Currently, all that is implemented is an outbound smtp transport.  This 
transport takes as input a javamail Message instance and send it to an 
smtp server.  Missing right now is the capability for inbound messages 
(i.e., POP3 or IMAP).   These need to be implementations of the javamail 
AbstractStore and AbstractFolder class.  Currently, we have some stub 
implementations of these classes in the sandbox/mail directory, but they 
are currently just empty autogenerated classes.  Somebody needs to fill 
in the blanks.


Rick


Sorry for the dumb questions, if they have been discussed already.

bilal

 


Bilal,

What Bruce was referring to are the following RFC's and JavaMail spec.

IMAP4 RFC
http://www.faqs.org/rfcs/rfc1730.html

POP3 RFC
http://www.faqs.org/rfcs/rfc1939.html

The following page has links to both JavaMail API doc and specs
http://java.sun.com/products/javamail/reference/api/index.html

http://java.sun.com/products/javamail/JavaMail-1.3-changes.txt

It's quite a bit to read :)

Regards,

Rajith Attapattu.

-Original Message-
From: Bruce Snyder [mailto:[EMAIL PROTECTED]
Sent: Monday, December 05, 2005 3:36 PM
To: dev@geronimo.apache.org; [EMAIL PROTECTED]
Subject: Re: Who wants to write POP and IMAP transports? [status]

On 12/5/05, Bilal Bhatti [EMAIL PROTECTED] wrote:

   


Can you share the resources you have found about IMAP/JavaMail etc. in
your research.  Let me know where I can help you with that. I'm not a
 


mail
   


expert  but I will help where possible.
 


The majority of the resources I've found I have already noted in the
discussions on the topic of POP and IMAP transports (i.e., JavaMail
spec, relevant RFCs).

Bruce
--
perl -e 'print
unpack(u30,D0G)[EMAIL PROTECTED]5R\F)R=6-E+G-N61ED\!G;6%I;\YC;VT*
);'

The Castor Project
http://www.castor.org/

Apache Geronimo
http://geronimo.apache.org/

   




-- bilal

-
We act as though comfort and luxury were the chief requirements of life,
when all that we need to make us happy is something to be enthusiastic
about. - Einstein


 





Re: Who wants to write POP and IMAP transports? [status]

2005-12-06 Thread Bruce Snyder
On 12/6/05, Rick McGuire [EMAIL PROTECTED] wrote:

 Is the goal to create a full IMAP client with offline capabilities. If so
 what local message format is going to be used? Is this client going to be
 plugged in as a portlet in the console?

We're not building a client application. We're simply writing
transports for the Geronimo JavaMail distribution to allow
communication with mail servers via the various protocols. This effort
has nothing to do with plugging into the console, it's far below that
in the architecture sense.

 I have the code for an online imap client. It has basic functionality to
 grab folders and pull down messages. What are the feature requirements for
 this thing?
 
 
 The requirements here are to add POP3 and IMAP support to the geronimo
 implementation of the javamail apis.  The end target is an
 implementation that functions exactly the same as the Sun implementation
 of the same.  Everything implemented here needs to be under the umbrella
 of the javamail apis.  So, for example, the local message format will be
 an implementation of the javamail message class.

POP3 and IMAP each have their own defintion of a message as well. So
this is one of the things we're providing.

 Currently, all that is implemented is an outbound smtp transport.  This
 transport takes as input a javamail Message instance and send it to an
 smtp server.  Missing right now is the capability for inbound messages
 (i.e., POP3 or IMAP).   These need to be implementations of the javamail
 AbstractStore and AbstractFolder class.  Currently, we have some stub
 implementations of these classes in the sandbox/mail directory, but they
 are currently just empty autogenerated classes.  Somebody needs to fill
 in the blanks.

Yes, in addition to modeling both POP3 and IMAP Stores and Folders, we
also need to be able to connect to each server type and speak each
protocol. In addition we'll need handlers that implement
DataContentHandler for each message type including plain text, html
and RFC822 (MIME messages). These impls just read messages from a
javax.activation.DataSource and write messages to an OutputStream. The
Sun JavaMail distribution provides both implementations, but it's not
licensed in a way for us to make use of it.

And like I said before, once we get these completed, maybe we can
consider offering Maildir and Mbox implementations if we're feeling
ambitious.

Bruce
--
perl -e 'print unpack(u30,D0G)[EMAIL 
PROTECTED]5R\F)R=6-E+G-N61ED\!G;6%I;\YC;VT*
);'

The Castor Project
http://www.castor.org/

Apache Geronimo
http://geronimo.apache.org/


RE: Who wants to write POP and IMAP transports? [status]

2005-12-06 Thread Rajith Attapattu
There is an implementation of all of the javamail api classes
(including support for multipart-MIME messages).  There's very little
done in terms of protocol-specific implementation classes other than
the SMTPTransport code that was just promoted out of the sandbox.

Going by what Rick mentioned above, I assume that we do have an
implementation for the Message classes. Or did u refer to the reference
impl from sun??

If the Message implementation is done by Geronimo developers then we can
extend and provide POP3Message and IMAPMessage implementations.

As for the portlet thingy I got it all mixed up :)
I thought the configuration module for the underlying JavaMail
implementation was exposed as a portlet through the console.

But as Bruce mentioned I guess for now we are concentrating more on
getting the JavaMail implementation.

Regards,

Rajith Attapattu.

-Original Message-
From: Bruce Snyder [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, December 06, 2005 12:23 PM
To: dev@geronimo.apache.org; [EMAIL PROTECTED]
Subject: Re: Who wants to write POP and IMAP transports? [status]

On 12/6/05, Rick McGuire [EMAIL PROTECTED] wrote:

 Is the goal to create a full IMAP client with offline capabilities.
If so
 what local message format is going to be used? Is this client going
to be
 plugged in as a portlet in the console?

We're not building a client application. We're simply writing
transports for the Geronimo JavaMail distribution to allow
communication with mail servers via the various protocols. This effort
has nothing to do with plugging into the console, it's far below that
in the architecture sense.

 I have the code for an online imap client. It has basic functionality
to
 grab folders and pull down messages. What are the feature
requirements for
 this thing?
 
 
 The requirements here are to add POP3 and IMAP support to the geronimo
 implementation of the javamail apis.  The end target is an
 implementation that functions exactly the same as the Sun
implementation
 of the same.  Everything implemented here needs to be under the
umbrella
 of the javamail apis.  So, for example, the local message format will
be
 an implementation of the javamail message class.

POP3 and IMAP each have their own defintion of a message as well. So
this is one of the things we're providing.

 Currently, all that is implemented is an outbound smtp transport.
This
 transport takes as input a javamail Message instance and send it to an
 smtp server.  Missing right now is the capability for inbound messages
 (i.e., POP3 or IMAP).   These need to be implementations of the
javamail
 AbstractStore and AbstractFolder class.  Currently, we have some stub
 implementations of these classes in the sandbox/mail directory, but
they
 are currently just empty autogenerated classes.  Somebody needs to
fill
 in the blanks.

Yes, in addition to modeling both POP3 and IMAP Stores and Folders, we
also need to be able to connect to each server type and speak each
protocol. In addition we'll need handlers that implement
DataContentHandler for each message type including plain text, html
and RFC822 (MIME messages). These impls just read messages from a
javax.activation.DataSource and write messages to an OutputStream. The
Sun JavaMail distribution provides both implementations, but it's not
licensed in a way for us to make use of it.

And like I said before, once we get these completed, maybe we can
consider offering Maildir and Mbox implementations if we're feeling
ambitious.

Bruce
--
perl -e 'print
unpack(u30,D0G)[EMAIL PROTECTED]5R\F)R=6-E+G-N61ED\!G;6%I;\YC;VT*
);'

The Castor Project
http://www.castor.org/

Apache Geronimo
http://geronimo.apache.org/


Re: Who wants to write POP and IMAP transports? [status]

2005-12-06 Thread Dain Sundstrom

On Dec 6, 2005, at 7:24 AM, Bilal Bhatti wrote:

I have the code for an online imap client. It has basic  
functionality to

grab folders and pull down messages.


Does your code use JavaMail or did you roll your own imap  
implementation?  If you rolled your own we could really use the code.


Assuming you have your own IMAP transport code, can you post it to  
http://issues.apache.org/jira/secure/BrowseProject.jspa?id=10220 so  
we can take a look at it?  We can then work with you to convert the  
code into a JavaMail transport plugin.


Thanks,

-dain


Re: Who wants to write POP and IMAP transports? [status]

2005-12-06 Thread Bruce Snyder
On 12/6/05, Rajith Attapattu [EMAIL PROTECTED] wrote:
 There is an implementation of all of the javamail api classes
 (including support for multipart-MIME messages).  There's very little
 done in terms of protocol-specific implementation classes other than
 the SMTPTransport code that was just promoted out of the sandbox.

 Going by what Rick mentioned above, I assume that we do have an
 implementation for the Message classes. Or did u refer to the reference
 impl from sun??

 If the Message implementation is done by Geronimo developers then we can
 extend and provide POP3Message and IMAPMessage implementations.

As I mentioned, because POP3 and IMAP each have their own defintion of
a message we need to provide the protocal specific implementations.

Bruce
--
perl -e 'print unpack(u30,D0G)[EMAIL 
PROTECTED]5R\F)R=6-E+G-N61ED\!G;6%I;\YC;VT*
);'

The Castor Project
http://www.castor.org/

Apache Geronimo
http://geronimo.apache.org/


Re: Who wants to write POP and IMAP transports?

2005-12-05 Thread Geir Magnusson Jr.
yes, but if I recall what I did, I used it as a client to get mail  
from an Exchange server via IMAP, and used the maillet API to process  
the stuff.


So I think there may be client there  or maybe I just used Sun's  
JavaMail...  I dont' remember


geir

On Dec 5, 2005, at 12:15 AM, Rajith Attapattu wrote:


James crossed my mind to, but it's a server implementation for POP3,
IMAP ect.

James is actually a mail server, but what we need is mail client. I
really wish James had a client project as sub project or something.

-Original Message-
From: Geir Magnusson Jr. [mailto:[EMAIL PROTECTED]
Sent: Sunday, December 04, 2005 11:24 PM
To: dev@geronimo.apache.org
Subject: Re: Who wants to write POP and IMAP transports?

Actually, thinking about it for a few seconds further, doesn't the
JAMES project already have code for this?  My foggy memory recalls
that I've used JAMES to talk to an exchange server using IMAP

geir

On Dec 3, 2005, at 12:42 PM, Dain Sundstrom wrote:


Thanks Bruce!

Is anyone one else interested?  This is definitely more then a one
person job.

-dain

On Dec 3, 2005, at 9:16 AM, Bruce Snyder wrote:


On 12/2/05, Dain Sundstrom [EMAIL PROTECTED] wrote:

We still need POP and IMAP transports for our JavaMail
implementation.  Do any of you have some POP or IMAP client code
sitting around, or would you like to write one?


I wish I had this code just lying around because there's a fair
amount
of effort involved in going through the RFCs for each protocol and
modeling everything.

I started to look into this last night to try to guage the amount of
effort required because I've got some experience working fairly
deeply
with IMAP in the past (see http://www.horde.org/imp/). But it's
been a
while since I've dug into the RFCs related to mail protocols.

Below is my very rough map of what's needed:

The protocols stacks:
1) Socket-based connection objects for each protocol
2) Full authentication and crypto providers
3) The full suite of IMAP commands, responses, etc. for  
communicating

with the server
(I'm sure there's more that I'm overlooking here)

The transports:
1) A model of each message store
2) A model of each message type

And of course tests for everything ;-).

I'll try to get started on the IMAP side of things in the next  
day or

two, after I complete a book chapter ;-). Once that's complete I'll
see what I can do with the POP3 side.

Bruce
--
perl -e 'print unpack(u30,D0G)[EMAIL PROTECTED]5R\F)R=6-E+G-N61ED
\!G;6%I;\YC;VT*
);'

The Castor Project
http://www.castor.org/

Apache Geronimo
http://geronimo.apache.org/




--
Geir Magnusson Jr  +1-203-665-6437
[EMAIL PROTECTED]




--
Geir Magnusson Jr  +1-203-665-6437
[EMAIL PROTECTED]





Re: Who wants to write POP and IMAP transports?

2005-12-05 Thread Rick McGuire

Rajith Attapattu wrote:


I will wait for the breakdown from Bruce and let you guys know on what
areas I can help.

Looking forward to see the list from Bruce.
 

I should also have some time available to work on this, once we have 
some sort of sub-task breakdown.  I had to dig into the javamail api 
implementation and the smtptransport code to provide the patches Dain 
just committed, so I have a little experience with that area.


Rick


Rajith.

-Original Message-
From: Bruce Snyder [mailto:[EMAIL PROTECTED] 
Sent: Saturday, December 03, 2005 3:52 PM

To: dev@geronimo.apache.org
Subject: Re: Who wants to write POP and IMAP transports?

On 12/3/05, Dain Sundstrom [EMAIL PROTECTED] wrote:
 


This is part of our clean room implementation of JavaMail, so any of
the mail client just uses JavaMail won't help us.

This one looks promising http://java-source.net/open-source/mail-
clients/snowmail as it claims that all protocols have been
reimplemented from scratch (Mime, POP, SMTP) and it is Freeware.

Maybe we can get them to extract the protocols, or donate them to
Geronimo.  Bruce do you have time to pursue this?
   



Yep, I'm already all over this because I've done a fair amount of
research into these items. I'll respond with a full breakdown this
afternoon.

Bruce
--
perl -e 'print
unpack(u30,D0G)[EMAIL PROTECTED]5R\F)R=6-E+G-N61ED\!G;6%I;\YC;VT*
);'

The Castor Project
http://www.castor.org/

Apache Geronimo
http://geronimo.apache.org/

 





Re: Who wants to write POP and IMAP transports?

2005-12-05 Thread Ken Perl
Talk with the owner who writes the good GPL java-mail client, let him
check the license, I think most guys don't understand the freedom of
Apache License.

On 12/5/05, Rick McGuire [EMAIL PROTECTED] wrote:
 Rajith Attapattu wrote:

 I will wait for the breakdown from Bruce and let you guys know on what
 areas I can help.
 
 Looking forward to see the list from Bruce.
 
 
 I should also have some time available to work on this, once we have
 some sort of sub-task breakdown.  I had to dig into the javamail api
 implementation and the smtptransport code to provide the patches Dain
 just committed, so I have a little experience with that area.

 Rick

 Rajith.
 
 -Original Message-
 From: Bruce Snyder [mailto:[EMAIL PROTECTED]
 Sent: Saturday, December 03, 2005 3:52 PM
 To: dev@geronimo.apache.org
 Subject: Re: Who wants to write POP and IMAP transports?
 
 On 12/3/05, Dain Sundstrom [EMAIL PROTECTED] wrote:
 
 
 This is part of our clean room implementation of JavaMail, so any of
 the mail client just uses JavaMail won't help us.
 
 This one looks promising http://java-source.net/open-source/mail-
 clients/snowmail as it claims that all protocols have been
 reimplemented from scratch (Mime, POP, SMTP) and it is Freeware.
 
 Maybe we can get them to extract the protocols, or donate them to
 Geronimo.  Bruce do you have time to pursue this?
 
 
 
 Yep, I'm already all over this because I've done a fair amount of
 research into these items. I'll respond with a full breakdown this
 afternoon.
 
 Bruce
 --
 perl -e 'print
 unpack(u30,D0G)[EMAIL PROTECTED]5R\F)R=6-E+G-N61ED\!G;6%I;\YC;VT*
 );'
 
 The Castor Project
 http://www.castor.org/
 
 Apache Geronimo
 http://geronimo.apache.org/
 
 
 




--
perl -e 'print unpack(u,62V5N\FME;G\!EFQ`9VUA:6PN8V]M\[EMAIL PROTECTED]
)'


Re: Who wants to write POP and IMAP transports?

2005-12-05 Thread Matt Hogstrom
Just to clear my muddled mind.  It seems like this would be excellent to get 
into 1.0 but I'm concerned that this might be more work than is possible to 
deliver a whole solution.


So, I'm assuming this is a 1.1 or 1.x discussion.  Is my understanding correct?

Matt

Rick McGuire wrote:

Rajith Attapattu wrote:


I will wait for the breakdown from Bruce and let you guys know on what
areas I can help.

Looking forward to see the list from Bruce.
 

I should also have some time available to work on this, once we have 
some sort of sub-task breakdown.  I had to dig into the javamail api 
implementation and the smtptransport code to provide the patches Dain 
just committed, so I have a little experience with that area.


Rick


Rajith.

-Original Message-
From: Bruce Snyder [mailto:[EMAIL PROTECTED] Sent: Saturday, 
December 03, 2005 3:52 PM

To: dev@geronimo.apache.org
Subject: Re: Who wants to write POP and IMAP transports?

On 12/3/05, Dain Sundstrom [EMAIL PROTECTED] wrote:
 


This is part of our clean room implementation of JavaMail, so any of
the mail client just uses JavaMail won't help us.

This one looks promising http://java-source.net/open-source/mail-
clients/snowmail as it claims that all protocols have been
reimplemented from scratch (Mime, POP, SMTP) and it is Freeware.

Maybe we can get them to extract the protocols, or donate them to
Geronimo.  Bruce do you have time to pursue this?
  



Yep, I'm already all over this because I've done a fair amount of
research into these items. I'll respond with a full breakdown this
afternoon.

Bruce
--
perl -e 'print
unpack(u30,D0G)[EMAIL PROTECTED]5R\F)R=6-E+G-N61ED\!G;6%I;\YC;VT*
);'

The Castor Project
http://www.castor.org/

Apache Geronimo
http://geronimo.apache.org/

 










Re: Who wants to write POP and IMAP transports? [status]

2005-12-05 Thread Rick McGuire

Rajith Attapattu wrote:


Bruce/ Dain,

Can u guys please comment on this?
(below is the break down from my reading/research)

I would like to know if this is going in release 1.0 or 1.x ?? (somebody
else asked this question too)

Since there is a smtp transport already written I believe there is at
least a minimum implementation of the Message class.
 

There is an implementation of all of the javamail api classes (including 
support for multipart-MIME messages).  There's very little done in terms 
of protocol-specific implementation classes other than the SMTPTransport 
code that was just promoted out of the sandbox. 


If so we can sub class it and provide POP3 or IMAP Message classes.

However how work has been done on it mile MultiPart and MimePart etc..?

Regards,

Rajith Attapattu.

-Original Message-
From: Rajith Attapattu [mailto:[EMAIL PROTECTED] 
Sent: Monday, December 05, 2005 12:23 AM

To: dev@geronimo.apache.org
Subject: RE: Who wants to write POP and IMAP transports? [status]

Is anybody willing to tackle the Message (which conforms to
specifications RFC822 and RFC2045) then I can concentrate on POP3 and
Bruce on IMAP.

Since this Message is a beast on it's own it maybe too much for one
person if the timeline is too short.

At least if somebody can analyze and then summarize (reading the whole
thing will kill you :) ) it, then I can code the Message thingy.

Any volunteers ???

Regards,

Rajith Attapattu.

-Original Message-
From: Rajith Attapattu [mailto:[EMAIL PROTECTED] 
Sent: Monday, December 05, 2005 12:10 AM

To: dev@geronimo.apache.org
Subject: RE: Who wants to write POP and IMAP transports? [status]

Ok here is what I have right now for POP3.

I have gone through the RFC 1939 in detail and here is the summary. I
have also gone through the JavaMail API spec. Started a bit if coding.

I can come with a basic POP3 implementation that connects, authenticates
and list/retrieve/delete messages by Tuesday the earliest.

Next on my list is message processing according to RFC 822.

After that I will look into authentication.

Is this timeline OK

POP3 protocol stack
=
I will start ASAP on the connection management and the mandatory POP3
commands.
   USER name   valid in the AUTHORIZATION state
PASS string
QUIT

STATvalid in the TRANSACTION state
LIST [msg]
RETR msg
DELE msg
NOOP
RSET
QUIT 



Authentication
===
For now I will only work on USER/PASS, but some servers do not support
plain text authentication.

However I need to find out more details about the AUTH(RFC 1734) command
which use encryption. Same thing is used for IMAP. (didn't have time to
investigate).

Message Format (RFC 822)
===
A whole new beast to be conquered. Again I didn't have time to go
through in detail. Will give an update by Monday evening if possible.

Guys, is this too much time??? What is the deadline??? do we need this
before ApacheCon ??

Regards,
Rajith.


-Original Message-
From: Bruce Snyder [mailto:[EMAIL PROTECTED] 
Sent: Saturday, December 03, 2005 8:25 PM

To: dev@geronimo.apache.org
Subject: Re: Who wants to write POP and IMAP transports?

On 12/3/05, Rajith Attapattu [EMAIL PROTECTED] wrote:

 


I guess we can later move it to it's own sub-project so other Apache
users can use it as a standalone library. Just so that they don't go
through the same trouble we are experiencing.
   



Yes, absolutely. The goal is to offer implementations of transports
for IMAP, POP3, SMTP and maybe even Mbox and Maildir eventually.

Bruce
--
perl -e 'print
unpack(u30,D0G)[EMAIL PROTECTED]5R\F)R=6-E+G-N61ED\!G;6%I;\YC;VT*
);'

The Castor Project
http://www.castor.org/

Apache Geronimo
http://geronimo.apache.org/

 





RE: Who wants to write POP and IMAP transports? [status]

2005-12-05 Thread Bilal Bhatti
I would like to help. I'm not familiar with the POP3 or IMAP specs but I
can dig into them, once the work has been broken down to tasks. Is there
anything specific I can assist with?


Bilal


 Bruce/ Dain,

 Can u guys please comment on this?
 (below is the break down from my reading/research)

 I would like to know if this is going in release 1.0 or 1.x ?? (somebody
 else asked this question too)

 Since there is a smtp transport already written I believe there is at
 least a minimum implementation of the Message class.

 If so we can sub class it and provide POP3 or IMAP Message classes.

 However how work has been done on it mile MultiPart and MimePart etc..?

 Regards,

 Rajith Attapattu.

 -Original Message-
 From: Rajith Attapattu [mailto:[EMAIL PROTECTED]
 Sent: Monday, December 05, 2005 12:23 AM
 To: dev@geronimo.apache.org
 Subject: RE: Who wants to write POP and IMAP transports? [status]

 Is anybody willing to tackle the Message (which conforms to
 specifications RFC822 and RFC2045) then I can concentrate on POP3 and
 Bruce on IMAP.

 Since this Message is a beast on it's own it maybe too much for one
 person if the timeline is too short.

 At least if somebody can analyze and then summarize (reading the whole
 thing will kill you :) ) it, then I can code the Message thingy.

 Any volunteers ???

 Regards,

 Rajith Attapattu.

 -Original Message-
 From: Rajith Attapattu [mailto:[EMAIL PROTECTED]
 Sent: Monday, December 05, 2005 12:10 AM
 To: dev@geronimo.apache.org
 Subject: RE: Who wants to write POP and IMAP transports? [status]

 Ok here is what I have right now for POP3.

 I have gone through the RFC 1939 in detail and here is the summary. I
 have also gone through the JavaMail API spec. Started a bit if coding.

 I can come with a basic POP3 implementation that connects, authenticates
 and list/retrieve/delete messages by Tuesday the earliest.

 Next on my list is message processing according to RFC 822.

 After that I will look into authentication.

 Is this timeline OK

 POP3 protocol stack
 I will start ASAP on the connection management and the
 mandatory POP3
 commands.
  USER name   valid in the AUTHORIZATION state
  PASS string
  QUIT

  STATvalid in the TRANSACTION state
  LIST [msg]
  RETR msg
  DELE msg
  NOOP
  RSET
  QUIT


 Authentication
 ==For now I will only work on USER/PASS, but some servers do
 not support
 plain text authentication.

 However I need to find out more details about the AUTH(RFC 1734) command
 which use encryption. Same thing is used for IMAP. (didn't have time to
 investigate).

 Message Format (RFC 822)
 ==A whole new beast to be conquered. Again I didn't
 have time to go
 through in detail. Will give an update by Monday evening if possible.

 Guys, is this too much time??? What is the deadline??? do we need this
 before ApacheCon ??

 Regards,
 Rajith.


 -Original Message-
 From: Bruce Snyder [mailto:[EMAIL PROTECTED]
 Sent: Saturday, December 03, 2005 8:25 PM
 To: dev@geronimo.apache.org
 Subject: Re: Who wants to write POP and IMAP transports?

 On 12/3/05, Rajith Attapattu [EMAIL PROTECTED] wrote:

 I guess we can later move it to it's own sub-project so other Apache
 users can use it as a standalone library. Just so that they don't go
 through the same trouble we are experiencing.

 Yes, absolutely. The goal is to offer implementations of transports
 for IMAP, POP3, SMTP and maybe even Mbox and Maildir eventually.

 Bruce
 --
 perl -e 'print
 unpack(u30,D0G)[EMAIL PROTECTED]5R\F)R=6-E+G-N61ED\!G;6%I;\YC;VT*
 );'

 The Castor Project
 http://www.castor.org/

 Apache Geronimo
 http://geronimo.apache.org/



-- bilal

-
We act as though comfort and luxury were the chief requirements of life,
when all that we need to make us happy is something to be enthusiastic
about. - Einstein



Re: Who wants to write POP and IMAP transports?

2005-12-05 Thread Bruce Snyder
On 12/4/05, Geir Magnusson Jr. [EMAIL PROTECTED] wrote:
 Actually, thinking about it for a few seconds further, doesn't the
 JAMES project already have code for this?  My foggy memory recalls
 that I've used JAMES to talk to an exchange server using IMAP

The only info I could find in my research on this topic is from here:

http://www.mail-archive.com/server-dev@james.apache.org/msg05405.html

I've looked through what's there and it's very incomplete.

Bruce
--
perl -e 'print unpack(u30,D0G)[EMAIL 
PROTECTED]5R\F)R=6-E+G-N61ED\!G;6%I;\YC;VT*
);'

The Castor Project
http://www.castor.org/

Apache Geronimo
http://geronimo.apache.org/


Re: Who wants to write POP and IMAP transports?

2005-12-05 Thread Bruce Snyder
On 12/4/05, Geir Magnusson Jr. [EMAIL PROTECTED] wrote:
 one solution is to wait until CDDL binaries as officially blessed for
 apache distribution, and then just bundle the one's from Sun's
 Glassfish project, which are probably fairly well tested...

Geir, do you know if there's been movement in this area at all? And if
so, any guess on how long this process might take?

Bruce
--
perl -e 'print unpack(u30,D0G)[EMAIL 
PROTECTED]5R\F)R=6-E+G-N61ED\!G;6%I;\YC;VT*
);'

The Castor Project
http://www.castor.org/

Apache Geronimo
http://geronimo.apache.org/


Re: Who wants to write POP and IMAP transports?

2005-12-05 Thread Bruce Snyder
On 12/5/05, Ken Perl [EMAIL PROTECTED] wrote:
 Talk with the owner who writes the good GPL java-mail client, let him
 check the license, I think most guys don't understand the freedom of
 Apache License.

I considered this myself and decided not to pursue this line for,
well, no good reason I guess.

Geir, many people from the GNU Classpath project are working with
Harmony. Any chance that the GNU JavaMail
(http://www.gnu.org/software/classpathx/javamail/) project will be
coming to Harmony? And if so, can we expedite the move ;-)?

Bruce
--
perl -e 'print unpack(u30,D0G)[EMAIL 
PROTECTED]5R\F)R=6-E+G-N61ED\!G;6%I;\YC;VT*
);'

The Castor Project
http://www.castor.org/

Apache Geronimo
http://geronimo.apache.org/


Re: Who wants to write POP and IMAP transports? [status]

2005-12-05 Thread Dain Sundstrom
I think we should wait until 1.1 to ship this.  Even if we got it  
implemented this week, I don't think we will have time for any  
serious testing.


As for the timeline and breakdown detailed below, it looks great.   
Can you coordinate with the other volunteers?


Thank you for stepping up to the plate on this; I really appreciate it.

-dain

On Dec 5, 2005, at 8:26 AM, Rajith Attapattu wrote:


Bruce/ Dain,

Can u guys please comment on this?
(below is the break down from my reading/research)

I would like to know if this is going in release 1.0 or 1.x ??  
(somebody

else asked this question too)

Since there is a smtp transport already written I believe there is at
least a minimum implementation of the Message class.

If so we can sub class it and provide POP3 or IMAP Message classes.

However how work has been done on it mile MultiPart and MimePart  
etc..?


Regards,

Rajith Attapattu.

-Original Message-
From: Rajith Attapattu [mailto:[EMAIL PROTECTED]
Sent: Monday, December 05, 2005 12:23 AM
To: dev@geronimo.apache.org
Subject: RE: Who wants to write POP and IMAP transports? [status]

Is anybody willing to tackle the Message (which conforms to
specifications RFC822 and RFC2045) then I can concentrate on POP3 and
Bruce on IMAP.

Since this Message is a beast on it's own it maybe too much for one
person if the timeline is too short.

At least if somebody can analyze and then summarize (reading the whole
thing will kill you :) ) it, then I can code the Message thingy.

Any volunteers ???

Regards,

Rajith Attapattu.

-Original Message-
From: Rajith Attapattu [mailto:[EMAIL PROTECTED]
Sent: Monday, December 05, 2005 12:10 AM
To: dev@geronimo.apache.org
Subject: RE: Who wants to write POP and IMAP transports? [status]

Ok here is what I have right now for POP3.

I have gone through the RFC 1939 in detail and here is the summary. I
have also gone through the JavaMail API spec. Started a bit if coding.

I can come with a basic POP3 implementation that connects,  
authenticates

and list/retrieve/delete messages by Tuesday the earliest.

Next on my list is message processing according to RFC 822.

After that I will look into authentication.

Is this timeline OK

POP3 protocol stack
=
I will start ASAP on the connection management and the mandatory POP3
commands.
   USER name   valid in the AUTHORIZATION state
 PASS string
 QUIT

 STATvalid in the TRANSACTION state
 LIST [msg]
 RETR msg
 DELE msg
 NOOP
 RSET
 QUIT


Authentication
===
For now I will only work on USER/PASS, but some servers do not support
plain text authentication.

However I need to find out more details about the AUTH(RFC 1734)  
command
which use encryption. Same thing is used for IMAP. (didn't have  
time to

investigate).

Message Format (RFC 822)
===
A whole new beast to be conquered. Again I didn't have time to go
through in detail. Will give an update by Monday evening if possible.

Guys, is this too much time??? What is the deadline??? do we need this
before ApacheCon ??

Regards,
Rajith.


-Original Message-
From: Bruce Snyder [mailto:[EMAIL PROTECTED]
Sent: Saturday, December 03, 2005 8:25 PM
To: dev@geronimo.apache.org
Subject: Re: Who wants to write POP and IMAP transports?

On 12/3/05, Rajith Attapattu [EMAIL PROTECTED] wrote:


I guess we can later move it to it's own sub-project so other Apache
users can use it as a standalone library. Just so that they don't go
through the same trouble we are experiencing.


Yes, absolutely. The goal is to offer implementations of transports
for IMAP, POP3, SMTP and maybe even Mbox and Maildir eventually.

Bruce
--
perl -e 'print
unpack(u30,D0G)[EMAIL PROTECTED]5R\F)R=6-E+G-N61ED\!G;6%I;\YC;VT*
);'

The Castor Project
http://www.castor.org/

Apache Geronimo
http://geronimo.apache.org/




RE: Who wants to write POP and IMAP transports? [status]

2005-12-05 Thread Rajith Attapattu
Sure, Rick and Bilal as volunteered. 

I will take care of the POP3 protocol provider implementation.
(more specifically javax.mail.Store and javax.mail.Folder
implementations and support classes for POP3)

Since Rick has already done work on the Message classes maybe he can
help with the protocol specific Message Classes. Can you ???

I think Bruce is looking into IMAP, but he maybe busy with other things.
So Bilal can you dig into IMAP stuff after checking with Bruce.

And there is also the testing part. Any volunteers to test it and
possibly expand on the unit tests??

Also Bruce did mention that, the intention is to move the JavaMail
implementation to a sub project in the future. So maybe it's a good idea
to make it Geronimo independent.
Anyways a separation of concerns is always a plus point.

Regards,

Rajith Attapattu.

-Original Message-
From: Dain Sundstrom [mailto:[EMAIL PROTECTED] 
Sent: Monday, December 05, 2005 12:27 PM
To: dev@geronimo.apache.org
Subject: Re: Who wants to write POP and IMAP transports? [status]

I think we should wait until 1.1 to ship this.  Even if we got it  
implemented this week, I don't think we will have time for any  
serious testing.

As for the timeline and breakdown detailed below, it looks great.   
Can you coordinate with the other volunteers?

Thank you for stepping up to the plate on this; I really appreciate it.

-dain

On Dec 5, 2005, at 8:26 AM, Rajith Attapattu wrote:

 Bruce/ Dain,

 Can u guys please comment on this?
 (below is the break down from my reading/research)

 I would like to know if this is going in release 1.0 or 1.x ??  
 (somebody
 else asked this question too)

 Since there is a smtp transport already written I believe there is at
 least a minimum implementation of the Message class.

 If so we can sub class it and provide POP3 or IMAP Message classes.

 However how work has been done on it mile MultiPart and MimePart  
 etc..?

 Regards,

 Rajith Attapattu.

 -Original Message-
 From: Rajith Attapattu [mailto:[EMAIL PROTECTED]
 Sent: Monday, December 05, 2005 12:23 AM
 To: dev@geronimo.apache.org
 Subject: RE: Who wants to write POP and IMAP transports? [status]

 Is anybody willing to tackle the Message (which conforms to
 specifications RFC822 and RFC2045) then I can concentrate on POP3 and
 Bruce on IMAP.

 Since this Message is a beast on it's own it maybe too much for one
 person if the timeline is too short.

 At least if somebody can analyze and then summarize (reading the whole
 thing will kill you :) ) it, then I can code the Message thingy.

 Any volunteers ???

 Regards,

 Rajith Attapattu.

 -Original Message-
 From: Rajith Attapattu [mailto:[EMAIL PROTECTED]
 Sent: Monday, December 05, 2005 12:10 AM
 To: dev@geronimo.apache.org
 Subject: RE: Who wants to write POP and IMAP transports? [status]

 Ok here is what I have right now for POP3.

 I have gone through the RFC 1939 in detail and here is the summary. I
 have also gone through the JavaMail API spec. Started a bit if coding.

 I can come with a basic POP3 implementation that connects,  
 authenticates
 and list/retrieve/delete messages by Tuesday the earliest.

 Next on my list is message processing according to RFC 822.

 After that I will look into authentication.

 Is this timeline OK

 POP3 protocol stack
 =
 I will start ASAP on the connection management and the mandatory POP3
 commands.
  USER name   valid in the AUTHORIZATION state
  PASS string
  QUIT

  STATvalid in the TRANSACTION state
  LIST [msg]
  RETR msg
  DELE msg
  NOOP
  RSET
  QUIT


 Authentication
 ===
 For now I will only work on USER/PASS, but some servers do not support
 plain text authentication.

 However I need to find out more details about the AUTH(RFC 1734)  
 command
 which use encryption. Same thing is used for IMAP. (didn't have  
 time to
 investigate).

 Message Format (RFC 822)
 ===
 A whole new beast to be conquered. Again I didn't have time to go
 through in detail. Will give an update by Monday evening if possible.

 Guys, is this too much time??? What is the deadline??? do we need this
 before ApacheCon ??

 Regards,
 Rajith.


 -Original Message-
 From: Bruce Snyder [mailto:[EMAIL PROTECTED]
 Sent: Saturday, December 03, 2005 8:25 PM
 To: dev@geronimo.apache.org
 Subject: Re: Who wants to write POP and IMAP transports?

 On 12/3/05, Rajith Attapattu [EMAIL PROTECTED] wrote:

 I guess we can later move it to it's own sub-project so other Apache
 users can use it as a standalone library. Just so that they don't go
 through the same trouble we are experiencing.

 Yes, absolutely. The goal is to offer implementations of transports
 for IMAP, POP3, SMTP and maybe even Mbox and Maildir eventually.

 Bruce
 --
 perl -e 'print
 unpack(u30,D0G)[EMAIL PROTECTED]5R\F)R=6-E+G-N61ED\!G;6%I;\YC;VT

RE: Who wants to write POP and IMAP transports? [status]

2005-12-05 Thread Rajith Attapattu
Hi Rick,

 There is an implementation of all of the javamail api classes
(including 
support for multipart-MIME messages).  There's very little done in
terms 
of protocol-specific implementation classes other than the
SMTPTransport 
code that was just promoted out of the sandbox.


Where can I find these classes have they been ported to the trunk from
the sandbox???

I did an update now and all I see under org.apache.geronimo.mail
Is a couple of GBeans for Stores, Mail and SMTP transport.

As far as a JavaMail implementation is concerned I only see
NullTransport.java.

Can somebody help me figure out if I am looking in the wrong place?

Regards,

Rajith Attapattu.

-Original Message-
From: Rick McGuire [mailto:[EMAIL PROTECTED] 
Sent: Monday, December 05, 2005 11:52 AM
To: dev@geronimo.apache.org
Subject: Re: Who wants to write POP and IMAP transports? [status]

Rajith Attapattu wrote:

Bruce/ Dain,

Can u guys please comment on this?
(below is the break down from my reading/research)

I would like to know if this is going in release 1.0 or 1.x ??
(somebody
else asked this question too)

Since there is a smtp transport already written I believe there is at
least a minimum implementation of the Message class.
  

There is an implementation of all of the javamail api classes (including

support for multipart-MIME messages).  There's very little done in terms

of protocol-specific implementation classes other than the SMTPTransport

code that was just promoted out of the sandbox. 

If so we can sub class it and provide POP3 or IMAP Message classes.

However how work has been done on it mile MultiPart and MimePart etc..?

Regards,

Rajith Attapattu.

-Original Message-
From: Rajith Attapattu [mailto:[EMAIL PROTECTED] 
Sent: Monday, December 05, 2005 12:23 AM
To: dev@geronimo.apache.org
Subject: RE: Who wants to write POP and IMAP transports? [status]

Is anybody willing to tackle the Message (which conforms to
specifications RFC822 and RFC2045) then I can concentrate on POP3 and
Bruce on IMAP.

Since this Message is a beast on it's own it maybe too much for one
person if the timeline is too short.

At least if somebody can analyze and then summarize (reading the whole
thing will kill you :) ) it, then I can code the Message thingy.

Any volunteers ???

Regards,

Rajith Attapattu.

-Original Message-
From: Rajith Attapattu [mailto:[EMAIL PROTECTED] 
Sent: Monday, December 05, 2005 12:10 AM
To: dev@geronimo.apache.org
Subject: RE: Who wants to write POP and IMAP transports? [status]

Ok here is what I have right now for POP3.

I have gone through the RFC 1939 in detail and here is the summary. I
have also gone through the JavaMail API spec. Started a bit if coding.

I can come with a basic POP3 implementation that connects,
authenticates
and list/retrieve/delete messages by Tuesday the earliest.

Next on my list is message processing according to RFC 822.

After that I will look into authentication.

Is this timeline OK

POP3 protocol stack
=
I will start ASAP on the connection management and the mandatory POP3
commands.
  USER name   valid in the AUTHORIZATION state
 PASS string
 QUIT

 STATvalid in the TRANSACTION state
 LIST [msg]
 RETR msg
 DELE msg
 NOOP
 RSET
 QUIT 


Authentication
===
For now I will only work on USER/PASS, but some servers do not support
plain text authentication.

However I need to find out more details about the AUTH(RFC 1734)
command
which use encryption. Same thing is used for IMAP. (didn't have time to
investigate).

Message Format (RFC 822)
===
A whole new beast to be conquered. Again I didn't have time to go
through in detail. Will give an update by Monday evening if possible.

Guys, is this too much time??? What is the deadline??? do we need this
before ApacheCon ??

Regards,
Rajith.
 

-Original Message-
From: Bruce Snyder [mailto:[EMAIL PROTECTED] 
Sent: Saturday, December 03, 2005 8:25 PM
To: dev@geronimo.apache.org
Subject: Re: Who wants to write POP and IMAP transports?

On 12/3/05, Rajith Attapattu [EMAIL PROTECTED] wrote:

  

I guess we can later move it to it's own sub-project so other Apache
users can use it as a standalone library. Just so that they don't go
through the same trouble we are experiencing.



Yes, absolutely. The goal is to offer implementations of transports
for IMAP, POP3, SMTP and maybe even Mbox and Maildir eventually.

Bruce
--
perl -e 'print
unpack(u30,D0G)[EMAIL PROTECTED]5R\F)R=6-E+G-N61ED\!G;6%I;\YC;VT*
);'

The Castor Project
http://www.castor.org/

Apache Geronimo
http://geronimo.apache.org/

  




Re: Who wants to write POP and IMAP transports? [status]

2005-12-05 Thread Bruce Snyder
On 12/5/05, Rajith Attapattu [EMAIL PROTECTED] wrote:

 Where can I find these classes have they been ported to the trunk from
 the sandbox???

See modules/javamail-transport and modules/mail.

 I did an update now and all I see under org.apache.geronimo.mail
 Is a couple of GBeans for Stores, Mail and SMTP transport.

Bruce
--
perl -e 'print unpack(u30,D0G)[EMAIL 
PROTECTED]5R\F)R=6-E+G-N61ED\!G;6%I;\YC;VT*
);'

The Castor Project
http://www.castor.org/

Apache Geronimo
http://geronimo.apache.org/


Re: Who wants to write POP and IMAP transports? [status]

2005-12-05 Thread Rick McGuire

Rajith Attapattu wrote:

Sure, Rick and Bilal as volunteered. 


I will take care of the POP3 protocol provider implementation.
(more specifically javax.mail.Store and javax.mail.Folder
implementations and support classes for POP3)

Since Rick has already done work on the Message classes maybe he can
help with the protocol specific Message Classes. Can you ???
 

I was thinking of doing the SMTP authentication first, since most of my 
experience with the javamail apis have been in the context of debugging 
some SMTP problems.  I'm familiar with the output transports, but not 
looked at any of the input stuff yet.


Note that outputing the message format is handled by JAF Handlers for 
each of the MIME types.  The support for decoding the message content 
may already be in there. . 


I think Bruce is looking into IMAP, but he maybe busy with other things.
So Bilal can you dig into IMAP stuff after checking with Bruce.

And there is also the testing part. Any volunteers to test it and
possibly expand on the unit tests??

Also Bruce did mention that, the intention is to move the JavaMail
implementation to a sub project in the future. So maybe it's a good idea
to make it Geronimo independent.
Anyways a separation of concerns is always a plus point.

Regards,

Rajith Attapattu.

-Original Message-
From: Dain Sundstrom [mailto:[EMAIL PROTECTED] 
Sent: Monday, December 05, 2005 12:27 PM

To: dev@geronimo.apache.org
Subject: Re: Who wants to write POP and IMAP transports? [status]

I think we should wait until 1.1 to ship this.  Even if we got it  
implemented this week, I don't think we will have time for any  
serious testing.


As for the timeline and breakdown detailed below, it looks great.   
Can you coordinate with the other volunteers?


Thank you for stepping up to the plate on this; I really appreciate it.

-dain

On Dec 5, 2005, at 8:26 AM, Rajith Attapattu wrote:

 


Bruce/ Dain,

Can u guys please comment on this?
(below is the break down from my reading/research)

I would like to know if this is going in release 1.0 or 1.x ??  
(somebody

else asked this question too)

Since there is a smtp transport already written I believe there is at
least a minimum implementation of the Message class.

If so we can sub class it and provide POP3 or IMAP Message classes.

However how work has been done on it mile MultiPart and MimePart  
etc..?


Regards,

Rajith Attapattu.

-Original Message-
From: Rajith Attapattu [mailto:[EMAIL PROTECTED]
Sent: Monday, December 05, 2005 12:23 AM
To: dev@geronimo.apache.org
Subject: RE: Who wants to write POP and IMAP transports? [status]

Is anybody willing to tackle the Message (which conforms to
specifications RFC822 and RFC2045) then I can concentrate on POP3 and
Bruce on IMAP.

Since this Message is a beast on it's own it maybe too much for one
person if the timeline is too short.

At least if somebody can analyze and then summarize (reading the whole
thing will kill you :) ) it, then I can code the Message thingy.

Any volunteers ???

Regards,

Rajith Attapattu.

-Original Message-
From: Rajith Attapattu [mailto:[EMAIL PROTECTED]
Sent: Monday, December 05, 2005 12:10 AM
To: dev@geronimo.apache.org
Subject: RE: Who wants to write POP and IMAP transports? [status]

Ok here is what I have right now for POP3.

I have gone through the RFC 1939 in detail and here is the summary. I
have also gone through the JavaMail API spec. Started a bit if coding.

I can come with a basic POP3 implementation that connects,  
authenticates

and list/retrieve/delete messages by Tuesday the earliest.

Next on my list is message processing according to RFC 822.

After that I will look into authentication.

Is this timeline OK

POP3 protocol stack
=
I will start ASAP on the connection management and the mandatory POP3
commands.
   USER name   valid in the AUTHORIZATION state
PASS string
QUIT

STATvalid in the TRANSACTION state
LIST [msg]
RETR msg
DELE msg
NOOP
RSET
QUIT


Authentication
===
For now I will only work on USER/PASS, but some servers do not support
plain text authentication.

However I need to find out more details about the AUTH(RFC 1734)  
command
which use encryption. Same thing is used for IMAP. (didn't have  
time to

investigate).

Message Format (RFC 822)
===
A whole new beast to be conquered. Again I didn't have time to go
through in detail. Will give an update by Monday evening if possible.

Guys, is this too much time??? What is the deadline??? do we need this
before ApacheCon ??

Regards,
Rajith.


-Original Message-
From: Bruce Snyder [mailto:[EMAIL PROTECTED]
Sent: Saturday, December 03, 2005 8:25 PM
To: dev@geronimo.apache.org
Subject: Re: Who wants to write POP and IMAP transports?

On 12/3/05, Rajith Attapattu [EMAIL PROTECTED] wrote:

   


I guess we can later move

Re: Who wants to write POP and IMAP transports? [status]

2005-12-05 Thread Rick McGuire

Bruce Snyder wrote:


On 12/5/05, Rajith Attapattu [EMAIL PROTECTED] wrote:

 


Where can I find these classes have they been ported to the trunk from
the sandbox???
   



See modules/javamail-transport and modules/mail.
 

The javamail APIs are in the specs tree, not in the geronimo code tree, 
which are not part of the normal geronimo checkout.  To get this code, 
issue


svn checkout http://svn.apache.org/repos/asf/geronimo/trunk specs

You'll want to issue this from the geronimo root directory...this code has dependencies on other parts of geronimo 
to build.  

The code of interest is specs/javamail and specs/activation (which has a number of the mimetype handlers used to 
manipulate messages).



 


I did an update now and all I see under org.apache.geronimo.mail
Is a couple of GBeans for Stores, Mail and SMTP transport.
   



Bruce
--
perl -e 'print unpack(u30,D0G)[EMAIL 
PROTECTED]5R\F)R=6-E+G-N61ED\!G;6%I;\YC;VT*
);'

The Castor Project
http://www.castor.org/

Apache Geronimo
http://geronimo.apache.org/

 





RE: Who wants to write POP and IMAP transports? [status]

2005-12-05 Thread Bilal Bhatti
Sure.

Bruce, what can I do. If you can share any information/code that would be
helpful. Any guidance on how to approach this would be great.

Thanks.


 Sure, Rick and Bilal as volunteered.

 I will take care of the POP3 protocol provider implementation.
 (more specifically javax.mail.Store and javax.mail.Folder
 implementations and support classes for POP3)

 Since Rick has already done work on the Message classes maybe he can
 help with the protocol specific Message Classes. Can you ???

 I think Bruce is looking into IMAP, but he maybe busy with other things.
 So Bilal can you dig into IMAP stuff after checking with Bruce.

 And there is also the testing part. Any volunteers to test it and
 possibly expand on the unit tests??

 Also Bruce did mention that, the intention is to move the JavaMail
 implementation to a sub project in the future. So maybe it's a good idea
 to make it Geronimo independent.
 Anyways a separation of concerns is always a plus point.

 Regards,

 Rajith Attapattu.

 -Original Message-
 From: Dain Sundstrom [mailto:[EMAIL PROTECTED]
 Sent: Monday, December 05, 2005 12:27 PM
 To: dev@geronimo.apache.org
 Subject: Re: Who wants to write POP and IMAP transports? [status]

 I think we should wait until 1.1 to ship this.  Even if we got it
 implemented this week, I don't think we will have time for any
 serious testing.

 As for the timeline and breakdown detailed below, it looks great.
 Can you coordinate with the other volunteers?

 Thank you for stepping up to the plate on this; I really appreciate it.

 -dain

 On Dec 5, 2005, at 8:26 AM, Rajith Attapattu wrote:

 Bruce/ Dain,

 Can u guys please comment on this?
 (below is the break down from my reading/research)

 I would like to know if this is going in release 1.0 or 1.x ??
 (somebody
 else asked this question too)

 Since there is a smtp transport already written I believe there is at
 least a minimum implementation of the Message class.

 If so we can sub class it and provide POP3 or IMAP Message classes.

 However how work has been done on it mile MultiPart and MimePart
 etc..?

 Regards,

 Rajith Attapattu.

 -Original Message-
 From: Rajith Attapattu [mailto:[EMAIL PROTECTED]
 Sent: Monday, December 05, 2005 12:23 AM
 To: dev@geronimo.apache.org
 Subject: RE: Who wants to write POP and IMAP transports? [status]

 Is anybody willing to tackle the Message (which conforms to
 specifications RFC822 and RFC2045) then I can concentrate on POP3 and
 Bruce on IMAP.

 Since this Message is a beast on it's own it maybe too much for one
 person if the timeline is too short.

 At least if somebody can analyze and then summarize (reading the whole
 thing will kill you :) ) it, then I can code the Message thingy.

 Any volunteers ???

 Regards,

 Rajith Attapattu.

 -Original Message-
 From: Rajith Attapattu [mailto:[EMAIL PROTECTED]
 Sent: Monday, December 05, 2005 12:10 AM
 To: dev@geronimo.apache.org
 Subject: RE: Who wants to write POP and IMAP transports? [status]

 Ok here is what I have right now for POP3.

 I have gone through the RFC 1939 in detail and here is the summary. I
 have also gone through the JavaMail API spec. Started a bit if coding.

 I can come with a basic POP3 implementation that connects,
 authenticates
 and list/retrieve/delete messages by Tuesday the earliest.

 Next on my list is message processing according to RFC 822.

 After that I will look into authentication.

 Is this timeline OK

 POP3 protocol stack
  I will start ASAP on the connection management and
 the mandatory POP3
 commands.
 USER name   valid in the AUTHORIZATION state
  PASS string
  QUIT

  STATvalid in the TRANSACTION state
  LIST [msg]
  RETR msg
  DELE msg
  NOOP
  RSET
  QUIT


 Authentication
 == For now I will only work on USER/PASS, but some servers
 do not support
 plain text authentication.

 However I need to find out more details about the AUTH(RFC 1734)
 command
 which use encryption. Same thing is used for IMAP. (didn't have
 time to
 investigate).

 Message Format (RFC 822)
 == A whole new beast to be conquered. Again I
 didn't have time to go
 through in detail. Will give an update by Monday evening if possible.

 Guys, is this too much time??? What is the deadline??? do we need this
 before ApacheCon ??

 Regards,
 Rajith.


 -Original Message-
 From: Bruce Snyder [mailto:[EMAIL PROTECTED]
 Sent: Saturday, December 03, 2005 8:25 PM
 To: dev@geronimo.apache.org
 Subject: Re: Who wants to write POP and IMAP transports?

 On 12/3/05, Rajith Attapattu [EMAIL PROTECTED] wrote:

 I guess we can later move it to it's own sub-project so other Apache
 users can use it as a standalone library. Just so that they don't go
 through the same trouble we are experiencing.

 Yes, absolutely. The goal is to offer implementations of transports

Re: Who wants to write POP and IMAP transports? [status]

2005-12-05 Thread Bruce Snyder
On 12/5/05, Rajith Attapattu [EMAIL PROTECTED] wrote:
 Ok here is what I have right now for POP3.

 I have gone through the RFC 1939 in detail and here is the summary. I
 have also gone through the JavaMail API spec. Started a bit if coding.

 I can come with a basic POP3 implementation that connects, authenticates
 and list/retrieve/delete messages by Tuesday the earliest.

 Next on my list is message processing according to RFC 822.

 After that I will look into authentication.

 Is this timeline OK

 POP3 protocol stack
 =
 I will start ASAP on the connection management and the mandatory POP3
 commands.
USER name   valid in the AUTHORIZATION state
  PASS string
  QUIT

  STATvalid in the TRANSACTION state
  LIST [msg]
  RETR msg
  DELE msg
  NOOP
  RSET
  QUIT


 Authentication
 ===
 For now I will only work on USER/PASS, but some servers do not support
 plain text authentication.

 However I need to find out more details about the AUTH(RFC 1734) command
 which use encryption. Same thing is used for IMAP. (didn't have time to
 investigate).

 Message Format (RFC 822)
 ===
 A whole new beast to be conquered. Again I didn't have time to go
 through in detail. Will give an update by Monday evening if possible.

 Guys, is this too much time??? What is the deadline??? do we need this
 before ApacheCon ??

There's no need to get it implemented by 1.0 because I highly doubt
that we could test it extensively enough.

As for your research, it looks good. Let' concentrate on building a
good base of the implementations for the Message and the Store for
both POP3 and IMAP before we get into authentication, encryption and
the like. If we build a well designed base then extending it to handle
addition things will be much easier.

FYI: In addition to achieving a good grasp of how this architecture
will be composed, I've been looking more at the Message (and its
relation to the Activation Framework) and the IMAP related parts.

Bruce
--
perl -e 'print unpack(u30,D0G)[EMAIL 
PROTECTED]5R\F)R=6-E+G-N61ED\!G;6%I;\YC;VT*
);'

The Castor Project
http://www.castor.org/

Apache Geronimo
http://geronimo.apache.org/


Re: Who wants to write POP and IMAP transports? [status]

2005-12-05 Thread Dain Sundstrom

On Dec 5, 2005, at 11:15 AM, Bruce Snyder wrote:


As for your research, it looks good. Let' concentrate on building a
good base of the implementations for the Message and the Store for
both POP3 and IMAP before we get into authentication, encryption and
the like. If we build a well designed base then extending it to handle
addition things will be much easier.


Bruce, I think it would be cool if Rick does the SMTP auth and  
encryption stuff right away.  It should be orthogonal to the work you  
guys are doing on the inbound stuff.  Also, I think having a really  
good SMTP implementation is a hight priority as most J2EE apps only  
send email.


-dain


Re: Who wants to write POP and IMAP transports? [status]

2005-12-05 Thread Bruce Snyder
On 12/5/05, Dain Sundstrom [EMAIL PROTECTED] wrote:
 On Dec 5, 2005, at 11:15 AM, Bruce Snyder wrote:

  As for your research, it looks good. Let' concentrate on building a
  good base of the implementations for the Message and the Store for
  both POP3 and IMAP before we get into authentication, encryption and
  the like. If we build a well designed base then extending it to handle
  addition things will be much easier.

 Bruce, I think it would be cool if Rick does the SMTP auth and
 encryption stuff right away.  It should be orthogonal to the work you
 guys are doing on the inbound stuff.  Also, I think having a really
 good SMTP implementation is a hight priority as most J2EE apps only
 send email.

Sorry, I wasn't very clear there. Yes, I have no problem with
authentication on SMTP. WRT POP3, I see no point in tackling
authentication until a plain, vanilla version of the POP3 stuff is in
place and tested.

Bruce
--
perl -e 'print unpack(u30,D0G)[EMAIL 
PROTECTED]5R\F)R=6-E+G-N61ED\!G;6%I;\YC;VT*
);'

The Castor Project
http://www.castor.org/

Apache Geronimo
http://geronimo.apache.org/


Re: Who wants to write POP and IMAP transports? [status]

2005-12-05 Thread Bilal Bhatti
Bruce,

Can you share the resources you have found about IMAP/JavaMail etc. in
your research.  Let me know where I can help you with that. I'm not a mail
expert  but I will help where possible.

Thanks.

 On 12/5/05, Rajith Attapattu [EMAIL PROTECTED] wrote:
 Ok here is what I have right now for POP3.

 I have gone through the RFC 1939 in detail and here is the summary. I
 have also gone through the JavaMail API spec. Started a bit if coding.

 I can come with a basic POP3 implementation that connects, authenticates
 and list/retrieve/delete messages by Tuesday the earliest.

 Next on my list is message processing according to RFC 822.

 After that I will look into authentication.

 Is this timeline OK

 POP3 protocol stack
  I will start ASAP on the connection management and
 the mandatory POP3
 commands.
USER name   valid in the AUTHORIZATION state
  PASS string
  QUIT

  STATvalid in the TRANSACTION state
  LIST [msg]
  RETR msg
  DELE msg
  NOOP
  RSET
  QUIT


 Authentication
 == For now I will only work on USER/PASS, but some servers
 do not support
 plain text authentication.

 However I need to find out more details about the AUTH(RFC 1734) command
 which use encryption. Same thing is used for IMAP. (didn't have time to
 investigate).

 Message Format (RFC 822)
 == A whole new beast to be conquered. Again I
 didn't have time to go
 through in detail. Will give an update by Monday evening if possible.

 Guys, is this too much time??? What is the deadline??? do we need this
 before ApacheCon ??

 There's no need to get it implemented by 1.0 because I highly doubt
 that we could test it extensively enough.

 As for your research, it looks good. Let' concentrate on building a
 good base of the implementations for the Message and the Store for
 both POP3 and IMAP before we get into authentication, encryption and
 the like. If we build a well designed base then extending it to handle
 addition things will be much easier.

 FYI: In addition to achieving a good grasp of how this architecture
 will be composed, I've been looking more at the Message (and its
 relation to the Activation Framework) and the IMAP related parts.

 Bruce
 --
 perl -e 'print
 unpack(u30,D0G)[EMAIL PROTECTED]5R\F)R=6-E+G-N61ED\!G;6%I;\YC;VT*
 );'

 The Castor Project
 http://www.castor.org/

 Apache Geronimo
 http://geronimo.apache.org/



-- bilal

-
We act as though comfort and luxury were the chief requirements of life,
when all that we need to make us happy is something to be enthusiastic
about. - Einstein



Re: Who wants to write POP and IMAP transports? [status]

2005-12-05 Thread Bruce Snyder
On 12/5/05, Bilal Bhatti [EMAIL PROTECTED] wrote:

 Can you share the resources you have found about IMAP/JavaMail etc. in
 your research.  Let me know where I can help you with that. I'm not a mail
 expert  but I will help where possible.

The majority of the resources I've found I have already noted in the
discussions on the topic of POP and IMAP transports (i.e., JavaMail
spec, relevant RFCs).

Bruce
--
perl -e 'print unpack(u30,D0G)[EMAIL 
PROTECTED]5R\F)R=6-E+G-N61ED\!G;6%I;\YC;VT*
);'

The Castor Project
http://www.castor.org/

Apache Geronimo
http://geronimo.apache.org/


Re: Who wants to write POP and IMAP transports?

2005-12-04 Thread Geir Magnusson Jr.
one solution is to wait until CDDL binaries as officially blessed for  
apache distribution, and then just bundle the one's from Sun's  
Glassfish project, which are probably fairly well tested...


yes, this is more than a one person job :)

geir

On Dec 3, 2005, at 12:42 PM, Dain Sundstrom wrote:


Thanks Bruce!

Is anyone one else interested?  This is definitely more then a one  
person job.


-dain

On Dec 3, 2005, at 9:16 AM, Bruce Snyder wrote:


On 12/2/05, Dain Sundstrom [EMAIL PROTECTED] wrote:

We still need POP and IMAP transports for our JavaMail
implementation.  Do any of you have some POP or IMAP client code
sitting around, or would you like to write one?


I wish I had this code just lying around because there's a fair  
amount

of effort involved in going through the RFCs for each protocol and
modeling everything.

I started to look into this last night to try to guage the amount of
effort required because I've got some experience working fairly  
deeply
with IMAP in the past (see http://www.horde.org/imp/). But it's  
been a

while since I've dug into the RFCs related to mail protocols.

Below is my very rough map of what's needed:

The protocols stacks:
1) Socket-based connection objects for each protocol
2) Full authentication and crypto providers
3) The full suite of IMAP commands, responses, etc. for communicating
with the server
(I'm sure there's more that I'm overlooking here)

The transports:
1) A model of each message store
2) A model of each message type

And of course tests for everything ;-).

I'll try to get started on the IMAP side of things in the next day or
two, after I complete a book chapter ;-). Once that's complete I'll
see what I can do with the POP3 side.

Bruce
--
perl -e 'print unpack(u30,D0G)[EMAIL PROTECTED]5R\F)R=6-E+G-N61ED 
\!G;6%I;\YC;VT*

);'

The Castor Project
http://www.castor.org/

Apache Geronimo
http://geronimo.apache.org/




--
Geir Magnusson Jr  +1-203-665-6437
[EMAIL PROTECTED]




Re: Who wants to write POP and IMAP transports?

2005-12-04 Thread Geir Magnusson Jr.
Actually, thinking about it for a few seconds further, doesn't the  
JAMES project already have code for this?  My foggy memory recalls  
that I've used JAMES to talk to an exchange server using IMAP


geir

On Dec 3, 2005, at 12:42 PM, Dain Sundstrom wrote:


Thanks Bruce!

Is anyone one else interested?  This is definitely more then a one  
person job.


-dain

On Dec 3, 2005, at 9:16 AM, Bruce Snyder wrote:


On 12/2/05, Dain Sundstrom [EMAIL PROTECTED] wrote:

We still need POP and IMAP transports for our JavaMail
implementation.  Do any of you have some POP or IMAP client code
sitting around, or would you like to write one?


I wish I had this code just lying around because there's a fair  
amount

of effort involved in going through the RFCs for each protocol and
modeling everything.

I started to look into this last night to try to guage the amount of
effort required because I've got some experience working fairly  
deeply
with IMAP in the past (see http://www.horde.org/imp/). But it's  
been a

while since I've dug into the RFCs related to mail protocols.

Below is my very rough map of what's needed:

The protocols stacks:
1) Socket-based connection objects for each protocol
2) Full authentication and crypto providers
3) The full suite of IMAP commands, responses, etc. for communicating
with the server
(I'm sure there's more that I'm overlooking here)

The transports:
1) A model of each message store
2) A model of each message type

And of course tests for everything ;-).

I'll try to get started on the IMAP side of things in the next day or
two, after I complete a book chapter ;-). Once that's complete I'll
see what I can do with the POP3 side.

Bruce
--
perl -e 'print unpack(u30,D0G)[EMAIL PROTECTED]5R\F)R=6-E+G-N61ED 
\!G;6%I;\YC;VT*

);'

The Castor Project
http://www.castor.org/

Apache Geronimo
http://geronimo.apache.org/




--
Geir Magnusson Jr  +1-203-665-6437
[EMAIL PROTECTED]




RE: Who wants to write POP and IMAP transports? [status]

2005-12-04 Thread Rajith Attapattu
Ok here is what I have right now for POP3.

I have gone through the RFC 1939 in detail and here is the summary. I
have also gone through the JavaMail API spec. Started a bit if coding.

I can come with a basic POP3 implementation that connects, authenticates
and list/retrieve/delete messages by Tuesday the earliest.

Next on my list is message processing according to RFC 822.

After that I will look into authentication.

Is this timeline OK

POP3 protocol stack
=
I will start ASAP on the connection management and the mandatory POP3
commands.
   USER name   valid in the AUTHORIZATION state
 PASS string
 QUIT

 STATvalid in the TRANSACTION state
 LIST [msg]
 RETR msg
 DELE msg
 NOOP
 RSET
 QUIT 


Authentication
===
For now I will only work on USER/PASS, but some servers do not support
plain text authentication.

However I need to find out more details about the AUTH(RFC 1734) command
which use encryption. Same thing is used for IMAP. (didn't have time to
investigate).

Message Format (RFC 822)
===
A whole new beast to be conquered. Again I didn't have time to go
through in detail. Will give an update by Monday evening if possible.

Guys, is this too much time??? What is the deadline??? do we need this
before ApacheCon ??

Regards,
Rajith.
 

-Original Message-
From: Bruce Snyder [mailto:[EMAIL PROTECTED] 
Sent: Saturday, December 03, 2005 8:25 PM
To: dev@geronimo.apache.org
Subject: Re: Who wants to write POP and IMAP transports?

On 12/3/05, Rajith Attapattu [EMAIL PROTECTED] wrote:

 I guess we can later move it to it's own sub-project so other Apache
 users can use it as a standalone library. Just so that they don't go
 through the same trouble we are experiencing.

Yes, absolutely. The goal is to offer implementations of transports
for IMAP, POP3, SMTP and maybe even Mbox and Maildir eventually.

Bruce
--
perl -e 'print
unpack(u30,D0G)[EMAIL PROTECTED]5R\F)R=6-E+G-N61ED\!G;6%I;\YC;VT*
);'

The Castor Project
http://www.castor.org/

Apache Geronimo
http://geronimo.apache.org/


RE: Who wants to write POP and IMAP transports?

2005-12-04 Thread Rajith Attapattu
James crossed my mind to, but it's a server implementation for POP3,
IMAP ect.

James is actually a mail server, but what we need is mail client. I
really wish James had a client project as sub project or something.

-Original Message-
From: Geir Magnusson Jr. [mailto:[EMAIL PROTECTED] 
Sent: Sunday, December 04, 2005 11:24 PM
To: dev@geronimo.apache.org
Subject: Re: Who wants to write POP and IMAP transports?

Actually, thinking about it for a few seconds further, doesn't the  
JAMES project already have code for this?  My foggy memory recalls  
that I've used JAMES to talk to an exchange server using IMAP

geir

On Dec 3, 2005, at 12:42 PM, Dain Sundstrom wrote:

 Thanks Bruce!

 Is anyone one else interested?  This is definitely more then a one  
 person job.

 -dain

 On Dec 3, 2005, at 9:16 AM, Bruce Snyder wrote:

 On 12/2/05, Dain Sundstrom [EMAIL PROTECTED] wrote:
 We still need POP and IMAP transports for our JavaMail
 implementation.  Do any of you have some POP or IMAP client code
 sitting around, or would you like to write one?

 I wish I had this code just lying around because there's a fair  
 amount
 of effort involved in going through the RFCs for each protocol and
 modeling everything.

 I started to look into this last night to try to guage the amount of
 effort required because I've got some experience working fairly  
 deeply
 with IMAP in the past (see http://www.horde.org/imp/). But it's  
 been a
 while since I've dug into the RFCs related to mail protocols.

 Below is my very rough map of what's needed:

 The protocols stacks:
 1) Socket-based connection objects for each protocol
 2) Full authentication and crypto providers
 3) The full suite of IMAP commands, responses, etc. for communicating
 with the server
 (I'm sure there's more that I'm overlooking here)

 The transports:
 1) A model of each message store
 2) A model of each message type

 And of course tests for everything ;-).

 I'll try to get started on the IMAP side of things in the next day or
 two, after I complete a book chapter ;-). Once that's complete I'll
 see what I can do with the POP3 side.

 Bruce
 --
 perl -e 'print unpack(u30,D0G)[EMAIL PROTECTED]5R\F)R=6-E+G-N61ED 
 \!G;6%I;\YC;VT*
 );'

 The Castor Project
 http://www.castor.org/

 Apache Geronimo
 http://geronimo.apache.org/


-- 
Geir Magnusson Jr  +1-203-665-6437
[EMAIL PROTECTED]




RE: Who wants to write POP and IMAP transports? [status]

2005-12-04 Thread Rajith Attapattu
Is anybody willing to tackle the Message (which conforms to
specifications RFC822 and RFC2045) then I can concentrate on POP3 and
Bruce on IMAP.

Since this Message is a beast on it's own it maybe too much for one
person if the timeline is too short.

At least if somebody can analyze and then summarize (reading the whole
thing will kill you :) ) it, then I can code the Message thingy.

Any volunteers ???

Regards,

Rajith Attapattu.

-Original Message-
From: Rajith Attapattu [mailto:[EMAIL PROTECTED] 
Sent: Monday, December 05, 2005 12:10 AM
To: dev@geronimo.apache.org
Subject: RE: Who wants to write POP and IMAP transports? [status]

Ok here is what I have right now for POP3.

I have gone through the RFC 1939 in detail and here is the summary. I
have also gone through the JavaMail API spec. Started a bit if coding.

I can come with a basic POP3 implementation that connects, authenticates
and list/retrieve/delete messages by Tuesday the earliest.

Next on my list is message processing according to RFC 822.

After that I will look into authentication.

Is this timeline OK

POP3 protocol stack
=
I will start ASAP on the connection management and the mandatory POP3
commands.
   USER name   valid in the AUTHORIZATION state
 PASS string
 QUIT

 STATvalid in the TRANSACTION state
 LIST [msg]
 RETR msg
 DELE msg
 NOOP
 RSET
 QUIT 


Authentication
===
For now I will only work on USER/PASS, but some servers do not support
plain text authentication.

However I need to find out more details about the AUTH(RFC 1734) command
which use encryption. Same thing is used for IMAP. (didn't have time to
investigate).

Message Format (RFC 822)
===
A whole new beast to be conquered. Again I didn't have time to go
through in detail. Will give an update by Monday evening if possible.

Guys, is this too much time??? What is the deadline??? do we need this
before ApacheCon ??

Regards,
Rajith.
 

-Original Message-
From: Bruce Snyder [mailto:[EMAIL PROTECTED] 
Sent: Saturday, December 03, 2005 8:25 PM
To: dev@geronimo.apache.org
Subject: Re: Who wants to write POP and IMAP transports?

On 12/3/05, Rajith Attapattu [EMAIL PROTECTED] wrote:

 I guess we can later move it to it's own sub-project so other Apache
 users can use it as a standalone library. Just so that they don't go
 through the same trouble we are experiencing.

Yes, absolutely. The goal is to offer implementations of transports
for IMAP, POP3, SMTP and maybe even Mbox and Maildir eventually.

Bruce
--
perl -e 'print
unpack(u30,D0G)[EMAIL PROTECTED]5R\F)R=6-E+G-N61ED\!G;6%I;\YC;VT*
);'

The Castor Project
http://www.castor.org/

Apache Geronimo
http://geronimo.apache.org/


Re: Who wants to write POP and IMAP transports?

2005-12-03 Thread Bruce Snyder
On 12/2/05, Dain Sundstrom [EMAIL PROTECTED] wrote:
 We still need POP and IMAP transports for our JavaMail
 implementation.  Do any of you have some POP or IMAP client code
 sitting around, or would you like to write one?

I wish I had this code just lying around because there's a fair amount
of effort involved in going through the RFCs for each protocol and
modeling everything.

I started to look into this last night to try to guage the amount of
effort required because I've got some experience working fairly deeply
with IMAP in the past (see http://www.horde.org/imp/). But it's been a
while since I've dug into the RFCs related to mail protocols.

Below is my very rough map of what's needed:

The protocols stacks:
1) Socket-based connection objects for each protocol
2) Full authentication and crypto providers
3) The full suite of IMAP commands, responses, etc. for communicating
with the server
(I'm sure there's more that I'm overlooking here)

The transports:
1) A model of each message store
2) A model of each message type

And of course tests for everything ;-).

I'll try to get started on the IMAP side of things in the next day or
two, after I complete a book chapter ;-). Once that's complete I'll
see what I can do with the POP3 side.

Bruce
--
perl -e 'print unpack(u30,D0G)[EMAIL 
PROTECTED]5R\F)R=6-E+G-N61ED\!G;6%I;\YC;VT*
);'

The Castor Project
http://www.castor.org/

Apache Geronimo
http://geronimo.apache.org/


Re: Who wants to write POP and IMAP transports?

2005-12-03 Thread Dain Sundstrom

Thanks Bruce!

Is anyone one else interested?  This is definitely more then a one  
person job.


-dain

On Dec 3, 2005, at 9:16 AM, Bruce Snyder wrote:


On 12/2/05, Dain Sundstrom [EMAIL PROTECTED] wrote:

We still need POP and IMAP transports for our JavaMail
implementation.  Do any of you have some POP or IMAP client code
sitting around, or would you like to write one?


I wish I had this code just lying around because there's a fair amount
of effort involved in going through the RFCs for each protocol and
modeling everything.

I started to look into this last night to try to guage the amount of
effort required because I've got some experience working fairly deeply
with IMAP in the past (see http://www.horde.org/imp/). But it's been a
while since I've dug into the RFCs related to mail protocols.

Below is my very rough map of what's needed:

The protocols stacks:
1) Socket-based connection objects for each protocol
2) Full authentication and crypto providers
3) The full suite of IMAP commands, responses, etc. for communicating
with the server
(I'm sure there's more that I'm overlooking here)

The transports:
1) A model of each message store
2) A model of each message type

And of course tests for everything ;-).

I'll try to get started on the IMAP side of things in the next day or
two, after I complete a book chapter ;-). Once that's complete I'll
see what I can do with the POP3 side.

Bruce
--
perl -e 'print unpack(u30,D0G)[EMAIL PROTECTED]5R\F)R=6-E+G-N61ED\! 
G;6%I;\YC;VT*

);'

The Castor Project
http://www.castor.org/

Apache Geronimo
http://geronimo.apache.org/




RE: Who wants to write POP and IMAP transports?

2005-12-03 Thread Rajith Attapattu

I am willing to help. But I may not have the time to do the research and
go through all the specs in detail (Unfortunately I can only do stuff at
home at night and during weekends)

So if Bruce can help me with some pointers and simple documentation I
can start looking in to POP3. (sorry not very familiar with IMAP side,
so not realistic helping in that area)

So if Bruce can send me the links/docs ASAP (so I can make full use of
the weekend), I can get started right away.

I am looking for more specific info on protocol stacks and the models
(going by the guidelines provided by bruce)

Rajith.

-Original Message-
From: Dain Sundstrom [mailto:[EMAIL PROTECTED] 
Sent: Saturday, December 03, 2005 12:42 PM
To: dev@geronimo.apache.org
Subject: Re: Who wants to write POP and IMAP transports?

Thanks Bruce!

Is anyone one else interested?  This is definitely more then a one  
person job.

-dain

On Dec 3, 2005, at 9:16 AM, Bruce Snyder wrote:

 On 12/2/05, Dain Sundstrom [EMAIL PROTECTED] wrote:
 We still need POP and IMAP transports for our JavaMail
 implementation.  Do any of you have some POP or IMAP client code
 sitting around, or would you like to write one?

 I wish I had this code just lying around because there's a fair amount
 of effort involved in going through the RFCs for each protocol and
 modeling everything.

 I started to look into this last night to try to guage the amount of
 effort required because I've got some experience working fairly deeply
 with IMAP in the past (see http://www.horde.org/imp/). But it's been a
 while since I've dug into the RFCs related to mail protocols.

 Below is my very rough map of what's needed:

 The protocols stacks:
 1) Socket-based connection objects for each protocol
 2) Full authentication and crypto providers
 3) The full suite of IMAP commands, responses, etc. for communicating
 with the server
 (I'm sure there's more that I'm overlooking here)

 The transports:
 1) A model of each message store
 2) A model of each message type

 And of course tests for everything ;-).

 I'll try to get started on the IMAP side of things in the next day or
 two, after I complete a book chapter ;-). Once that's complete I'll
 see what I can do with the POP3 side.

 Bruce
 --
 perl -e 'print unpack(u30,D0G)[EMAIL PROTECTED]5R\F)R=6-E+G-N61ED\! 
 G;6%I;\YC;VT*
 );'

 The Castor Project
 http://www.castor.org/

 Apache Geronimo
 http://geronimo.apache.org/



RE: Who wants to write POP and IMAP transports?

2005-12-03 Thread Rajith Attapattu
Hey Dain/Bruce,

Do we really need to write it ourselves??

The following link includes a few open source implementations of email
clients. If we can reuse them, then the effort can be used in some other
area.

http://java-source.net/open-source/mail-clients

Regards,

Rajith.

-Original Message-
From: Rajith Attapattu [mailto:[EMAIL PROTECTED] 
Sent: Saturday, December 03, 2005 1:31 PM
To: dev@geronimo.apache.org
Subject: RE: Who wants to write POP and IMAP transports?


I am willing to help. But I may not have the time to do the research and
go through all the specs in detail (Unfortunately I can only do stuff at
home at night and during weekends)

So if Bruce can help me with some pointers and simple documentation I
can start looking in to POP3. (sorry not very familiar with IMAP side,
so not realistic helping in that area)

So if Bruce can send me the links/docs ASAP (so I can make full use of
the weekend), I can get started right away.

I am looking for more specific info on protocol stacks and the models
(going by the guidelines provided by bruce)

Rajith.

-Original Message-
From: Dain Sundstrom [mailto:[EMAIL PROTECTED] 
Sent: Saturday, December 03, 2005 12:42 PM
To: dev@geronimo.apache.org
Subject: Re: Who wants to write POP and IMAP transports?

Thanks Bruce!

Is anyone one else interested?  This is definitely more then a one  
person job.

-dain

On Dec 3, 2005, at 9:16 AM, Bruce Snyder wrote:

 On 12/2/05, Dain Sundstrom [EMAIL PROTECTED] wrote:
 We still need POP and IMAP transports for our JavaMail
 implementation.  Do any of you have some POP or IMAP client code
 sitting around, or would you like to write one?

 I wish I had this code just lying around because there's a fair amount
 of effort involved in going through the RFCs for each protocol and
 modeling everything.

 I started to look into this last night to try to guage the amount of
 effort required because I've got some experience working fairly deeply
 with IMAP in the past (see http://www.horde.org/imp/). But it's been a
 while since I've dug into the RFCs related to mail protocols.

 Below is my very rough map of what's needed:

 The protocols stacks:
 1) Socket-based connection objects for each protocol
 2) Full authentication and crypto providers
 3) The full suite of IMAP commands, responses, etc. for communicating
 with the server
 (I'm sure there's more that I'm overlooking here)

 The transports:
 1) A model of each message store
 2) A model of each message type

 And of course tests for everything ;-).

 I'll try to get started on the IMAP side of things in the next day or
 two, after I complete a book chapter ;-). Once that's complete I'll
 see what I can do with the POP3 side.

 Bruce
 --
 perl -e 'print unpack(u30,D0G)[EMAIL PROTECTED]5R\F)R=6-E+G-N61ED\! 
 G;6%I;\YC;VT*
 );'

 The Castor Project
 http://www.castor.org/

 Apache Geronimo
 http://geronimo.apache.org/



Re: Who wants to write POP and IMAP transports?

2005-12-03 Thread Dain Sundstrom
This is part of our clean room implementation of JavaMail, so any of  
the mail client just uses JavaMail won't help us.


This one looks promising http://java-source.net/open-source/mail- 
clients/snowmail as it claims that all protocols have been  
reimplemented from scratch (Mime, POP, SMTP) and it is Freeware.


Maybe we can get them to extract the protocols, or donate them to  
Geronimo.  Bruce do you have time to pursue this?


-dain

On Dec 3, 2005, at 10:44 AM, Rajith Attapattu wrote:


Hey Dain/Bruce,

Do we really need to write it ourselves??

The following link includes a few open source implementations of email
clients. If we can reuse them, then the effort can be used in some  
other

area.

http://java-source.net/open-source/mail-clients

Regards,

Rajith.

-Original Message-
From: Rajith Attapattu [mailto:[EMAIL PROTECTED]
Sent: Saturday, December 03, 2005 1:31 PM
To: dev@geronimo.apache.org
Subject: RE: Who wants to write POP and IMAP transports?


I am willing to help. But I may not have the time to do the  
research and
go through all the specs in detail (Unfortunately I can only do  
stuff at

home at night and during weekends)

So if Bruce can help me with some pointers and simple documentation I
can start looking in to POP3. (sorry not very familiar with IMAP side,
so not realistic helping in that area)

So if Bruce can send me the links/docs ASAP (so I can make full use of
the weekend), I can get started right away.

I am looking for more specific info on protocol stacks and the models
(going by the guidelines provided by bruce)

Rajith.

-Original Message-
From: Dain Sundstrom [mailto:[EMAIL PROTECTED]
Sent: Saturday, December 03, 2005 12:42 PM
To: dev@geronimo.apache.org
Subject: Re: Who wants to write POP and IMAP transports?

Thanks Bruce!

Is anyone one else interested?  This is definitely more then a one
person job.

-dain

On Dec 3, 2005, at 9:16 AM, Bruce Snyder wrote:


On 12/2/05, Dain Sundstrom [EMAIL PROTECTED] wrote:

We still need POP and IMAP transports for our JavaMail
implementation.  Do any of you have some POP or IMAP client code
sitting around, or would you like to write one?


I wish I had this code just lying around because there's a fair  
amount

of effort involved in going through the RFCs for each protocol and
modeling everything.

I started to look into this last night to try to guage the amount of
effort required because I've got some experience working fairly  
deeply
with IMAP in the past (see http://www.horde.org/imp/). But it's  
been a

while since I've dug into the RFCs related to mail protocols.

Below is my very rough map of what's needed:

The protocols stacks:
1) Socket-based connection objects for each protocol
2) Full authentication and crypto providers
3) The full suite of IMAP commands, responses, etc. for communicating
with the server
(I'm sure there's more that I'm overlooking here)

The transports:
1) A model of each message store
2) A model of each message type

And of course tests for everything ;-).

I'll try to get started on the IMAP side of things in the next day or
two, after I complete a book chapter ;-). Once that's complete I'll
see what I can do with the POP3 side.

Bruce
--
perl -e 'print unpack(u30,D0G)[EMAIL PROTECTED]5R\F)R=6-E+G-N61ED\!
G;6%I;\YC;VT*
);'

The Castor Project
http://www.castor.org/

Apache Geronimo
http://geronimo.apache.org/






Re: Who wants to write POP and IMAP transports?

2005-12-03 Thread Bruce Snyder
On 12/3/05, Dain Sundstrom [EMAIL PROTECTED] wrote:
 This is part of our clean room implementation of JavaMail, so any of
 the mail client just uses JavaMail won't help us.

 This one looks promising http://java-source.net/open-source/mail-
 clients/snowmail as it claims that all protocols have been
 reimplemented from scratch (Mime, POP, SMTP) and it is Freeware.

 Maybe we can get them to extract the protocols, or donate them to
 Geronimo.  Bruce do you have time to pursue this?

Yep, I'm already all over this because I've done a fair amount of
research into these items. I'll respond with a full breakdown this
afternoon.

Bruce
--
perl -e 'print unpack(u30,D0G)[EMAIL 
PROTECTED]5R\F)R=6-E+G-N61ED\!G;6%I;\YC;VT*
);'

The Castor Project
http://www.castor.org/

Apache Geronimo
http://geronimo.apache.org/


RE: Who wants to write POP and IMAP transports?

2005-12-03 Thread Rajith Attapattu
I will wait for the breakdown from Bruce and let you guys know on what
areas I can help.

Looking forward to see the list from Bruce.

Rajith.

-Original Message-
From: Bruce Snyder [mailto:[EMAIL PROTECTED] 
Sent: Saturday, December 03, 2005 3:52 PM
To: dev@geronimo.apache.org
Subject: Re: Who wants to write POP and IMAP transports?

On 12/3/05, Dain Sundstrom [EMAIL PROTECTED] wrote:
 This is part of our clean room implementation of JavaMail, so any of
 the mail client just uses JavaMail won't help us.

 This one looks promising http://java-source.net/open-source/mail-
 clients/snowmail as it claims that all protocols have been
 reimplemented from scratch (Mime, POP, SMTP) and it is Freeware.

 Maybe we can get them to extract the protocols, or donate them to
 Geronimo.  Bruce do you have time to pursue this?

Yep, I'm already all over this because I've done a fair amount of
research into these items. I'll respond with a full breakdown this
afternoon.

Bruce
--
perl -e 'print
unpack(u30,D0G)[EMAIL PROTECTED]5R\F)R=6-E+G-N61ED\!G;6%I;\YC;VT*
);'

The Castor Project
http://www.castor.org/

Apache Geronimo
http://geronimo.apache.org/


Re: Who wants to write POP and IMAP transports?

2005-12-03 Thread Bruce Snyder
On 12/3/05, Rajith Attapattu [EMAIL PROTECTED] wrote:

 Do we really need to write it ourselves??

 The following link includes a few open source implementations of email
 clients. If we can reuse them, then the effort can be used in some other
 area.

 http://java-source.net/open-source/mail-clients

Below is a quick licensing breakdown of the projects listed on that page:

Columba (http://columba.sf.net/) == Mozilla Public License
Polarbar (http://www.polarbar.org/) == public domain (?)
ICEMail (http://www.icemail.org/) == GPL
Pooka (http://www.suberic.net/pooka/) == GPL
Grendel (http://www.mozilla.org/projects/grendel/) == Mozilla Public License
Snowmail (http://www.snowraver.org/java/SnowMail/index.htm) == public domain (?)

So this narrows the field to four:

- Columba: Doesn't make use of JavaMail (big problem!) so everything
is very proprietary
- Polarbar: No source code
- Grendel: Grendel has been dormant for a long time and was just
recently restarted;
- SnowMail: Doesn't make use of JavaMail (big problem!) so everything
is very proprietary; it doesn't speak IMAP at all

Out of all of this, everything is a non-option except for Grendel. So
then I took a deeper look at Grendel and here's what I found:

Grendel does make use of JavaMail which is the whole point of this
research. There is a storage package and it has a message model based
on the JavaMail Message object, but this is where the good news ends.
The whole project is very UI application focused (e.g., prefs, mime,
filters, search, addressbook, UI, widgets). There are no broken out
transports so any IMAP that it might speak (and I don't think it
supports much, if anything in the IMAP protocol) the POP3 and IMAP
code is very much spaghetti'd together. What's more is that some of
the classes import classes from the com.sun.mail.* package (bad,
bad!). In addition, Grendel's manner of constructing a MimeMessage
seems to be very tightly tied to it's UI implementation - no
separation of concerns (big problem!).

My conclusion was that Grendel is not usable either. This narrows the
field to zero. There are some very good GPL implementations of
everything we need, but alas, the GPL/AL incompatibility kicks in
which leaves us to build our own implementation.

Bruce
--
perl -e 'print unpack(u30,D0G)[EMAIL 
PROTECTED]5R\F)R=6-E+G-N61ED\!G;6%I;\YC;VT*
);'

The Castor Project
http://www.castor.org/

Apache Geronimo
http://geronimo.apache.org/


RE: Who wants to write POP and IMAP transports?

2005-12-03 Thread Rajith Attapattu
Thanks Bruce for the update and so we are back at square one. I will try
to look at the POP3 side as much as I can and I may need some help.

I will start today on reading the specs.

Rajith.

-Original Message-
From: Bruce Snyder [mailto:[EMAIL PROTECTED] 
Sent: Saturday, December 03, 2005 7:11 PM
To: dev@geronimo.apache.org
Subject: Re: Who wants to write POP and IMAP transports?

On 12/3/05, Rajith Attapattu [EMAIL PROTECTED] wrote:

 Do we really need to write it ourselves??

 The following link includes a few open source implementations of email
 clients. If we can reuse them, then the effort can be used in some
other
 area.

 http://java-source.net/open-source/mail-clients

Below is a quick licensing breakdown of the projects listed on that
page:

Columba (http://columba.sf.net/) == Mozilla Public License
Polarbar (http://www.polarbar.org/) == public domain (?)
ICEMail (http://www.icemail.org/) == GPL
Pooka (http://www.suberic.net/pooka/) == GPL
Grendel (http://www.mozilla.org/projects/grendel/) == Mozilla Public
License
Snowmail (http://www.snowraver.org/java/SnowMail/index.htm) == public
domain (?)

So this narrows the field to four:

- Columba: Doesn't make use of JavaMail (big problem!) so everything
is very proprietary
- Polarbar: No source code
- Grendel: Grendel has been dormant for a long time and was just
recently restarted;
- SnowMail: Doesn't make use of JavaMail (big problem!) so everything
is very proprietary; it doesn't speak IMAP at all

Out of all of this, everything is a non-option except for Grendel. So
then I took a deeper look at Grendel and here's what I found:

Grendel does make use of JavaMail which is the whole point of this
research. There is a storage package and it has a message model based
on the JavaMail Message object, but this is where the good news ends.
The whole project is very UI application focused (e.g., prefs, mime,
filters, search, addressbook, UI, widgets). There are no broken out
transports so any IMAP that it might speak (and I don't think it
supports much, if anything in the IMAP protocol) the POP3 and IMAP
code is very much spaghetti'd together. What's more is that some of
the classes import classes from the com.sun.mail.* package (bad,
bad!). In addition, Grendel's manner of constructing a MimeMessage
seems to be very tightly tied to it's UI implementation - no
separation of concerns (big problem!).

My conclusion was that Grendel is not usable either. This narrows the
field to zero. There are some very good GPL implementations of
everything we need, but alas, the GPL/AL incompatibility kicks in
which leaves us to build our own implementation.

Bruce
--
perl -e 'print
unpack(u30,D0G)[EMAIL PROTECTED]5R\F)R=6-E+G-N61ED\!G;6%I;\YC;VT*
);'

The Castor Project
http://www.castor.org/

Apache Geronimo
http://geronimo.apache.org/


RE: Who wants to write POP and IMAP transports?

2005-12-03 Thread Rajith Attapattu
I guess we can later move it to it's own sub-project so other Apache
users can use it as a standalone library. Just so that they don't go
through the same trouble we are experiencing.

-Original Message-
From: Rajith Attapattu [mailto:[EMAIL PROTECTED] 
Sent: Saturday, December 03, 2005 7:58 PM
To: dev@geronimo.apache.org
Subject: RE: Who wants to write POP and IMAP transports?

Thanks Bruce for the update and so we are back at square one. I will try
to look at the POP3 side as much as I can and I may need some help.

I will start today on reading the specs.

Rajith.

-Original Message-
From: Bruce Snyder [mailto:[EMAIL PROTECTED] 
Sent: Saturday, December 03, 2005 7:11 PM
To: dev@geronimo.apache.org
Subject: Re: Who wants to write POP and IMAP transports?

On 12/3/05, Rajith Attapattu [EMAIL PROTECTED] wrote:

 Do we really need to write it ourselves??

 The following link includes a few open source implementations of email
 clients. If we can reuse them, then the effort can be used in some
other
 area.

 http://java-source.net/open-source/mail-clients

Below is a quick licensing breakdown of the projects listed on that
page:

Columba (http://columba.sf.net/) == Mozilla Public License
Polarbar (http://www.polarbar.org/) == public domain (?)
ICEMail (http://www.icemail.org/) == GPL
Pooka (http://www.suberic.net/pooka/) == GPL
Grendel (http://www.mozilla.org/projects/grendel/) == Mozilla Public
License
Snowmail (http://www.snowraver.org/java/SnowMail/index.htm) == public
domain (?)

So this narrows the field to four:

- Columba: Doesn't make use of JavaMail (big problem!) so everything
is very proprietary
- Polarbar: No source code
- Grendel: Grendel has been dormant for a long time and was just
recently restarted;
- SnowMail: Doesn't make use of JavaMail (big problem!) so everything
is very proprietary; it doesn't speak IMAP at all

Out of all of this, everything is a non-option except for Grendel. So
then I took a deeper look at Grendel and here's what I found:

Grendel does make use of JavaMail which is the whole point of this
research. There is a storage package and it has a message model based
on the JavaMail Message object, but this is where the good news ends.
The whole project is very UI application focused (e.g., prefs, mime,
filters, search, addressbook, UI, widgets). There are no broken out
transports so any IMAP that it might speak (and I don't think it
supports much, if anything in the IMAP protocol) the POP3 and IMAP
code is very much spaghetti'd together. What's more is that some of
the classes import classes from the com.sun.mail.* package (bad,
bad!). In addition, Grendel's manner of constructing a MimeMessage
seems to be very tightly tied to it's UI implementation - no
separation of concerns (big problem!).

My conclusion was that Grendel is not usable either. This narrows the
field to zero. There are some very good GPL implementations of
everything we need, but alas, the GPL/AL incompatibility kicks in
which leaves us to build our own implementation.

Bruce
--
perl -e 'print
unpack(u30,D0G)[EMAIL PROTECTED]5R\F)R=6-E+G-N61ED\!G;6%I;\YC;VT*
);'

The Castor Project
http://www.castor.org/

Apache Geronimo
http://geronimo.apache.org/


Re: Who wants to write POP and IMAP transports?

2005-12-03 Thread Bruce Snyder
On 12/3/05, Rajith Attapattu [EMAIL PROTECTED] wrote:

 Thanks Bruce for the update and so we are back at square one. I will try
 to look at the POP3 side as much as I can and I may need some help.

Great! If we run into issues we can put our heads together.

 I will start today on reading the specs.

Pay attention to the JavaMail 1.2 spec with the change notes for 1.3
(http://java.sun.com/products/javamail/JavaMail-1.3-changes.txt). In
addition, POP3 is defined by RFC 1939
(http://www.faqs.org/rfcs/rfc1939.html). This RFC will make reference
to many other RFCs that you'll wind up having to read at least
partially.

Bruce
--
perl -e 'print unpack(u30,D0G)[EMAIL 
PROTECTED]5R\F)R=6-E+G-N61ED\!G;6%I;\YC;VT*
);'

The Castor Project
http://www.castor.org/

Apache Geronimo
http://geronimo.apache.org/


Re: Who wants to write POP and IMAP transports?

2005-12-03 Thread Bruce Snyder
On 12/3/05, Rajith Attapattu [EMAIL PROTECTED] wrote:

 I guess we can later move it to it's own sub-project so other Apache
 users can use it as a standalone library. Just so that they don't go
 through the same trouble we are experiencing.

Yes, absolutely. The goal is to offer implementations of transports
for IMAP, POP3, SMTP and maybe even Mbox and Maildir eventually.

Bruce
--
perl -e 'print unpack(u30,D0G)[EMAIL 
PROTECTED]5R\F)R=6-E+G-N61ED\!G;6%I;\YC;VT*
);'

The Castor Project
http://www.castor.org/

Apache Geronimo
http://geronimo.apache.org/


Re: Who wants to write POP and IMAP transports?

2005-12-03 Thread Dain Sundstrom

On Dec 3, 2005, at 4:11 PM, Bruce Snyder wrote:


- SnowMail: Doesn't make use of JavaMail (big problem!) so everything
is very proprietary; it doesn't speak IMAP at all


Actually I think it is better that SnotMail doesn't use JavaMail at  
all.  The mean they have a working POP implementation where the other  
ones rely in the implementation from Sun.  It may be possible to  
extract their POP implementation in massage it into a JavaMail  
plugin.  Alternatively, POP could be so simple that it is better to  
write one from scratch ourselves.


BTW if you guys really get into this, you should take a look at our  
SMTP implementation.  It needs auth and TLS support.


-dain