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