Hacktoberfest 2026:維護者為十月標記出來的 issue,仍然開放、適合新手。 瀏覽 Hacktoberfest issue

Flags/PermanentFlags somehow contains an empty string

未關閉
#44 2 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

@ptrcnull 已經在處理了。

開始於 2023年9月11日。

  • #45 來自 @ptrcnull —— 未關閉

評估

難度
2/5
預估耗時
1-3 小時
新手友好度
48/100
Issue 類型
缺陷
描述清晰度
基本清楚
活躍度
停滯
技術堆疊
go, sql
領域
backend, databases

研究方向

從 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,通用步驟見我們的新手貢獻指南。

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

foxcpp/go-imap-sql 的其他 Issue

查看 foxcpp/go-imap-sql 的全部 Issue

相似的 Issue

更多 Go Issue

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。