You are viewing a plain text version of this content. The canonical link for it is here.
Posted to server-dev@james.apache.org by Jentu Jain <je...@datacert.com> on 2012/03/01 07:46:50 UTC

Message UIDs

Hi,
I set message Ids as the id obtained from the repective record in the database (i.e) for every message that's dropped into the mailbox, a corresponding record is created in the database and that row's primary key is set as id for the message. Now, I need to retrieve the last message id per mailbox in order to poll the database for new messages. I tried using getLastUID() of MessageMapper but that always gets me zero. I'm using inmemory implementation of the Message Mapper. I want the getLastUID() to return me the last message's id associated with the given mailbox. Please advice.

Regards
------------------------------------
Jentu Jain | Datacert, Inc.

Why are major companies rapidly migrating to Passport?  Find Out Here<http://www.datacert.com/>
[Description: cid:image001.gif@01CBF2C7.283B26D0]<http://www.datacert.com/feed.xml>[Description: cid:image002.gif@01CBF2C7.283B26D0]<http://twitter.com/datacert>


RE: Message UIDs

Posted by Jentu Jain <je...@datacert.com>.
Thanks Eric. I have fixed the copy issue. For creating shared mailboxes, I do not specify the username in mailbox path whereas when I tried to move it was looking for mailbox having email account's name in the path.

Regards
------------------------------------
Jentu Jain | Datacert, Inc.

Why are major companies rapidly migrating to Passport?  Find Out Here


-----Original Message-----
From: Eric Charles [mailto:eric@apache.org] 
Sent: Friday, March 02, 2012 4:34 PM
To: James Users List
Subject: Re: Message UIDs

Hi,

These general information could help;
http://www.vogella.de/articles/EclipseDebugging/article.html
http://www.ibm.com/developerworks/library/os-ecbug/

For specific on james, the first line of the given stacktrace should tell you where to put your breakpoint.

Thx, Eric

On 02/03/12 11:28, Jentu Jain wrote:
> Eric,
> Please provide me the steps to debug from Eclipse using breakpoints.
>
> Regards
> ------------------------------------
> Jentu Jain | Datacert, Inc.
>
> Why are major companies rapidly migrating to Passport?  Find Out Here
>
>
> -----Original Message-----
> From: Eric Charles [mailto:eric@apache.org]
> Sent: Friday, March 02, 2012 3:54 PM
> To: James Users List
> Subject: Re: Message UIDs
>
> Any stacktrace?
>
> Also, you could debug your code setting breakpoints at places of interest and looking at the memory mailboxes... This could really help to figure out what happens.
>
> Thx, Eric
>
> On 02/03/12 11:08, Jentu Jain wrote:
>> Eric,
>> The error message is
>>
>> 	Cannot move the items. The server responded: "Copy failed. No such mailbox"
>>
>> Regards
>> ------------------------------------
>> Jentu Jain | Datacert, Inc.
>>
>> Why are major companies rapidly migrating to Passport?  Find Out Here
>>
>>
>> -----Original Message-----
>> From: Eric Charles [mailto:eric@apache.org]
>> Sent: Friday, March 02, 2012 11:50 AM
>> To: James Users List
>> Subject: Re: Message UIDs
>>
>> Hi,
>> I don't see the image you sent (only text format is supported on apache mailing lists).
>> Can you resend?
>> Thx, Eric
>>
>>
>> On 02/03/12 06:35, Jentu Jain wrote:
>>> I'm setting the UID and have overridden getLastUID() to return the 
>>> max of the UIDs from the hash.
>>>
>>> Now, when I try to move the mails within the mailboxes of the same 
>>> account, I'm getting the following error but the same works across 
>>> the accounts. Please advice.
>>>
>>> Regards
>>>
>>> ------------------------------------
>>>
>>> Jentu Jain | Datacert, Inc.
>>>
>>> Why are major companies rapidly migrating to Passport? Find Out Here
>>>
>>> -----Original Message-----
>>>
>>> From: Eric Charles [mailto:eric@apache.org] 
>>> <mailto:[mailto:eric@apache.org]>
>>>
>>> Sent: Thursday, March 01, 2012 7:37 PM
>>>
>>> To: James Users List
>>>
>>> Subject: Re: Message UIDs
>>>
>>> Are you setting your self the uid or the id of the message?
>>>
>>> If you set your self the uid, the getLastUid will not work.
>>>
>>> Thx, Eric
>>>
>>> On 01/03/12 13:52, Jentu Jain wrote:
>>>
>>>    >   I'm using memory but saving the email document into a database
>>> related to another application via REST call.
>>>
>>>    >
>>>
>>>    >   Regards
>>>
>>>    >   ------------------------------------
>>>
>>>    >   Jentu Jain | Datacert, Inc.
>>>
>>>    >
>>>
>>>    >   Why are major companies rapidly migrating to Passport? Find Out
>>> Here
>>>
>>>    >
>>>
>>>    >
>>>
>>>    >   -----Original Message-----
>>>
>>>    >   From: Eric Charles [mailto:eric@apache.org]
>>> <mailto:[mailto:eric@apache.org]>
>>>
>>>    >   Sent: Thursday, March 01, 2012 5:24 PM
>>>
>>>    >   To: James Users List
>>>
>>>    >   Subject: Re: Message UIDs
>>>
>>>    >
>>>
>>>    >   Hi,
>>>
>>>    >   Are you using memory or jpa ? (you talk about both in your mail).
>>>
>>>    >   Thx, Eric
>>>
>>>    >
>>>
>>>    >   On 01/03/12 07:46, Jentu Jain wrote:
>>>
>>>    >>   Hi,
>>>
>>>    >>
>>>
>>>    >>   I set message Ids as the id obtained from the repective record
>>> in the
>>>
>>>    >>   database (i.e) for every message that's dropped into the
>>> mailbox, a
>>>
>>>    >>   corresponding record is created in the database and that row's
>>>
>>>    >>   primary key is set as id for the message. Now, I need to
>>> retrieve the
>>>
>>>    >>   last message id per mailbox in order to poll the database for
>>> new messages.
>>>
>>>    >>   I tried using getLastUID() of MessageMapper but that always
>>> gets me zero.
>>>
>>>    >>   I'm using inmemory implementation of the Message Mapper. I want
>>> the
>>>
>>>    >>   getLastUID() to return me the last message's id associated with
>>> the
>>>
>>>    >>   given mailbox. Please advice.
>>>
>>>    >>
>>>
>>>    >>   Regards
>>>
>>>    >>
>>>
>>>    >>   ------------------------------------
>>>
>>>    >>   Jentu Jain | Datacert, Inc.
>>>
>>>    >>
>>>
>>>    >>   /Why are major companies rapidly migrating to Passport? Find
>>> Out Here
>>>
>>>    >>   <http://www.datacert.com/>/
>>>
>>>    >>
>>>
>>>    >>   Description: cid:image001.gif@01CBF2C7.283B26D0
>>>
>>>    >>   <http://www.datacert.com/feed.xml>Description:
>>>
>>>    >>   cid:image002.gif@01CBF2C7.283B26D0<http://twitter.com/datacert
>>> <cid:image002.gif@01CBF2C7.283B26D0%3chttp://twitter.com/datacert>>
>>>
>>>    >>
>>>
>>>    >
>>>
>>>    >   --
>>>
>>>    >   eric | http://about.echarles.net | @echarles
>>>
>>>    >
>>>
>>>    >
>>> --------------------------------------------------------------------
>>> -
>>>
>>>    >   To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
>>> <ma...@james.apache.org>
>>>
>>>    >   For additional commands, e-mail:
>>> server-user-help@james.apache.org
>>> <ma...@james.apache.org>
>>>
>>>    >
>>>
>>>    >
>>>
>>>    >
>>>
>>>    >
>>>
>>>    >
>>> --------------------------------------------------------------------
>>> -
>>>
>>>    >   To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
>>> <ma...@james.apache.org>
>>>
>>>    >   For additional commands, e-mail:
>>> server-user-help@james.apache.org
>>> <ma...@james.apache.org>
>>>
>>>    >
>>>
>>> --
>>>
>>> eric | http://about.echarles.net | @echarles
>>>
>>> --------------------------------------------------------------------
>>> -
>>>
>>> To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
>>> <ma...@james.apache.org>
>>>
>>> For additional commands, e-mail: server-user-help@james.apache.org 
>>> <ma...@james.apache.org>
>>>
>>
>
> --
> eric | http://about.echarles.net | @echarles
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
> For additional commands, e-mail: server-user-help@james.apache.org
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
> For additional commands, e-mail: server-user-help@james.apache.org
>

