Skip to content

imap: display quota information - #6973

Closed
axmo12 wants to merge 1 commit into
curl:masterfrom
axmo12:fix-getquotaroot
Closed

axmo12 wants to merge 1 commit into
curl:masterfrom
axmo12:fix-getquotaroot

Conversation

@axmo12

@axmo12 axmo12 commented Apr 27, 2021

Copy link
Copy Markdown
Contributor

Show response to "GETQUOTAROOT INBOX" command.

Show response to "GETQUOTAROOT INBOX" command.
@bagder bagder added the IMAP label Apr 27, 2021
@bagder

bagder commented Apr 29, 2021

Copy link
Copy Markdown
Member

Can we come up with a better way for this than to just keep adding specific commands to that already overly large conditional check?

@axmo12

axmo12 commented May 1, 2021

Copy link
Copy Markdown
Contributor Author

Well, at some point one would need to keep track of all commands that send untagged responses.
While I do agree that this solution is everything but nice, reworking this would mean refactoring the whole imap state machine and will break a lot of things.

@bagder

bagder commented May 3, 2021

Copy link
Copy Markdown
Member

Well, at some point one would need to keep track of all commands that send untagged responses.

Must we? Can we for example perhaps instead reverse the check and just allow anything else?

While I do agree that this solution is everything but nice, reworking this would mean refactoring the whole imap state machine and will break a lot of things.

It only breaks if we don't do it correctly.

@axmo12

axmo12 commented Jun 5, 2021

Copy link
Copy Markdown
Contributor Author

Well, at some point one would need to keep track of all commands that send untagged responses.

Must we? Can we for example perhaps instead reverse the check and just allow anything else?

I don't see your point here. - Even if you do it in a reverse manner, one would need to have a dictionary in here with all the IMAP commands.

@danielgustafsson

Copy link
Copy Markdown
Member

What do we want to do here, merge this and pursue a cleanup in a separate patchset or perform a refactoring as part of this?

@bagder

bagder commented Oct 28, 2021

Copy link
Copy Markdown
Member

Let's just merge this to at least fix @axmo12's issue. I still want it done in a better way but clearly not me nor anyone else is going to do this anytime soon.

@bagder bagder closed this in 49ab21e Oct 28, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Development

Successfully merging this pull request may close these issues.

3 participants