Re: Separators and shared namespaces

2023-09-28 Thread Aki Tuomi via dovecot

> On 28/09/2023 13:47 EEST Francis Augusto Medeiros-Logeay via dovecot 
>  wrote:
> 
>  
> Hi Martin,
> 
> I had a similar problem:
> 
> https://dovecot.org/mailman3/archives/list/dovecot@dovecot.org/thread/DNHM3OOV3SZUC2SIS7FMWL7MMT64F73T/
> 
> 
> It seemed to me that using ‘.’ truncated the domain name when that was used 
> in the paths, such as when using %d.
> 
> Best,
> 
> Francis

Hi!

Just to set things straight, it's not "truncated".

If your namespace separator is '.', then using

shared.u...@foo.bar.com will come out as

shared -> user@foo -> bar -> com, folder structure. Which is why you need to 
use / as separator.

Aki
___
dovecot mailing list -- dovecot@dovecot.org
To unsubscribe send an email to dovecot-le...@dovecot.org


Separators and shared namespaces

2023-09-28 Thread Francis Augusto Medeiros-Logeay via dovecot
Hi Martin,

I had a similar problem:

https://dovecot.org/mailman3/archives/list/dovecot@dovecot.org/thread/DNHM3OOV3SZUC2SIS7FMWL7MMT64F73T/


It seemed to me that using ‘.’ truncated the domain name when that was used in 
the paths, such as when using %d.

Best,

Francis 
___
dovecot mailing list -- dovecot@dovecot.org
To unsubscribe send an email to dovecot-le...@dovecot.org


Re: Separators and shared namespaces

2023-09-27 Thread martin f krafft via dovecot

Regarding the following, written by "Aki Tuomi" on 2023-09-27 at 13:09 Uhr 
+0300:

The physical (file system) separator and hierachy separator are not related. 
You can safely change the hierarchy separator to / .


Okay, so what is it used for?

The shared namespace should have list=children, and you will not 
see anything by default, unless you have acl_shared_dict and have 
actually shared a folder.


Yeah, I have all of that. It works with `/`, but when I use `.`, it 
stops working. ACLs/sharing stays the same.


Best,

--
martin krafft | https://matrix.to/#/#madduck:madduck.net
 
"glaube heißt nicht wissen wollen, was wahr ist."

 - friedrich nietzsche
{: .blockquote }
 
spamtraps: madduck.bo...@madduck.net

{: .hidden }

___
dovecot mailing list -- dovecot@dovecot.org
To unsubscribe send an email to dovecot-le...@dovecot.org


Re: Separators and shared namespaces

2023-09-27 Thread Francis Augusto Medeiros-Logeay via dovecot
Hi,

When I used a ‘.’  as a separator, it seemed to truncate paths with the domain 
name, such as those with %%d. That happened only to shared namespaces.

Best,

Francis 
___
dovecot mailing list -- dovecot@dovecot.org
To unsubscribe send an email to dovecot-le...@dovecot.org


Re: Separators and shared namespaces

2023-09-27 Thread Aki Tuomi via dovecot

> On 27/09/2023 12:03 EEST martin f krafft via dovecot  
> wrote:
> 
>  
> Hello,
> 
> I am running Dovcecot 2.3.19 on Debian, and I am trying to get 
> shared to work.
> 
> It's working if I do this:
> 
> ```
> namespace {
>type = shared
>separator = /
>prefix = Team/%%u/
>location = 
> maildir:%%h/Maildir:INDEX=%h/Maildir/Team/%%u:INDEXPVT=%h/Maildir/Team/%%u
>subscriptions = no
>list = children
> }
> ```
> 
> After setting some ACLs, I now have the following in `LIST` output:
> 
> ```
> …
> . LIST "" *
> * LIST (\HasNoChildren) "/" INBOX
> […]
> * LIST (\Noselect \HasChildren) "/" Team/rechnungseing...@example.org
> * LIST (\HasNoChildren) "/" "Team/rechnungseing...@example.org/Archiv 
> bearbeitete Rechnungen"
> . OK List completed (0.003 + 0.000 + 0.007 secs).
> ```
> 
> However, since I am using Maildir, the default separator is `.`, and 
> so I have to change the separator for the `inbox` namespace, which 
> makes me feel uneasy. The system still uses `.dotted.notation` on 
> the filesystem despite the namespace change, and subfolders and all 
> still work, but it still rubs me the wrong way to do this.
> 
> And yet, when I try to use `.` like this:
> 
> ```
>separator = .
>prefix = Team.%%u.
>location = 
> maildir:%%h/Maildir:INDEX=%h/Maildir/.Team,%%u:INDEXPVT=%h/Maildir/.Team.%%u
> ```
> 
> then nothing shows up in `LIST` output. Any idea why this might be?
> 
> Thanks,
> 
> -- 
> martin krafft | https://matrix.to/#/#madduck:madduck.net
Hi!

The physical (file system) separator and hierachy separator are not related. 
You can safely change the hierarchy separator to / .

There is nothing wrong about this.

The shared namespace should have list=children, and you will not see anything 
by default, unless you have acl_shared_dict and have actually shared a folder.

Aki
___
dovecot mailing list -- dovecot@dovecot.org
To unsubscribe send an email to dovecot-le...@dovecot.org


Separators and shared namespaces

2023-09-27 Thread martin f krafft via dovecot

Hello,

I am running Dovcecot 2.3.19 on Debian, and I am trying to get 
shared to work.


It's working if I do this:

```
namespace {
  type = shared
  separator = /
  prefix = Team/%%u/
  location = 
maildir:%%h/Maildir:INDEX=%h/Maildir/Team/%%u:INDEXPVT=%h/Maildir/Team/%%u
  subscriptions = no
  list = children
}
```

After setting some ACLs, I now have the following in `LIST` output:

```
…
. LIST "" *
* LIST (\HasNoChildren) "/" INBOX
[…]
* LIST (\Noselect \HasChildren) "/" Team/rechnungseing...@example.org
* LIST (\HasNoChildren) "/" "Team/rechnungseing...@example.org/Archiv bearbeitete 
Rechnungen"
. OK List completed (0.003 + 0.000 + 0.007 secs).
```

However, since I am using Maildir, the default separator is `.`, and 
so I have to change the separator for the `inbox` namespace, which 
makes me feel uneasy. The system still uses `.dotted.notation` on 
the filesystem despite the namespace change, and subfolders and all 
still work, but it still rubs me the wrong way to do this.


And yet, when I try to use `.` like this:

```
  separator = .
  prefix = Team.%%u.
  location = 
maildir:%%h/Maildir:INDEX=%h/Maildir/.Team,%%u:INDEXPVT=%h/Maildir/.Team.%%u
```

then nothing shows up in `LIST` output. Any idea why this might be?

Thanks,

--
martin krafft | https://matrix.to/#/#madduck:madduck.net
 
"den stil verbessern, das heißt den gedanken verbessern."

 - friedrich nietzsche
{: .blockquote }
 
spamtraps: madduck.bo...@madduck.net

{: .hidden }
___
dovecot mailing list -- dovecot@dovecot.org
To unsubscribe send an email to dovecot-le...@dovecot.org