foxcpp / foxcpp/go-imap-sql

Flags/PermanentFlags somehow contains an empty string

Ouverte
#44 2 commentaires 0 réactions 0 personnes assignées Voir sur GitHub
Langage dominant
Go
Étoiles
26
Forks
12
Métriques de merge des PR
Aucune PR mergée en 30 j

Description

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

Guide de contribution

Aucun guide de contribution indexé pour ce dépôt

Évaluation

Cette issue n'a pas encore été évaluée.

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.