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/%TESTNUMBER -X 'STORE 123 +Flags \Deleted' -u user:secret -: imap://%HOSTIP:%IMAPPORT/%TESTNUMBER -X EXPUNGE -u user:secret
#
# Verify data after the test has been "shot"
A001 CAPABILITY
A002 LOGIN user secret
A003 SELECT %TESTNUMBER
A004 STORE 123 +Flags \Deleted
A005 EXPUNGE
A006 LOGOUT