IMAP
Clear Text
STORE
EXPUNGE
CUSTOMREQUEST
#
# Server-side
* 123 FETCH (FLAGS (\Seen \Deleted))
* 123 EXPUNGE
#
# Client-side
imap
IMAP STORE - delete message with confirmation (CUSTOMREQUEST)
imap://%HOSTIP:%IMAPPORT/816 -X 'STORE 123 +Flags \Deleted' -u user:secret -: imap://%HOSTIP:%IMAPPORT/816 -X EXPUNGE -u user:secret
#
# Verify data after the test has been "shot"
A001 CAPABILITY
A002 LOGIN user secret
A003 SELECT 816
A004 STORE 123 +Flags \Deleted
A005 EXPUNGE
A006 LOGOUT