Flags/PermanentFlags somehow contains an empty string
評估
研究方向
從 mailbox.go 的第 128-137 行開始,追蹤 mailbox flags 在 SELECT 回應被序列化之前是如何收集的。重現 go-imap issue 544 中描述的空字串 flag,然後驗證 SELECT 回應不包含空 flag,並且可以由 go-imap 再次解析。
由索引模型根據 Issue 內容生成。
描述
originally reported here: https://github.com/emersion/go-imap/issues/544
tl;dr: go-imap-sql inserts an empty string to Flags, which then gets incorrectly serialized in go-imap for the SELECT response and becomes impossible to get parsed back by go-imap itself
looks like the logic for collecting flags from the mailbox is wrong:
https://github.com/foxcpp/go-imap-sql/blob/c0176dad/mailbox.go#L128-L137
the simplest fix would be
if flag == "" {
continue
}
though i'm not sure why it even happens
- 主要語言
- Go
- 星號
- 26
- 分支
- 13
- 平均合併
- 9 天 1 小時
- 30 天內合併 PR
- 1
環境準備
這個專案沒有提供開發容器、Dockerfile 或貢獻指南,環境需要你自己搭建:先看它的 README,通用步驟見我們的新手貢獻指南。
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
foxcpp/go-imap-sql 的其他 Issue
-
難度 3/5 1-2 天 新手友好度 35/100
foxcpp/go-imap-sql#48 ·
-
Messages without a Content-Transfer-Encoding header pass an empty encoding to go-imap可能已有人在做 @ptrcnull 於 1129 天前認領。 未關閉
難度 2/5 1-3 小時 新手友好度 45/100
foxcpp/go-imap-sql#46 ·
-
難度 3/5 1-2 天 新手友好度 48/100
foxcpp/go-imap-sql#37 ·
-
enhancement security
難度 5/5 一週以上 新手友好度 15/100
foxcpp/go-imap-sql#34 ·
-
enhancement performance
難度 3/5 1-2 天 新手友好度 35/100
foxcpp/go-imap-sql#33 · 1 個 reaction ·
查看 foxcpp/go-imap-sql 的全部 Issue
相似的 Issue
-
TOTP enrollment returns 500 for phone-only users (empty TOTP account name)可能已有人在做 @emiliosandoval4 今天認領。 未關閉
難度 2/5 1-3 小時 新手友好度 60/100
維護者通常 1 天內回覆
-
8.9 to 8.10 Helm upgrade guide still says deprecated keys are removed in chart v16 (Camunda 8.11)未關閉
難度 1/5 1 小時以內 新手友好度 78/100
camunda/camunda-platform-helm#7559 ·
維護者通常 1 天內回覆
-
triage/pending-triage
難度 2/5 1-3 小時 新手友好度 74/100
external-secrets/external-secrets#7117 ·
維護者通常 2 天內回覆
-
bug
難度 2/5 1-3 小時 新手友好度 72/100
ENTERPILOT/GoModel#1183 · 1 則留言 ·
維護者通常 1 天內回覆
-
createEtcdKV fails on a single transient etcd endpoint sync timeout可能已有人在做 @vldmit 今天認領。 未關閉contribution
難度 2/5 1-3 小時 新手友好度 70/100
維護者通常 1 天內回覆