--
eric | http://about.echarles.net | @echarles

---------------------------------------------------------------------
To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
For additional commands, e-mail: server-user-help@james.apache.org




---------------------------------------------------------------------
To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
For additional commands, e-mail: server-user-help@james.apache.org


Re: Message UIDs

Posted by Eric Charles <er...@apache.org>.
Hi,

These general information could help;
http://www.vogella.de/articles/EclipseDebugging/article.html
http://www.ibm.com/developerworks/library/os-ecbug/

For specific on james, the first line of the given stacktrace should 
tell you where to put your breakpoint.

Thx, Eric

On 02/03/12 11:28, Jentu Jain wrote:
> Eric,
> Please provide me the steps to debug from Eclipse using breakpoints.
>
> Regards
> ------------------------------------
> Jentu Jain | Datacert, Inc.
>
> Why are major companies rapidly migrating to Passport?  Find Out Here
>
>
> -----Original Message-----
> From: Eric Charles [mailto:eric@apache.org]
> Sent: Friday, March 02, 2012 3:54 PM
> To: James Users List
> Subject: Re: Message UIDs
>
> Any stacktrace?
>
> Also, you could debug your code setting breakpoints at places of interest and looking at the memory mailboxes... This could really help to figure out what happens.
>
> Thx, Eric
>
> On 02/03/12 11:08, Jentu Jain wrote:
>> Eric,
>> The error message is
>>
>> 	Cannot move the items. The server responded: "Copy failed. No such mailbox"
>>
>> Regards
>> ------------------------------------
>> Jentu Jain | Datacert, Inc.
>>
>> Why are major companies rapidly migrating to Passport?  Find Out Here
>>
>>
>> -----Original Message-----
>> From: Eric Charles [mailto:eric@apache.org]
>> Sent: Friday, March 02, 2012 11:50 AM
>> To: James Users List
>> Subject: Re: Message UIDs
>>
>> Hi,
>> I don't see the image you sent (only text format is supported on apache mailing lists).
>> Can you resend?
>> Thx, Eric
>>
>>
>> On 02/03/12 06:35, Jentu Jain wrote:
>>> I'm setting the UID and have overridden getLastUID() to return the
>>> max of the UIDs from the hash.
>>>
>>> Now, when I try to move the mails within the mailboxes of the same
>>> account, I'm getting the following error but the same works across
>>> the accounts. Please advice.
>>>
>>> Regards
>>>
>>> ------------------------------------
>>>
>>> Jentu Jain | Datacert, Inc.
>>>
>>> Why are major companies rapidly migrating to Passport? Find Out Here
>>>
>>> -----Original Message-----
>>>
>>> From: Eric Charles [mailto:eric@apache.org]
>>> <mailto:[mailto:eric@apache.org]>
>>>
>>> Sent: Thursday, March 01, 2012 7:37 PM
>>>
>>> To: James Users List
>>>
>>> Subject: Re: Message UIDs
>>>
>>> Are you setting your self the uid or the id of the message?
>>>
>>> If you set your self the uid, the getLastUid will not work.
>>>
>>> Thx, Eric
>>>
>>> On 01/03/12 13:52, Jentu Jain wrote:
>>>
>>>    >   I'm using memory but saving the email document into a database
>>> related to another application via REST call.
>>>
>>>    >
>>>
>>>    >   Regards
>>>
>>>    >   ------------------------------------
>>>
>>>    >   Jentu Jain | Datacert, Inc.
>>>
>>>    >
>>>
>>>    >   Why are major companies rapidly migrating to Passport? Find Out
>>> Here
>>>
>>>    >
>>>
>>>    >
>>>
>>>    >   -----Original Message-----
>>>
>>>    >   From: Eric Charles [mailto:eric@apache.org]
>>> <mailto:[mailto:eric@apache.org]>
>>>
>>>    >   Sent: Thursday, March 01, 2012 5:24 PM
>>>
>>>    >   To: James Users List
>>>
>>>    >   Subject: Re: Message UIDs
>>>
>>>    >
>>>
>>>    >   Hi,
>>>
>>>    >   Are you using memory or jpa ? (you talk about both in your mail).
>>>
>>>    >   Thx, Eric
>>>
>>>    >
>>>
>>>    >   On 01/03/12 07:46, Jentu Jain wrote:
>>>
>>>    >>   Hi,
>>>
>>>    >>
>>>
>>>    >>   I set message Ids as the id obtained from the repective record
>>> in the
>>>
>>>    >>   database (i.e) for every message that's dropped into the
>>> mailbox, a
>>>
>>>    >>   corresponding record is created in the database and that row's
>>>
>>>    >>   primary key is set as id for the message. Now, I need to
>>> retrieve the
>>>
>>>    >>   last message id per mailbox in order to poll the database for
>>> new messages.
>>>
>>>    >>   I tried using getLastUID() of MessageMapper but that always
>>> gets me zero.
>>>
>>>    >>   I'm using inmemory implementation of the Message Mapper. I want
>>> the
>>>
>>>    >>   getLastUID() to return me the last message's id associated with
>>> the
>>>
>>>    >>   given mailbox. Please advice.
>>>
>>>    >>
>>>
>>>    >>   Regards
>>>
>>>    >>
>>>
>>>    >>   ------------------------------------
>>>
>>>    >>   Jentu Jain | Datacert, Inc.
>>>
>>>    >>
>>>
>>>    >>   /Why are major companies rapidly migrating to Passport? Find
>>> Out Here
>>>
>>>    >>   <http://www.datacert.com/>/
>>>
>>>    >>
>>>
>>>    >>   Description: cid:image001.gif@01CBF2C7.283B26D0
>>>
>>>    >>   <http://www.datacert.com/feed.xml>Description:
>>>
>>>    >>   cid:image002.gif@01CBF2C7.283B26D0<http://twitter.com/datacert
>>> <cid:image002.gif@01CBF2C7.283B26D0%3chttp://twitter.com/datacert>>
>>>
>>>    >>
>>>
>>>    >
>>>
>>>    >   --
>>>
>>>    >   eric | http://about.echarles.net | @echarles
>>>
>>>    >
>>>
>>>    >
>>> ---------------------------------------------------------------------
>>>
>>>    >   To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
>>> <ma...@james.apache.org>
>>>
>>>    >   For additional commands, e-mail:
>>> server-user-help@james.apache.org
>>> <ma...@james.apache.org>
>>>
>>>    >
>>>
>>>    >
>>>
>>>    >
>>>
>>>    >
>>>
>>>    >
>>> ---------------------------------------------------------------------
>>>
>>>    >   To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
>>> <ma...@james.apache.org>
>>>
>>>    >   For additional commands, e-mail:
>>> server-user-help@james.apache.org
>>> <ma...@james.apache.org>
>>>
>>>    >
>>>
>>> --
>>>
>>> eric | http://about.echarles.net | @echarles
>>>
>>> ---------------------------------------------------------------------
>>>
>>> To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
>>> <ma...@james.apache.org>
>>>
>>> For additional commands, e-mail: server-user-help@james.apache.org
>>> <ma...@james.apache.org>
>>>
>>
>
> --
> eric | http://about.echarles.net | @echarles
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
> For additional commands, e-mail: server-user-help@james.apache.org
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
> For additional commands, e-mail: server-user-help@james.apache.org
>

