You are viewing a plain text version of this content. The canonical link for it is here.
Posted to server-user@james.apache.org by Raghavendra Setty <ra...@tarangtech.com> on 2006/08/28 13:45:10 UTC
Sent items facility in JAMES
Hi all,
I am using javamail API to retrieve the inbox mails of a particular user
from JAMES as below:
Session session = Session.getInstance(props);
store = session.getStore("pop3");
store.connect("localhost", "blue", "blue");
root = store.getDefaultFolder();
inbox = root.getFolder("inbox");
inbox.open(Folder.READ_WRITE);
Message[] msgs = inbox.getMessages(); then
for (int i = 0; i < msgs.length; i++)
{
MimeMessage msg = (MimeMessage)msgs[i];
msg.getFrom()[0], msg.getSubject(), msg.getContent() ......
}
Can you guys suggest is there any functionality which supports the "Sent
Item"? If not please guide me how can i achieve this.
Thanks in advance,
Rag Setty
This e-mail and any files transmitted with it are for the sole use of the intended recipient(s) and may contain confidential and privileged information. If you are not the intended recipient or received it in error, please contact the sender by reply e-mail and destroy all copies of the original message. Please do not copy it for any purpose or disclose its contents.
Copyright Tarang Software Technologies Pvt. Ltd. 2004. All rights Reserved
RE: Sent items facility in JAMES
Posted by Raghavendra Setty <ra...@tarangtech.com>.
Noel,
Can you please share the right approach for building "Sent Items" and
"Read / Unread" feature when i am using James-POP3.
Please do the needful.
Thanks in advance,
Rag Setty
On Wed, 2006-10-04 at 23:50 -0400, Noel J. Bergman wrote:
> > When we say "inbox.getMessages()", (using JavaMail) i think, james runs
> > a query on table "inbox" and gives it to JavaMail API based on the
> > "repository_name" column (as defined sqlResources.xml). This is actually
> > an array of java.mail.Message.
>
> JAMES does not use JavaMail for storage (it is bad enough for what we do use
> it for). In fact, with a wee bit of work, JavaMail will be entirely removed
> from the POP3 codepath.
>
> --- Noel
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
> For additional commands, e-mail: server-dev-help@james.apache.org
>
>
--
Rag Setty
This e-mail and any files transmitted with it are for the sole use of the intended recipient(s) and may contain confidential and privileged information. If you are not the intended recipient or received it in error, please contact the sender by reply e-mail and destroy all copies of the original message. Please do not copy it for any purpose or disclose its contents.
Copyright Tarang Software Technologies Pvt. Ltd. 2004. All rights Reserved
Re: Sent items facility in JAMES
Posted by Danny Angus <da...@gmail.com>.
On 05/10/06, Raghavendra Setty <ra...@tarangtech.com> wrote:
> Hi,
>
> Can you please share some thought on how can i do these two (sent item
> and read/unread) at client side if not at James side? (may be the
> approach)
You use UIDL to get the ID's of the messages and maintain a local list
of states of messages, so "marking a message unread" doesn't need the
server, it just uses the local list.
Sent items is usually just a locally held copy of a message which has
been sucessfully sent to the first mailserver. If it doen;t get any
further you get a delivery status notification (DSN) email.
d.
---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org
Re: Sent items facility in JAMES
Posted by Joachim Draeger <jd...@joachim-draeger.de>.
hi!
Am Donnerstag, den 05.10.2006, 11:42 +0530 schrieb Raghavendra Setty:
> Can you please share some thought on how can i do these two (sent item
> and read/unread) at client side if not at James side? (may be the
> approach)
For using read/unread and sent-item supported by server with a central
storage you need an imap server. Although there is something on the way,
stable IMAP support in James will take its time.
If you want to use pop3 you have to store fetched messages on the users
harddisk. This is possible by javamail, too by using a Store
implementation. You could try http://javamaildir.sourceforge.net/ or
http://mstor.sourceforge.net/. But note: they are no James projects and
not supported here.
Joachim
---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org
Re: Sent items facility in JAMES
Posted by Raghavendra Setty <ra...@tarangtech.com>.
Hi,
Can you please share some thought on how can i do these two (sent item
and read/unread) at client side if not at James side? (may be the
approach)
Thanks,
Rag Setty
On Thu, 2006-10-05 at 07:50 +0200, Norman Maurer wrote:
> Sorry,
> but if im not wrong its impossible at the moment without changing james
> codebase!
>
> bye
> Norman
>
> Raghavendra Setty schrieb:
> > Noel,
> >
> > Can you please share the right approach for building "Sent Items" and
> > "Read / Unread" feature when i am using James-POP3.
> >
> > Please do the needful.
> >
> > Thanks in advance,
> > Rag Setty
> >
> >
> > On Wed, 2006-10-04 at 23:50 -0400, Noel J. Bergman wrote:
> >
> >>> When we say "inbox.getMessages()", (using JavaMail) i think, james runs
> >>> a query on table "inbox" and gives it to JavaMail API based on the
> >>> "repository_name" column (as defined sqlResources.xml). This is actually
> >>> an array of java.mail.Message.
> >>>
> >> JAMES does not use JavaMail for storage (it is bad enough for what we do use
> >> it for). In fact, with a wee bit of work, JavaMail will be entirely removed
> >> from the POP3 codepath.
> >>
> >> --- Noel
> >>
> >>
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
> >> For additional commands, e-mail: server-dev-help@james.apache.org
> >>
> >>
> >>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
> For additional commands, e-mail: server-dev-help@james.apache.org
>
>
--
Rag Setty
This e-mail and any files transmitted with it are for the sole use of the intended recipient(s) and may contain confidential and privileged information. If you are not the intended recipient or received it in error, please contact the sender by reply e-mail and destroy all copies of the original message. Please do not copy it for any purpose or disclose its contents.
Copyright Tarang Software Technologies Pvt. Ltd. 2004. All rights Reserved
Re: Sent items facility in JAMES
Posted by Norman Maurer <nm...@byteaction.de>.
Sorry,
but if im not wrong its impossible at the moment without changing james
codebase!
bye
Norman
Raghavendra Setty schrieb:
> Noel,
>
> Can you please share the right approach for building "Sent Items" and
> "Read / Unread" feature when i am using James-POP3.
>
> Please do the needful.
>
> Thanks in advance,
> Rag Setty
>
>
> On Wed, 2006-10-04 at 23:50 -0400, Noel J. Bergman wrote:
>
>>> When we say "inbox.getMessages()", (using JavaMail) i think, james runs
>>> a query on table "inbox" and gives it to JavaMail API based on the
>>> "repository_name" column (as defined sqlResources.xml). This is actually
>>> an array of java.mail.Message.
>>>
>> JAMES does not use JavaMail for storage (it is bad enough for what we do use
>> it for). In fact, with a wee bit of work, JavaMail will be entirely removed
>> from the POP3 codepath.
>>
>> --- Noel
>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
>> For additional commands, e-mail: server-dev-help@james.apache.org
>>
>>
>>
---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org
RE: Sent items facility in JAMES
Posted by "Noel J. Bergman" <no...@devtech.com>.
> When we say "inbox.getMessages()", (using JavaMail) i think, james runs
> a query on table "inbox" and gives it to JavaMail API based on the
> "repository_name" column (as defined sqlResources.xml). This is actually
> an array of java.mail.Message.
JAMES does not use JavaMail for storage (it is bad enough for what we do use
it for). In fact, with a wee bit of work, JavaMail will be entirely removed
from the POP3 codepath.
--- Noel
---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org
Re: Sent items facility in JAMES
Posted by Raghavendra Setty <ra...@tarangtech.com>.
Hi all,
I am asking the question on "sent items" feature again.
When we say "inbox.getMessages()", (using JavaMail) i think, james runs
a query on table "inbox" and gives it to JavaMail API based on the
"repository_name" column (as defined sqlResources.xml). This is actually
an array of java.mail.Message.
Since i have to build "sent items" functionality towards client side as
it is not provided by James, please let me know what should i do.
Shall i use the same "inbox" table and get the mails based on "sender"
column? If so, how to retrieve the message headers / body etc? Is there
any way i can create array of java.mail.Message out of it?
If not, please guide me to resolve this at your earliest.
I have another question on "Read / Unread" status of a message. Since i
am using James - POP3, and pop3 don't have support for SEEN flag, what
should i do to differentiate a mail which is seen from the the one which
is not seen?
Please help me at your earliest.
Thanks in advance,
Rag Setty
>
> On Mon, 2006-08-28 at 17:26 +0530, Santosh Puranshettiwar wrote:
> > In my opinion "Sent items" is a functionality coupled to a mail client
> > than to a server.
> > So, whatever the solution be, I suspect using JAMES (or any other mail
> > server, in that matter) for it would be inappropriate to store the sent
> > mails.
> >
> > Santosh.
> > Raghavendra Setty wrote:
> > > Hi all,
> > >
> > > I am using javamail API to retrieve the inbox mails of a particular user
> > > from JAMES as below:
> > >
> > > Session session = Session.getInstance(props);
> > > store = session.getStore("pop3");
> > > store.connect("localhost", "blue", "blue");
> > > root = store.getDefaultFolder();
> > > inbox = root.getFolder("inbox");
> > > inbox.open(Folder.READ_WRITE);
> > > Message[] msgs = inbox.getMessages(); then
> > >
> > > for (int i = 0; i < msgs.length; i++)
> > > {
> > > MimeMessage msg = (MimeMessage)msgs[i];
> > > msg.getFrom()[0], msg.getSubject(), msg.getContent() ......
> > > }
> > >
> > > Can you guys suggest is there any functionality which supports the "Sent
> > > Item"? If not please guide me how can i achieve this.
> > >
> > > Thanks in advance,
> > > Rag Setty
> > >
> > > This e-mail and any files transmitted with it are for the sole use of the intended recipient(s) and may contain confidential and privileged information. If you are not the intended recipient or received it in error, please contact the sender by reply e-mail and destroy all copies of the original message. Please do not copy it for any purpose or disclose its contents.
> > >
> > > Copyright Tarang Software Technologies Pvt. Ltd. 2004. All rights Reserved
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
> > For additional commands, e-mail: server-user-help@james.apache.org
> >
> >
--
Rag Setty
This e-mail and any files transmitted with it are for the sole use of the intended recipient(s) and may contain confidential and privileged information. If you are not the intended recipient or received it in error, please contact the sender by reply e-mail and destroy all copies of the original message. Please do not copy it for any purpose or disclose its contents.
Copyright Tarang Software Technologies Pvt. Ltd. 2004. All rights Reserved
Re: Sent items facility in JAMES
Posted by Raghavendra Setty <ra...@tarangtech.com>.
Hi all,
I am asking the question on "sent items" feature again.
When we say "inbox.getMessages()", (using JavaMail) i think, james runs
a query on table "inbox" and gives it to JavaMail API based on the
"repository_name" column (as defined sqlResources.xml). This is actually
an array of java.mail.Message.
Since i have to build "sent items" functionality towards client side as
it is not provided by James, please let me know what should i do.
Shall i use the same "inbox" table and get the mails based on "sender"
column? If so, how to retrieve the message headers / body etc? Is there
any way i can create array of java.mail.Message out of it?
If not, please guide me to resolve this at your earliest.
Rag Setty
On Mon, 2006-08-28 at 17:26 +0530, Santosh Puranshettiwar wrote:
> In my opinion "Sent items" is a functionality coupled to a mail client
> than to a server.
> So, whatever the solution be, I suspect using JAMES (or any other mail
> server, in that matter) for it would be inappropriate to store the sent
> mails.
>
> Santosh.
> Raghavendra Setty wrote:
> > Hi all,
> >
> > I am using javamail API to retrieve the inbox mails of a particular user
> > from JAMES as below:
> >
> > Session session = Session.getInstance(props);
> > store = session.getStore("pop3");
> > store.connect("localhost", "blue", "blue");
> > root = store.getDefaultFolder();
> > inbox = root.getFolder("inbox");
> > inbox.open(Folder.READ_WRITE);
> > Message[] msgs = inbox.getMessages(); then
> >
> > for (int i = 0; i < msgs.length; i++)
> > {
> > MimeMessage msg = (MimeMessage)msgs[i];
> > msg.getFrom()[0], msg.getSubject(), msg.getContent() ......
> > }
> >
> > Can you guys suggest is there any functionality which supports the "Sent
> > Item"? If not please guide me how can i achieve this.
> >
> > Thanks in advance,
> > Rag Setty
> >
> > This e-mail and any files transmitted with it are for the sole use of the intended recipient(s) and may contain confidential and privileged information. If you are not the intended recipient or received it in error, please contact the sender by reply e-mail and destroy all copies of the original message. Please do not copy it for any purpose or disclose its contents.
> >
> > Copyright Tarang Software Technologies Pvt. Ltd. 2004. All rights Reserved
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
> For additional commands, e-mail: server-user-help@james.apache.org
>
>
--
Rag Setty
This e-mail and any files transmitted with it are for the sole use of the intended recipient(s) and may contain confidential and privileged information. If you are not the intended recipient or received it in error, please contact the sender by reply e-mail and destroy all copies of the original message. Please do not copy it for any purpose or disclose its contents.
Copyright Tarang Software Technologies Pvt. Ltd. 2004. All rights Reserved
Re: Sent items facility in JAMES
Posted by Santosh Puranshettiwar <sa...@wirkle.com>.
In my opinion "Sent items" is a functionality coupled to a mail client
than to a server.
So, whatever the solution be, I suspect using JAMES (or any other mail
server, in that matter) for it would be inappropriate to store the sent
mails.
Santosh.
Raghavendra Setty wrote:
> Hi all,
>
> I am using javamail API to retrieve the inbox mails of a particular user
> from JAMES as below:
>
> Session session = Session.getInstance(props);
> store = session.getStore("pop3");
> store.connect("localhost", "blue", "blue");
> root = store.getDefaultFolder();
> inbox = root.getFolder("inbox");
> inbox.open(Folder.READ_WRITE);
> Message[] msgs = inbox.getMessages(); then
>
> for (int i = 0; i < msgs.length; i++)
> {
> MimeMessage msg = (MimeMessage)msgs[i];
> msg.getFrom()[0], msg.getSubject(), msg.getContent() ......
> }
>
> Can you guys suggest is there any functionality which supports the "Sent
> Item"? If not please guide me how can i achieve this.
>
> Thanks in advance,
> Rag Setty
>
> This e-mail and any files transmitted with it are for the sole use of the intended recipient(s) and may contain confidential and privileged information. If you are not the intended recipient or received it in error, please contact the sender by reply e-mail and destroy all copies of the original message. Please do not copy it for any purpose or disclose its contents.
>
> Copyright Tarang Software Technologies Pvt. Ltd. 2004. All rights Reserved
---------------------------------------------------------------------
To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
For additional commands, e-mail: server-user-help@james.apache.org