{"id":17146099,"url":"https://github.com/emersion/go-imap-quota","last_synced_at":"2025-04-13T11:32:35.866Z","repository":{"id":54694445,"uuid":"62077237","full_name":"emersion/go-imap-quota","owner":"emersion","description":"QUOTA extension for go-imap","archived":false,"fork":false,"pushed_at":"2021-02-03T12:53:29.000Z","size":19,"stargazers_count":7,"open_issues_count":2,"forks_count":3,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-10T12:16:15.980Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/emersion.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-06-27T18:09:37.000Z","updated_at":"2022-05-19T11:07:44.000Z","dependencies_parsed_at":"2022-08-14T00:10:54.335Z","dependency_job_id":null,"html_url":"https://github.com/emersion/go-imap-quota","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/emersion%2Fgo-imap-quota","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/emersion%2Fgo-imap-quota/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/emersion%2Fgo-imap-quota/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/emersion%2Fgo-imap-quota/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/emersion","download_url":"https://codeload.github.com/emersion/go-imap-quota/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248705591,"owners_count":21148558,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-14T21:07:50.353Z","updated_at":"2025-04-13T11:32:35.843Z","avatar_url":"https://github.com/emersion.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# go-imap-quota\n\n[![GoDoc](https://godoc.org/github.com/emersion/go-imap-quota?status.svg)](https://godoc.org/github.com/emersion/go-imap-quota)\n\n[QUOTA extension](https://tools.ietf.org/html/rfc2087) for [go-imap](https://github.com/emersion/go-imap)\n\n## Usage\n\n```go\npackage main\n\nimport (\n\t\"log\"\n\n\t\"github.com/emersion/go-imap-quota\"\n)\n\nfunc main() {\n\t// Connect to IMAP server\n\n\t// Create a quota client\n\tqc := quota.NewClient(c)\n\n\t// Check for server support\n\tif !qc.SupportsQuota() {\n\t\tlog.Fatal(\"Client doesn't support QUOTA extension\")\n\t}\n\n\t// Retrieve quotas for INBOX\n\tquotas, err := qc.GetQuotaRoot(\"INBOX\")\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\n\t// Print quotas\n\tlog.Println(\"Quotas for INBOX:\")\n\tfor _, quota := range quotas {\n\t\tlog.Printf(\"* %q, resources:\\n\", quota.Name)\n\t\tfor name, usage := range quota.Resources {\n\t\t\tlog.Printf(\"  * %v: %v/%v used\\n\", name, usage[0], usage[1])\n\t\t}\n\t}\n}\n```\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Femersion%2Fgo-imap-quota","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Femersion%2Fgo-imap-quota","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Femersion%2Fgo-imap-quota/lists"}