-- 
eric | http://about.echarles.net | @echarles

---------------------------------------------------------------------
To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
For additional commands, e-mail: server-user-help@james.apache.org


RE: Message UIDs

Posted by Jentu Jain <je...@datacert.com>.
Eric,
Please provide me the steps to debug from Eclipse using breakpoints.

Regards
------------------------------------
Jentu Jain | Datacert, Inc.

Why are major companies rapidly migrating to Passport?  Find Out Here


-----Original Message-----
From: Eric Charles [mailto:eric@apache.org] 
Sent: Friday, March 02, 2012 3:54 PM
To: James Users List
Subject: Re: Message UIDs

Any stacktrace?

Also, you could debug your code setting breakpoints at places of interest and looking at the memory mailboxes... This could really help to figure out what happens.

Thx, Eric

On 02/03/12 11:08, Jentu Jain wrote:
> Eric,
> The error message is
>
> 	Cannot move the items. The server responded: "Copy failed. No such mailbox"
>
> Regards
> ------------------------------------
> Jentu Jain | Datacert, Inc.
>
> Why are major companies rapidly migrating to Passport?  Find Out Here
>
>
> -----Original Message-----
> From: Eric Charles [mailto:eric@apache.org]
> Sent: Friday, March 02, 2012 11:50 AM
> To: James Users List
> Subject: Re: Message UIDs
>
> Hi,
> I don't see the image you sent (only text format is supported on apache mailing lists).
> Can you resend?
> Thx, Eric
>
>
> On 02/03/12 06:35, Jentu Jain wrote:
>> I'm setting the UID and have overridden getLastUID() to return the 
>> max of the UIDs from the hash.
>>
>> Now, when I try to move the mails within the mailboxes of the same 
>> account, I'm getting the following error but the same works across 
>> the accounts. Please advice.
>>
>> Regards
>>
>> ------------------------------------
>>
>> Jentu Jain | Datacert, Inc.
>>
>> Why are major companies rapidly migrating to Passport? Find Out Here
>>
>> -----Original Message-----
>>
>> From: Eric Charles [mailto:eric@apache.org] 
>> <mailto:[mailto:eric@apache.org]>
>>
>> Sent: Thursday, March 01, 2012 7:37 PM
>>
>> To: James Users List
>>
>> Subject: Re: Message UIDs
>>
>> Are you setting your self the uid or the id of the message?
>>
>> If you set your self the uid, the getLastUid will not work.
>>
>> Thx, Eric
>>
>> On 01/03/12 13:52, Jentu Jain wrote:
>>
>>   >  I'm using memory but saving the email document into a database 
>> related to another application via REST call.
>>
>>   >
>>
>>   >  Regards
>>
>>   >  ------------------------------------
>>
>>   >  Jentu Jain | Datacert, Inc.
>>
>>   >
>>
>>   >  Why are major companies rapidly migrating to Passport? Find Out 
>> Here
>>
>>   >
>>
>>   >
>>
>>   >  -----Original Message-----
>>
>>   >  From: Eric Charles [mailto:eric@apache.org] 
>> <mailto:[mailto:eric@apache.org]>
>>
>>   >  Sent: Thursday, March 01, 2012 5:24 PM
>>
>>   >  To: James Users List
>>
>>   >  Subject: Re: Message UIDs
>>
>>   >
>>
>>   >  Hi,
>>
>>   >  Are you using memory or jpa ? (you talk about both in your mail).
>>
>>   >  Thx, Eric
>>
>>   >
>>
>>   >  On 01/03/12 07:46, Jentu Jain wrote:
>>
>>   >>  Hi,
>>
>>   >>
>>
>>   >>  I set message Ids as the id obtained from the repective record 
>> in the
>>
>>   >>  database (i.e) for every message that's dropped into the 
>> mailbox, a
>>
>>   >>  corresponding record is created in the database and that row's
>>
>>   >>  primary key is set as id for the message. Now, I need to 
>> retrieve the
>>
>>   >>  last message id per mailbox in order to poll the database for 
>> new messages.
>>
>>   >>  I tried using getLastUID() of MessageMapper but that always 
>> gets me zero.
>>
>>   >>  I'm using inmemory implementation of the Message Mapper. I want 
>> the
>>
>>   >>  getLastUID() to return me the last message's id associated with 
>> the
>>
>>   >>  given mailbox. Please advice.
>>
>>   >>
>>
>>   >>  Regards
>>
>>   >>
>>
>>   >>  ------------------------------------
>>
>>   >>  Jentu Jain | Datacert, Inc.
>>
>>   >>
>>
>>   >>  /Why are major companies rapidly migrating to Passport? Find 
>> Out Here
>>
>>   >>  <http://www.datacert.com/>/
>>
>>   >>
>>
>>   >>  Description: cid:image001.gif@01CBF2C7.283B26D0
>>
>>   >>  <http://www.datacert.com/feed.xml>Description:
>>
>>   >>  cid:image002.gif@01CBF2C7.283B26D0<http://twitter.com/datacert
>> <cid:image002.gif@01CBF2C7.283B26D0%3chttp://twitter.com/datacert>>
>>
>>   >>
>>
>>   >
>>
>>   >  --
>>
>>   >  eric | http://about.echarles.net | @echarles
>>
>>   >
>>
>>   >  
>> ---------------------------------------------------------------------
>>
>>   >  To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
>> <ma...@james.apache.org>
>>
>>   >  For additional commands, e-mail: 
>> server-user-help@james.apache.org 
>> <ma...@james.apache.org>
>>
>>   >
>>
>>   >
>>
>>   >
>>
>>   >
>>
>>   >  
>> ---------------------------------------------------------------------
>>
>>   >  To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
>> <ma...@james.apache.org>
>>
>>   >  For additional commands, e-mail: 
>> server-user-help@james.apache.org 
>> <ma...@james.apache.org>
>>
>>   >
>>
>> --
>>
>> eric | http://about.echarles.net | @echarles
>>
>> ---------------------------------------------------------------------
>>
>> To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
>> <ma...@james.apache.org>
>>
>> For additional commands, e-mail: server-user-help@james.apache.org 
>> <ma...@james.apache.org>
>>
>

