luksen/maildir

Cannot run Purge() on keys returned by Unseen()

Closed this issue · 1 comments

Hi,

I've noticed that keys returned by Unseen() can only be purged if a suffix is applied. E.g:
dir.Purge(key + ":2,")
This might be by design because the key relates to the /new/ format rather than /cur/ but it would still be useful to purge against keys returned by Unseen.

Thanks very much for the library!

Best wishes,
Steve

Thanks! Purge and Move both erroneously calculated the file names instead of using Filename.