Re: lucene index deleted on restart

2023-08-16 Thread Benoit TELLIER
Hello, Sorry for the long delay, I was on vacations... I just found the time to test your solution but sadly I still notice the index being dropped on start. It turns out inspection did show that the value is already set to false by the existing constructor chain. The issue lies somewhere els

Re: lucene index deleted on restart

2023-07-20 Thread Mihai Zamfira
Hi, With the little knowledge of Java I made the following modification in org.apache.james.modules.mailbox.LuceneSearchMailboxModule # add an extra includes import com.google.inject.name.Names; #add an additional line in the configure method bind(Boolean.class).annotatedWith(Names.named("dropInd

Re: lucene index deleted on restart

2023-07-19 Thread Mihai Zamfira
Dear Benoit, Deleting indexes has a significant impact for some IMAP clients like Iphone Mail (standard email client on iphone). This application uses indexes in the IMAP synchronization process. I found that if the indexes are deleted, the users who use the Mail application on iPhone will only

Re: lucene index deleted on restart

2023-07-19 Thread Benoit TELLIER
Hello Mihai, I reproduced the behaviour you mentionned on my side.  - Start the demo image  - append a few mails List files. There is some Lucene files: -rw-r--r-- 1 root root 3.1K Jul 20 02:10 _k.fdt -rw-r--r-- 1 root root  308 Jul 20 02:10 _k.fdx -rw-r--r-- 1 root root  871 Jul 20 02:10 _k.