--
eric | http://about.echarles.net | @echarles

---------------------------------------------------------------------
To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
For additional commands, e-mail: server-user-help@james.apache.org




---------------------------------------------------------------------
To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
For additional commands, e-mail: server-user-help@james.apache.org


Re: Message UIDs

Posted by Eric Charles <er...@apache.org>.
Any stacktrace?

Also, you could debug your code setting breakpoints at places of 
interest and looking at the memory mailboxes... This could really help 
to figure out what happens.

Thx, Eric

On 02/03/12 11:08, Jentu Jain wrote:
> Eric,
> The error message is
>
> 	Cannot move the items. The server responded: "Copy failed. No such mailbox"
>
> Regards
> ------------------------------------
> Jentu Jain | Datacert, Inc.
>
> Why are major companies rapidly migrating to Passport?  Find Out Here
>
>
> -----Original Message-----
> From: Eric Charles [mailto:eric@apache.org]
> Sent: Friday, March 02, 2012 11:50 AM
> To: James Users List
> Subject: Re: Message UIDs
>
> Hi,
> I don't see the image you sent (only text format is supported on apache mailing lists).
> Can you resend?
> Thx, Eric
>
>
> On 02/03/12 06:35, Jentu Jain wrote:
>> I'm setting the UID and have overridden getLastUID() to return the max
>> of the UIDs from the hash.
>>
>> Now, when I try to move the mails within the mailboxes of the same
>> account, I'm getting the following error but the same works across the
>> accounts. Please advice.
>>
>> Regards
>>
>> ------------------------------------
>>
>> Jentu Jain | Datacert, Inc.
>>
>> Why are major companies rapidly migrating to Passport? Find Out Here
>>
>> -----Original Message-----
>>
>> From: Eric Charles [mailto:eric@apache.org]
>> <mailto:[mailto:eric@apache.org]>
>>
>> Sent: Thursday, March 01, 2012 7:37 PM
>>
>> To: James Users List
>>
>> Subject: Re: Message UIDs
>>
>> Are you setting your self the uid or the id of the message?
>>
>> If you set your self the uid, the getLastUid will not work.
>>
>> Thx, Eric
>>
>> On 01/03/12 13:52, Jentu Jain wrote:
>>
>>   >  I'm using memory but saving the email document into a database
>> related to another application via REST call.
>>
>>   >
>>
>>   >  Regards
>>
>>   >  ------------------------------------
>>
>>   >  Jentu Jain | Datacert, Inc.
>>
>>   >
>>
>>   >  Why are major companies rapidly migrating to Passport? Find Out Here
>>
>>   >
>>
>>   >
>>
>>   >  -----Original Message-----
>>
>>   >  From: Eric Charles [mailto:eric@apache.org]
>> <mailto:[mailto:eric@apache.org]>
>>
>>   >  Sent: Thursday, March 01, 2012 5:24 PM
>>
>>   >  To: James Users List
>>
>>   >  Subject: Re: Message UIDs
>>
>>   >
>>
>>   >  Hi,
>>
>>   >  Are you using memory or jpa ? (you talk about both in your mail).
>>
>>   >  Thx, Eric
>>
>>   >
>>
>>   >  On 01/03/12 07:46, Jentu Jain wrote:
>>
>>   >>  Hi,
>>
>>   >>
>>
>>   >>  I set message Ids as the id obtained from the repective record in the
>>
>>   >>  database (i.e) for every message that's dropped into the mailbox, a
>>
>>   >>  corresponding record is created in the database and that row's
>>
>>   >>  primary key is set as id for the message. Now, I need to retrieve the
>>
>>   >>  last message id per mailbox in order to poll the database for new
>> messages.
>>
>>   >>  I tried using getLastUID() of MessageMapper but that always gets me
>> zero.
>>
>>   >>  I'm using inmemory implementation of the Message Mapper. I want the
>>
>>   >>  getLastUID() to return me the last message's id associated with the
>>
>>   >>  given mailbox. Please advice.
>>
>>   >>
>>
>>   >>  Regards
>>
>>   >>
>>
>>   >>  ------------------------------------
>>
>>   >>  Jentu Jain | Datacert, Inc.
>>
>>   >>
>>
>>   >>  /Why are major companies rapidly migrating to Passport? Find Out Here
>>
>>   >>  <http://www.datacert.com/>/
>>
>>   >>
>>
>>   >>  Description: cid:image001.gif@01CBF2C7.283B26D0
>>
>>   >>  <http://www.datacert.com/feed.xml>Description:
>>
>>   >>  cid:image002.gif@01CBF2C7.283B26D0<http://twitter.com/datacert
>> <cid:image002.gif@01CBF2C7.283B26D0%3chttp://twitter.com/datacert>>
>>
>>   >>
>>
>>   >
>>
>>   >  --
>>
>>   >  eric | http://about.echarles.net | @echarles
>>
>>   >
>>
>>   >  ---------------------------------------------------------------------
>>
>>   >  To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
>> <ma...@james.apache.org>
>>
>>   >  For additional commands, e-mail: server-user-help@james.apache.org
>> <ma...@james.apache.org>
>>
>>   >
>>
>>   >
>>
>>   >
>>
>>   >
>>
>>   >  ---------------------------------------------------------------------
>>
>>   >  To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
>> <ma...@james.apache.org>
>>
>>   >  For additional commands, e-mail: server-user-help@james.apache.org
>> <ma...@james.apache.org>
>>
>>   >
>>
>> --
>>
>> eric | http://about.echarles.net | @echarles
>>
>> ---------------------------------------------------------------------
>>
>> To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
>> <ma...@james.apache.org>
>>
>> For additional commands, e-mail: server-user-help@james.apache.org
>> <ma...@james.apache.org>
>>
>

