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

2016-09-20 Thread Bernd Waibel
Users List 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

Re: The current usage of Quota size of is incorrect when deleting a message?

2016-09-20 Thread Guofeng Zhang
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 regist

Re: The current usage of Quota size of is incorrect when deleting a message?

2016-09-20 Thread 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 followin

Re: The current usage of Quota size of is incorrect when deleting a message?

2016-09-19 Thread Guofeng Zhang
Hi, Sorry, the issue should be: 1) if I added one message, the count increased 2. 2) If I deleted one message, the count descreased 2. The size has the same issue. It is causeed by StoreMailboxManager, which registered ListeningCurrentQuotaUpdater twice in its init() method. The init

The current usage of Quota size of is incorrect when deleting a message?

2016-09-18 Thread Guofeng Zhang
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