Re: [exim] maildir_quota_directory_regex with subfolders

Page principale
Supprimer ce message
Répondre à ce message
Auteur: Marten Lehmann
Date:  
À: exim-users
Sujet: Re: [exim] maildir_quota_directory_regex with subfolders
Hello,

>>the docu says, that this is the default:
>>
>>maildir_quota_directory_regex = ^(?:cur|new|\..*)$
>
> Assuming that you have also set maildir_use_size_file.


I haven't set maildir_use_size_file because our IMAP server (dovecot)
doesn't support it. So when using it, exim would add the size of each
new message, but dovecot wouldn't subtract deleted messages. So in the
end a mailbox wouldn't accept new messages although it might be empty.

> Without an experiment, I'm not sure. I note this comment in the code:
>
> "Maildirs can only be one level deep. However, this function recurses,
> so it might cope with deeper nestings."
>
> and in the document I have the describes Maildir++ and folders, it says
>
> "Can folders have subfolders, defined in a recursive fashion? The
> answer is no. If you want to have a client with a hierarchy of
> folders, emulate it. Pick a hierarchy separator character, say ":".
> Then, folder foo/bar is subdirectory .foo:bar."


This isn't possible with dovecot.

This is INBOX:
cur
new
This is Trash:
.Trash/cur
.Trash/new
This is Office/Boss
.Office.Boss/cur
.Office.Boss/new

So the maximum is two levels.

> The experiment you should do is to run a delivery to one of these
> mailboxes, as an Exim admin user, using the -d-all+transport flag to get
> debugging output for the delivery. This should show the quota
> calculations.


I will do it soon.

Regards
Marten