-- 
eric | http://about.echarles.net | @echarles

---------------------------------------------------------------------
To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
For additional commands, e-mail: server-user-help@james.apache.org


RE: Message UIDs

Posted by Jentu Jain <je...@datacert.com>.
Eric,
The error message is 

	Cannot move the items. The server responded: "Copy failed. No such mailbox"

Regards
------------------------------------
Jentu Jain | Datacert, Inc.

Why are major companies rapidly migrating to Passport?  Find Out Here


-----Original Message-----
From: Eric Charles [mailto:eric@apache.org] 
Sent: Friday, March 02, 2012 11:50 AM
To: James Users List
Subject: Re: Message UIDs

Hi,
I don't see the image you sent (only text format is supported on apache mailing lists).
Can you resend?
Thx, Eric


On 02/03/12 06:35, Jentu Jain wrote:
> I'm setting the UID and have overridden getLastUID() to return the max
> of the UIDs from the hash.
>
> Now, when I try to move the mails within the mailboxes of the same
> account, I'm getting the following error but the same works across the
> accounts. Please advice.
>
> Regards
>
> ------------------------------------
>
> Jentu Jain | Datacert, Inc.
>
> Why are major companies rapidly migrating to Passport? Find Out Here
>
> -----Original Message-----
>
> From: Eric Charles [mailto:eric@apache.org]
> <mailto:[mailto:eric@apache.org]>
>
> Sent: Thursday, March 01, 2012 7:37 PM
>
> To: James Users List
>
> Subject: Re: Message UIDs
>
> Are you setting your self the uid or the id of the message?
>
> If you set your self the uid, the getLastUid will not work.
>
> Thx, Eric
>
> On 01/03/12 13:52, Jentu Jain wrote:
>
>  > I'm using memory but saving the email document into a database
> related to another application via REST call.
>
>  >
>
>  > Regards
>
>  > ------------------------------------
>
>  > Jentu Jain | Datacert, Inc.
>
>  >
>
>  > Why are major companies rapidly migrating to Passport? Find Out Here
>
>  >
>
>  >
>
>  > -----Original Message-----
>
>  > From: Eric Charles [mailto:eric@apache.org]
> <mailto:[mailto:eric@apache.org]>
>
>  > Sent: Thursday, March 01, 2012 5:24 PM
>
>  > To: James Users List
>
>  > Subject: Re: Message UIDs
>
>  >
>
>  > Hi,
>
>  > Are you using memory or jpa ? (you talk about both in your mail).
>
>  > Thx, Eric
>
>  >
>
>  > On 01/03/12 07:46, Jentu Jain wrote:
>
>  >> Hi,
>
>  >>
>
>  >> I set message Ids as the id obtained from the repective record in the
>
>  >> database (i.e) for every message that's dropped into the mailbox, a
>
>  >> corresponding record is created in the database and that row's
>
>  >> primary key is set as id for the message. Now, I need to retrieve the
>
>  >> last message id per mailbox in order to poll the database for new
> messages.
>
>  >> I tried using getLastUID() of MessageMapper but that always gets me
> zero.
>
>  >> I'm using inmemory implementation of the Message Mapper. I want the
>
>  >> getLastUID() to return me the last message's id associated with the
>
>  >> given mailbox. Please advice.
>
>  >>
>
>  >> Regards
>
>  >>
>
>  >> ------------------------------------
>
>  >> Jentu Jain | Datacert, Inc.
>
>  >>
>
>  >> /Why are major companies rapidly migrating to Passport? Find Out Here
>
>  >> <http://www.datacert.com/>/
>
>  >>
>
>  >> Description: cid:image001.gif@01CBF2C7.283B26D0
>
>  >> <http://www.datacert.com/feed.xml>Description:
>
>  >> cid:image002.gif@01CBF2C7.283B26D0<http://twitter.com/datacert
> <cid:image002.gif@01CBF2C7.283B26D0%3chttp://twitter.com/datacert>>
>
>  >>
>
>  >
>
>  > --
>
>  > eric | http://about.echarles.net | @echarles
>
>  >
>
>  > ---------------------------------------------------------------------
>
>  > To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
> <ma...@james.apache.org>
>
>  > For additional commands, e-mail: server-user-help@james.apache.org
> <ma...@james.apache.org>
>
>  >
>
>  >
>
>  >
>
>  >
>
>  > ---------------------------------------------------------------------
>
>  > To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
> <ma...@james.apache.org>
>
>  > For additional commands, e-mail: server-user-help@james.apache.org
> <ma...@james.apache.org>
>
>  >
>
> --
>
> eric | http://about.echarles.net | @echarles
>
> ---------------------------------------------------------------------
>
> To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
> <ma...@james.apache.org>
>
> For additional commands, e-mail: server-user-help@james.apache.org
> <ma...@james.apache.org>
>

