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 Bernd Waibel <BW...@intarsys.de> on 2016/09/20 09:44:36 UTC

AW: The current usage of Quota size of is incorrect when deleting a message? [unsigned]

Hi Benoit,

fyi: the folder.close(true) should issue a EXPUNGE (because of the parameter).
So this should not be the problem.

Best regards
Bernd Waibel

-----Ursprüngliche Nachricht-----
Von: Guofeng Zhang [mailto:guofengzh@auslides.com] 
Gesendet: Dienstag, 20. September 2016 10:52
An: James Users List <se...@james.apache.org>
Betreff: Re: The current usage of Quota size of is incorrect when deleting a message?

Thanks for your response.

I think it should be a bug in James 3.

There are serveral StoreMailboxManager beans configured in Spring XML 
files for maildir or in-memory store, each StoreMailboxManager.init() 
call will register an instance of ListeningCurrentQuotaUpdater to a 
shared/global registry. This duplicates the instance of 
ListeningCurrentQuotaUpdater  in the registry, and  cause the quota 
usage data doubly descreased or increased (sorry, this mail described it 
incorrectly).

Solve the above case sovle the issues.

Thanks again.


在 2016/9/20 16:29, Benoit Tellier 写道:
> Hi Zhang,
>
> When you mark a flag as DELETED it is not removed from mail server. It
> is done when the EXPUNGE command is used
>
> Cheers,
>
> Benoit
>
> Le 19/09/2016 à 06:10, Guofeng Zhang a écrit :
>> Hi,
>>
>> When a message is deleted, the current usage of Qutoa size is not changed.
>>
>> We use the following JavaMail code to remove messages:
>>
>>   Message m = folder.getMessage(i);
>>
>>   m.setFlag(FLAGS.Flag.DELETED, true);
>>
>>   ...
>>
>> folder.close(true);
>>
>> What we did it improperly?
>>
>> Thanks for your help!
>>
>> Guofeng
>>
>>
>>
>> ---------------------------------------------------------------------
>> 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


---------------------------------------------------------------------
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