Closed paulm17 closed 9 years ago
Are you sure that the mailbox is open in READ-WRITE mode? Enable raw message logging (imap.DefaultLogMask = imap.LogConn | imap.LogRaw
) and your answer will probably be in there.
Thanks. I had:
c.Select("INBOX", true).
Also if this helps anyone else. I had to do:
seq, _ := imap.NewSeqSet("")
seq.AddNum(uid)
c.UIDStore(seq, "+FLAGS.SILENT", imap.NewFlagSet(`\Deleted`))
c.Expunge(nil)
To have deletions.
Hi,
I've tried all day to delete messages. No matter what I try, it just doesn't work.
My code in its entirety that deals with looping through the mailbox.
I want to be able to select WHICH UIDs I delete. That's all.
Thanks