oops pop3 is ordered asc

master
Bel LaPointe 2023-10-16 18:45:38 -06:00
parent deb6c2d196
commit cae30cc5d1
1 changed files with 3 additions and 1 deletions

View File

@ -110,8 +110,10 @@ func (e *Emailer) ReadPOP3() (chan *mail.Message, error) {
if err != nil {
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)
raw, err := c.Retr(id)
if err != nil {