-- 
eric | http://about.echarles.net | @echarles

---------------------------------------------------------------------
To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
For additional commands, e-mail: server-user-help@james.apache.org




---------------------------------------------------------------------
To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
For additional commands, e-mail: server-user-help@james.apache.org


Re: Message UIDs

Posted by Eric Charles <er...@apache.org>.
Hi,
I don't see the image you sent (only text format is supported on apache 
mailing lists).
Can you resend?
Thx, Eric


On 02/03/12 06:35, Jentu Jain wrote:
> I'm setting the UID and have overridden getLastUID() to return the max
> of the UIDs from the hash.
>
> Now, when I try to move the mails within the mailboxes of the same
> account, I'm getting the following error but the same works across the
> accounts. Please advice.
>
> Regards
>
> ------------------------------------
>
> Jentu Jain | Datacert, Inc.
>
> Why are major companies rapidly migrating to Passport? Find Out Here
>
> -----Original Message-----
>
> From: Eric Charles [mailto:eric@apache.org]
> <mailto:[mailto:eric@apache.org]>
>
> Sent: Thursday, March 01, 2012 7:37 PM
>
> To: James Users List
>
> Subject: Re: Message UIDs
>
> Are you setting your self the uid or the id of the message?
>
> If you set your self the uid, the getLastUid will not work.
>
> Thx, Eric
>
> On 01/03/12 13:52, Jentu Jain wrote:
>
>  > I'm using memory but saving the email document into a database
> related to another application via REST call.
>
>  >
>
>  > Regards
>
>  > ------------------------------------
>
>  > Jentu Jain | Datacert, Inc.
>
>  >
>
>  > Why are major companies rapidly migrating to Passport? Find Out Here
>
>  >
>
>  >
>
>  > -----Original Message-----
>
>  > From: Eric Charles [mailto:eric@apache.org]
> <mailto:[mailto:eric@apache.org]>
>
>  > Sent: Thursday, March 01, 2012 5:24 PM
>
>  > To: James Users List
>
>  > Subject: Re: Message UIDs
>
>  >
>
>  > Hi,
>
>  > Are you using memory or jpa ? (you talk about both in your mail).
>
>  > Thx, Eric
>
>  >
>
>  > On 01/03/12 07:46, Jentu Jain wrote:
>
>  >> Hi,
>
>  >>
>
>  >> I set message Ids as the id obtained from the repective record in the
>
>  >> database (i.e) for every message that's dropped into the mailbox, a
>
>  >> corresponding record is created in the database and that row's
>
>  >> primary key is set as id for the message. Now, I need to retrieve the
>
>  >> last message id per mailbox in order to poll the database for new
> messages.
>
>  >> I tried using getLastUID() of MessageMapper but that always gets me
> zero.
>
>  >> I'm using inmemory implementation of the Message Mapper. I want the
>
>  >> getLastUID() to return me the last message's id associated with the
>
>  >> given mailbox. Please advice.
>
>  >>
>
>  >> Regards
>
>  >>
>
>  >> ------------------------------------
>
>  >> Jentu Jain | Datacert, Inc.
>
>  >>
>
>  >> /Why are major companies rapidly migrating to Passport? Find Out Here
>
>  >> <http://www.datacert.com/>/
>
>  >>
>
>  >> Description: cid:image001.gif@01CBF2C7.283B26D0
>
>  >> <http://www.datacert.com/feed.xml>Description:
>
>  >> cid:image002.gif@01CBF2C7.283B26D0<http://twitter.com/datacert
> <cid:image002.gif@01CBF2C7.283B26D0%3chttp://twitter.com/datacert>>
>
>  >>
>
>  >
>
>  > --
>
>  > eric | http://about.echarles.net | @echarles
>
>  >
>
>  > ---------------------------------------------------------------------
>
>  > To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
> <ma...@james.apache.org>
>
>  > For additional commands, e-mail: server-user-help@james.apache.org
> <ma...@james.apache.org>
>
>  >
>
>  >
>
>  >
>
>  >
>
>  > ---------------------------------------------------------------------
>
>  > To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
> <ma...@james.apache.org>
>
>  > For additional commands, e-mail: server-user-help@james.apache.org
> <ma...@james.apache.org>
>
>  >
>
> --
>
> eric | http://about.echarles.net | @echarles
>
> ---------------------------------------------------------------------
>
> To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
> <ma...@james.apache.org>
>
> For additional commands, e-mail: server-user-help@james.apache.org
> <ma...@james.apache.org>
>

