Fwd: [General Questions] gmail4j

10 views
Skip to first unread message

Tomas Varaneckas

unread,
Oct 19, 2010, 5:50:15 AM10/19/10
to gma...@googlegroups.com, «
Hi,

I think that this sort of development related discussions should
happend here, in Gmail4J google groups:

http://groups.google.com/group/gmail4j

Cheers,
Tomas


---------- Forwarded message ----------
From: Tomas Varaneckas <tomas.va...@gmail.com>
Date: Tue, Oct 19, 2010 at 12:47
Subject: Re: [General Questions] gmail4j
To: « <rajiv...@gmail.com>


Hi Rajiv,

I think we should not go for hacks and wait until JavaMail supports
sorting properly. Even better thing to do - check out the source of
JavaMail, implement it there and contribute them a patch.

Anyway, you should put the results of your research to comments of
Issue #7 (http://code.google.com/p/gmail4j/issues/detail?id=7)

Delete messages feature sounds good to me. Just create an issue in the
tracker and go for it.

Regards,
Tomas

On Tue, Oct 19, 2010 at 11:47, «< ŝķў  шâlĶёř >» <rajiv...@gmail.com> wrote:
> Hi Tomas,
> During last week I tried to implement sorting for gmail imap
> connection.Since the project was configured to use javamail 1.3.2 jar
> library I had to write a prtocol command to sort the incoming mail messages
> which was too complex and hard to maintain.I then found out that   under rfc
> 5256[1] their is a new implementation going on with JavaMail 1.4.4[2] where
> sorting is implemented with imap. Since JavaMail 1.4.4 is still under
> implementation and no RC yet I installed a snapshot of the jar to my maven
> project and the above said functionality is already implemented(before a
> month ago).
> I tried to sort the imap messages with the new methods but it throws "SORT
> not supported" exception where I think since the JavaMail
> 1.4.4 implementation is yet to release gmail is still not supported.So for
> the time being what shall I do? leave this feature for future or I can sort
> the Messages array with a comparator and return which is not the best idea
> in the world.If leaved till future shall i look forward to implement the
> delete feature?
> [1]http://tools.ietf.org/search/rfc5256]
> [2]http://kenai.com/projects/javamail/
> cheers,
> Rajiv

Reply all
Reply to author
Forward
0 new messages