Ok, avec titre pour chacun

This commit is contained in:
Laurent Ulrich
2025-07-31 17:06:30 +02:00
parent 67700bcb42
commit 8877efaeca
7 changed files with 106 additions and 70 deletions

View File

@@ -99,7 +99,7 @@ func (mb *MailBox) GetMessages() ([]Post, error) {
if inbox.NumMessages <= 0 {
return nil, fmt.Errorf("nomessages")
}
entries := make([]Post, 0)
posts := make([]Post, 0)
for i := uint32(1); i <= inbox.NumMessages; i++ {
var post Post
seqSet := imap.SeqSetNum(i)
@@ -193,7 +193,7 @@ func (mb *MailBox) GetMessages() ([]Post, error) {
}
posts = append(posts, post)
}
return entries, nil
return posts, nil
}
func (mb *MailBox) Close() {