-- 
eric | http://about.echarles.net | @echarles

---------------------------------------------------------------------
To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
For additional commands, e-mail: server-user-help@james.apache.org


RE: Message UIDs

Posted by Jentu Jain <je...@datacert.com>.
I'm setting the UID and have overridden getLastUID() to return the max of the UIDs from the hash.

Now, when I try to move the mails within the mailboxes of the same account, I'm getting the following error but the same works across the accounts. Please advice.



[cid:image001.png@01CCF864.6B608F10]



Regards

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

Jentu Jain | Datacert, Inc.



Why are major companies rapidly migrating to Passport?  Find Out Here







-----Original Message-----

From: Eric Charles [mailto:eric@apache.org]<mailto:[mailto:eric@apache.org]>

Sent: Thursday, March 01, 2012 7:37 PM

To: James Users List

Subject: Re: Message UIDs



Are you setting your self the uid or the id of the message?

If you set your self the uid, the getLastUid will not work.

Thx, Eric





On 01/03/12 13:52, Jentu Jain wrote:

> I'm using memory but saving the email document into a database related to another application via REST call.

>

> Regards

> ------------------------------------

> Jentu Jain | Datacert, Inc.

>

> Why are major companies rapidly migrating to Passport?  Find Out Here

>

>

> -----Original Message-----

> From: Eric Charles [mailto:eric@apache.org]<mailto:[mailto:eric@apache.org]>

> Sent: Thursday, March 01, 2012 5:24 PM

> To: James Users List

> Subject: Re: Message UIDs

>

> Hi,

> Are you using memory or jpa ? (you talk about both in your mail).

> Thx, Eric

>

> On 01/03/12 07:46, Jentu Jain wrote:

>> Hi,

>>

>> I set message Ids as the id obtained from the repective record in the

>> database (i.e) for every message that's dropped into the mailbox, a

>> corresponding record is created in the database and that row's

>> primary key is set as id for the message. Now, I need to retrieve the

>> last message id per mailbox in order to poll the database for new messages.

>> I tried using getLastUID() of MessageMapper but that always gets me zero.

>> I'm using inmemory implementation of the Message Mapper. I want the

>> getLastUID() to return me the last message's id associated with the

>> given mailbox. Please advice.

>>

>> Regards

>>

>> ------------------------------------

>> Jentu Jain | Datacert, Inc.

>>

>> /Why are major companies rapidly migrating to Passport? Find Out Here

>> <http://www.datacert.com/>/

>>

>> Description: cid:image001.gif@01CBF2C7.283B26D0

>> <http://www.datacert.com/feed.xml>Description:

>> cid:image002.gif@01CBF2C7.283B26D0<http://twitter.com/datacert<cid:image002.gif@01CBF2C7.283B26D0%3chttp://twitter.com/datacert>>

>>

>

> --

> eric | http://about.echarles.net | @echarles

>

> ---------------------------------------------------------------------

> To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org<ma...@james.apache.org>

> For additional commands, e-mail: server-user-help@james.apache.org<ma...@james.apache.org>

