Ok, avec titre pour chacun
This commit is contained in:
4
imap.go
4
imap.go
@@ -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() {
|
||||
|
Reference in New Issue
Block a user