foxcpp / foxcpp/go-imap-sql

Flags/PermanentFlags somehow contains an empty string

オープン
#44 コメント 2 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
Go
スター
26
フォーク
12
PR マージ指標
30日以内にマージされた PR はありません

説明

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
```go
if flag == "" {
continue
}
```

though i'm not sure why it even happens

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。