mailinabox icon indicating copy to clipboard operation
mailinabox copied to clipboard

Mailbox Quotas

Open jrsupplee opened this issue 5 years ago • 21 comments

This is an implementation of mailbox quotas using dovecot's quota capabilities. This pull request supersedes a previous pull request that contained some changes not pertinent to the main repository.

jrsupplee avatar Apr 17 '19 09:04 jrsupplee

@dexbleeker left some important comments that need to be addressed.

We also never include full configuration files that clobber existing package configuration files. This PR adds three new configuration files that clobber existing ones. Those need to be removed and any settings changes they make to stock Dovecot configuration files would need to be made using our editconf tool or another method we use for other files we modify.

JoshData avatar Mar 08 '20 14:03 JoshData

@dexbleeker left some important comments that need to be addressed.

We also never include full configuration files that clobber existing package configuration files. This PR adds three new configuration files that clobber existing ones. Those need to be removed and any settings changes they make to stock Dovecot configuration files would need to be made using our editconf tool or another method we use for other files we modify.

Will quotas be integrated if these are addressed?

jrsupplee avatar Apr 14 '21 21:04 jrsupplee

And a question: Is it possible for users to view the usage percentage (in Roundcube)?

Yes

jrsupplee avatar Apr 14 '21 21:04 jrsupplee

Will quotas be integrated if these are addressed?

I can't promise to merge something I haven't seen, and I could have more requests, but I don't foresee a problem.

JoshData avatar Apr 14 '21 21:04 JoshData

The merge conflicts need to be resolved also.

JoshData avatar Apr 14 '21 21:04 JoshData

@dexbleeker left some important comments that need to be addressed.

We also never include full configuration files that clobber existing package configuration files. This PR adds three new configuration files that clobber existing ones. Those need to be removed and any settings changes they make to stock Dovecot configuration files would need to be made using our editconf tool or another method we use for other files we modify.

Which files are getting clobbered? If there are files that are copied it is because they did not previously exist in the installation.

jrsupplee avatar Apr 22 '21 19:04 jrsupplee

Will quotas be integrated if these are addressed?

I can't promise to merge something I haven't seen, and I could have more requests, but I don't foresee a problem.

I understand that you need to see the final product, but it will be essentially what you see here with some updates.

I stopped trying with the quotas pull request because you (@JoshData) made a remark that you were not sure that quotas should be a part of the master repository. So has a decision been made to integrate quotas or is it still under discussion?

jrsupplee avatar Apr 22 '21 19:04 jrsupplee

Which files are getting clobbered?

20-imap.conf and 90-quota.conf. 20-imap.conf is edited elsewhere in our setup so it can't also be clobbered. 90-quota.conf appears to be essentially empty (no non-comment lines) in the distribution-supplied file so clobbering may be ok, but to avoid apt upgrade conflict issues it may be better to create a new file.

So has a decision been made to integrate quotas or is it still under discussion?

I am OK to merge if the feedback is addressed, yes. In the years since this began people have used your PR and proven that it is a good solution - that's what changed.

JoshData avatar May 08 '21 12:05 JoshData

@jrsupplee any timeline on this one? it would be awesome! thanks so much.

Derridaralalala avatar Jul 05 '21 10:07 Derridaralalala

How can one help to get that merged ?

Shall one fork the fork, address the feedback and...pull request to merge ? :/

The feedback that needs to be addressed is about 20-imap.conf that is "clobbered" ? How do we un-cloberred such ?

guizmoau avatar Oct 29 '21 16:10 guizmoau

@guizmoau I know when I run updates, if the update changes anything in /etc/postfix/main.cf, the install script politely places a # on my customizations. Maybe look at how that is done, as I understand this is what the non-clobber policy to be referring to, but I may be misunderstanding that term.

myfirstnameispaul avatar Oct 29 '21 16:10 myfirstnameispaul

Yes, that's what I'm referring to.

JoshData avatar Oct 30 '21 11:10 JoshData

Hello @JoshData , is there any change get quota working under official MiaB release? appreciate your working on that. thank you.

sorokaalex avatar Nov 02 '22 13:11 sorokaalex

I am not working on it. If someone completes this PR addressing my feedback, then I'll happily merge it.

JoshData avatar Nov 02 '22 21:11 JoshData

I am not working on it. If someone completes this PR addressing my feedback, then I'll happily merge it.

thank you per your reply. could you please inform us what we need to do to complete PR?

sorokaalex avatar Nov 03 '22 10:11 sorokaalex

Hello @jrsupplee and @dexbleeker I saw you have been working on this subject for some years ago and this PR still open. Is there anything I can help to complete this PR to Josh be able to merge it in to official release ? thank you

sorokaalex avatar Nov 04 '22 12:11 sorokaalex

Temperature check: if I were to pick this up, are we still interested in getting it merged? I can update it to the latest code and address changes etc. TBD on timeline.

chadfurman avatar Apr 05 '24 20:04 chadfurman

I read through the code in this PR, it seems pretty straight forward. The bootstrap script is weird, I agree, so I'll take a look at that. I'll make a new PR that includes these changes after I get the basic app running locally and try to understand what's changed in the main codebase over the last four years relative to this.

Specifically on the last point, if anyone has any thoughts here please lmk. I can't see the conflicts for some reason on github, so it won't be till I pull it down and run the diff that I see the full extent of the challenge with updating this code to the latest version.

chadfurman avatar Apr 06 '24 01:04 chadfurman

There happened to be a discussion on the forum a few days back. Perhaps you saw it? In the end you need buy-in from joshdata, but it looks like he is on board with this change.

In addition, the powerMiaB fork includes the quota branch, it might be of help if both branches have not diverged too much.

kiekerjan avatar Apr 06 '24 14:04 kiekerjan

I'm working with stylnchris, actually. Thank you for the links. I can take a look at PMiaB also, though I suspect my effort will be best placed looking at the current MiaB code and forward-porting the changes in this PR (plus the requested edits). I'd love to hear from @JoshData as getting this merged to main-line would be ideal. Either way, I'll make a new PR with the latest code from this repo mixed with the code from this branch and link it here when it's ready. I'll be picking this work up later this month.

chadfurman avatar Apr 06 '24 14:04 chadfurman