Virtual folders and mailbox_list_get_root_forced
Hi
The function mailbox_list_get_root_forced returns sometimes the first or the second value of the INDEX param for the same mailbox.
How to make sure this returns only the correct one of the corresponding mailbox ?
mail_location = maildir:/var/vmail/%d/%n:LAYOUT=fs:INDEX=/var/mailindex namespace { location = virtual:/nix/store/toto-virtual:INDEX=/var/vmail/%d/%n/virtual prefix = virtual/ separator = / subscriptions = no }
Thank you
Hi
Anyone on that ?
Thank you so much
On 2021-03-22 18:16, Joan Moreau wrote:
Hi
The function mailbox_list_get_root_forced returns sometimes the first or the second value of the INDEX param for the same mailbox.
How to make sure this returns only the correct one of the corresponding mailbox ?
mail_location = maildir:/var/vmail/%d/%n:LAYOUT=fs:INDEX=/var/mailindex namespace { location = virtual:/nix/store/toto-virtual:INDEX=/var/vmail/%d/%n/virtual prefix = virtual/ separator = / subscriptions = no }
Thank you
Hi!
mail_location = maildir:/var/vmail/%d/%n:LAYOUT=fs:INDEX=/var/mailindex
This is going to put everyone's indexes under /var/mailindex, without separating them properly. Might cause fun issues.
Can you give an concrete example of what your issue is?
Aki
On 28/03/2021 13:35 Joan Moreau <jom@grosjo.net> wrote:
Hi Anyone on that ? Thank you so much
On 2021-03-22 18:16, Joan Moreau wrote:
Hi The function mailbox_list_get_root_forcedreturns sometimes the first or the second value of the INDEX param for the same mailbox.
How to make sure this returns only the correct one of the corresponding mailbox ?
mail_location = maildir:/var/vmail/%d/%n:LAYOUT=fs:INDEX=/var/mailindex namespace { location = virtual:/nix/store/toto-virtual:INDEX=/var/vmail/%d/%n/virtual prefix = virtual/ separator = / subscriptions = no }
Thank you
yes, this is getting to a mess
Details can be seen here : https://github.com/grosjo/fts-xapian/issues/72
It shows that sometimes mailbox_list_get_root_forced return the generic INDEX value, sometimes the namespace value
thank you for your help
On 2021-03-28 12:03, Aki Tuomi wrote:
Hi!
mail_location = maildir:/var/vmail/%d/%n:LAYOUT=fs:INDEX=/var/mailindex
This is going to put everyone's indexes under /var/mailindex, without separating them properly. Might cause fun issues.
Can you give an concrete example of what your issue is?
Aki
On 28/03/2021 13:35 Joan Moreau <jom@grosjo.net> wrote:
Hi Anyone on that ? Thank you so much
On 2021-03-22 18:16, Joan Moreau wrote: Hi The function mailbox_list_get_root_forcedreturns sometimes the first or the second value of the INDEX param for the same mailbox.
How to make sure this returns only the correct one of the corresponding mailbox ?
mail_location = maildir:/var/vmail/%d/%n:LAYOUT=fs:INDEX=/var/mailindex namespace { location = virtual:/nix/store/toto-virtual:INDEX=/var/vmail/%d/%n/virtual prefix = virtual/ separator = / subscriptions = no }
Thank you
Hello
Anyone on this ?
Thank you
On 2021-03-28 20:55, Joan Moreau wrote:
yes, this is getting to a mess
Details can be seen here : https://github.com/grosjo/fts-xapian/issues/72
It shows that sometimes mailbox_list_get_root_forced return the generic INDEX value, sometimes the namespace value
thank you for your help
On 2021-03-28 12:03, Aki Tuomi wrote: Hi!
mail_location = maildir:/var/vmail/%d/%n:LAYOUT=fs:INDEX=/var/mailindex
This is going to put everyone's indexes under /var/mailindex, without separating them properly. Might cause fun issues.
Can you give an concrete example of what your issue is?
Aki
On 28/03/2021 13:35 Joan Moreau <jom@grosjo.net> wrote:
Hi Anyone on that ? Thank you so much
On 2021-03-22 18:16, Joan Moreau wrote: Hi The function mailbox_list_get_root_forcedreturns sometimes the first or the second value of the INDEX param for the same mailbox.
How to make sure this returns only the correct one of the corresponding mailbox ?
mail_location = maildir:/var/vmail/%d/%n:LAYOUT=fs:INDEX=/var/mailindex namespace { location = virtual:/nix/store/toto-virtual:INDEX=/var/vmail/%d/%n/virtual prefix = virtual/ separator = / subscriptions = no }
Thank you
Ah, no.
I tried very much to look into the details you provided but it's still not making much sense.
Can you maybe try providing answers to:
- What you did?
- What did you expect?
- What happened instead?
because right now that's not really very clear here.
Aki
On 02/04/2021 16:23 Joan Moreau <jom@grosjo.net> wrote:
Hello Anyone on this ? Thank you
On 2021-03-28 20:55, Joan Moreau wrote:
yes, this is getting to a mess Details can be seen here : https://github.com/grosjo/fts-xapian/issues/72 It shows that sometimes mailbox_list_get_root_forced return the generic INDEX value, sometimes the namespace value thank you for your help
On 2021-03-28 12:03, Aki Tuomi wrote:
Hi!
mail_location = maildir:/var/vmail/%d/%n:LAYOUT=fs:INDEX=/var/mailindex
This is going to put everyone's indexes under /var/mailindex, without separating them properly. Might cause fun issues.
Can you give an concrete example of what your issue is?
Aki
On 28/03/2021 13:35 Joan Moreau <jom@grosjo.net> wrote:
Hi Anyone on that ? Thank you so much
On 2021-03-22 18:16, Joan Moreau wrote:
Hi The function mailbox_list_get_root_forcedreturns sometimes the first or the second value of the INDEX param for the same mailbox.
How to make sure this returns only the correct one of the corresponding mailbox ?
mail_location = maildir:/var/vmail/%d/%n:LAYOUT=fs:INDEX=/var/mailindex namespace { location = virtual:/nix/store/toto-virtual:INDEX=/var/vmail/%d/%n/virtual prefix = virtual/ separator = / subscriptions = no }
Thank you
participants (2)
-
Aki Tuomi
-
Joan Moreau