IMAP retrieve messages marked for deletion

I need to retrieve messages marked for deletion but non expunged yet,
I’ve searched documentation but not found any mode.

Tried to fetch FLAGS, but with:

imap.uid_fetch(data.attr[‘UID’], [‘RFC822’, ‘FLAGS’, ‘INTERNALDATE’])

I’ve received

Seen
$NotJunk
Flagged

but not deleted,
anybody could indicate a solution?

thanks,

Darek

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs