oops pop3 is ordered asc

This commit is contained in:
Bel LaPointe
2023-10-16 18:45:38 -06:00
parent deb6c2d196
commit cae30cc5d1

View File

@@ -110,8 +110,10 @@ func (e *Emailer) ReadPOP3() (chan *mail.Message, error) {
if err != nil { if err != nil {
return nil, err return nil, err
} }
log.Printf("/c.ListAll() = %v", ids)
for _, id := range ids { for i := len(ids) - 1; i >= 0; i-- {
id := ids[i]
log.Printf("c.Retr(%v)", id) log.Printf("c.Retr(%v)", id)
raw, err := c.Retr(id) raw, err := c.Retr(id)
if err != nil { if err != nil {