>

>

>

>

> ---------------------------------------------------------------------

> To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org<ma...@james.apache.org>

> For additional commands, e-mail: server-user-help@james.apache.org<ma...@james.apache.org>

>



--

eric | http://about.echarles.net | @echarles



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

To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org<ma...@james.apache.org>

For additional commands, e-mail: server-user-help@james.apache.org<ma...@james.apache.org>





Re: Message UIDs

Posted by Eric Charles <er...@apache.org>.
Are you setting your self the uid or the id of the message?
If you set your self the uid, the getLastUid will not work.
Thx, Eric


On 01/03/12 13:52, Jentu Jain wrote:
> I'm using memory but saving the email document into a database related to another application via REST call.
>
> Regards
> ------------------------------------
> Jentu Jain | Datacert, Inc.
>
> Why are major companies rapidly migrating to Passport?  Find Out Here
>
>
> -----Original Message-----
> From: Eric Charles [mailto:eric@apache.org]
> Sent: Thursday, March 01, 2012 5:24 PM
> To: James Users List
> Subject: Re: Message UIDs
>
> Hi,
> Are you using memory or jpa ? (you talk about both in your mail).
> Thx, Eric
>
> On 01/03/12 07:46, Jentu Jain wrote:
>> Hi,
>>
>> I set message Ids as the id obtained from the repective record in the
>> database (i.e) for every message that's dropped into the mailbox, a
>> corresponding record is created in the database and that row's primary
>> key is set as id for the message. Now, I need to retrieve the last
>> message id per mailbox in order to poll the database for new messages.
>> I tried using getLastUID() of MessageMapper but that always gets me zero.
>> I'm using inmemory implementation of the Message Mapper. I want the
>> getLastUID() to return me the last message's id associated with the
>> given mailbox. Please advice.
>>
>> Regards
>>
>> ------------------------------------
>> Jentu Jain | Datacert, Inc.
>>
>> /Why are major companies rapidly migrating to Passport? Find Out Here
>> <http://www.datacert.com/>/
>>
>> Description: cid:image001.gif@01CBF2C7.283B26D0
>> <http://www.datacert.com/feed.xml>Description:
>> cid:image002.gif@01CBF2C7.283B26D0<http://twitter.com/datacert>
>>
>
> --
> eric | http://about.echarles.net | @echarles
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
> For additional commands, e-mail: server-user-help@james.apache.org
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
> For additional commands, e-mail: server-user-help@james.apache.org
>

-- 
eric | http://about.echarles.net | @echarles

---------------------------------------------------------------------
To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
For additional commands, e-mail: server-user-help@james.apache.org


RE: Message UIDs

Posted by Jentu Jain <je...@datacert.com>.
I'm using memory but saving the email document into a database related to another application via REST call.

Regards
------------------------------------
Jentu Jain | Datacert, Inc.

Why are major companies rapidly migrating to Passport?  Find Out Here


-----Original Message-----
From: Eric Charles [mailto:eric@apache.org] 
Sent: Thursday, March 01, 2012 5:24 PM
To: James Users List
Subject: Re: Message UIDs

Hi,
Are you using memory or jpa ? (you talk about both in your mail).
Thx, Eric

On 01/03/12 07:46, Jentu Jain wrote:
> Hi,
>
> I set message Ids as the id obtained from the repective record in the 
> database (i.e) for every message that's dropped into the mailbox, a 
> corresponding record is created in the database and that row's primary 
> key is set as id for the message. Now, I need to retrieve the last 
> message id per mailbox in order to poll the database for new messages. 
> I tried using getLastUID() of MessageMapper but that always gets me zero.
> I'm using inmemory implementation of the Message Mapper. I want the
> getLastUID() to return me the last message's id associated with the 
> given mailbox. Please advice.
>
> Regards
>
> ------------------------------------
> Jentu Jain | Datacert, Inc.
>
> /Why are major companies rapidly migrating to Passport? Find Out Here 
> <http://www.datacert.com/>/
>
> Description: cid:image001.gif@01CBF2C7.283B26D0
> <http://www.datacert.com/feed.xml>Description:
> cid:image002.gif@01CBF2C7.283B26D0 <http://twitter.com/datacert>
>

--
eric | http://about.echarles.net | @echarles

---------------------------------------------------------------------
To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
For additional commands, e-mail: server-user-help@james.apache.org




---------------------------------------------------------------------
To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
For additional commands, e-mail: server-user-help@james.apache.org


Re: Message UIDs

Posted by Eric Charles <er...@apache.org>.
Hi,
Are you using memory or jpa ? (you talk about both in your mail).
Thx, Eric

On 01/03/12 07:46, Jentu Jain wrote:
> Hi,
>
> I set message Ids as the id obtained from the repective record in the
> database (i.e) for every message that’s dropped into the mailbox, a
> corresponding record is created in the database and that row’s primary
> key is set as id for the message. Now, I need to retrieve the last
> message id per mailbox in order to poll the database for new messages. I
> tried using getLastUID() of MessageMapper but that always gets me zero.
> I’m using inmemory implementation of the Message Mapper. I want the
> getLastUID() to return me the last message’s id associated with the
> given mailbox. Please advice.
>
> Regards
>
> ------------------------------------
> Jentu Jain | Datacert, Inc.
>
> /Why are major companies rapidly migrating to Passport? Find Out Here
> <http://www.datacert.com/>/
>
> Description: cid:image001.gif@01CBF2C7.283B26D0
> <http://www.datacert.com/feed.xml>Description:
> cid:image002.gif@01CBF2C7.283B26D0 <http://twitter.com/datacert>
>

-- 
eric | http://about.echarles.net | @echarles

---------------------------------------------------------------------
To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
For additional commands, e-mail: server-user-help@james.apache.org