How do you delete mail in IMAP? kOW3imapActionExecute

Mike Matthews - Omnis omnis at
Sat Feb 11 14:41:35 UTC 2023

In some RFC pages, I found a list of commands:

Section 6 has them.

I’m trying to use the kOW3imapActionExecute COPY command where I want to move an email to another mailbox.  I just can’t get the OW3 worker to do this.

I can get the same kOW3imapActionExecute to make new MailBoxes, etc.  But copying an email just fails!  Arghh..

Anybody have this working and can share some examples please?


Mike Matthews

Lineal Software Solutions
Commercial House, The Strand<x-apple-data-detectors://1/1> Barnstaple, Devon, EX31 1EU<x-apple-data-detectors://1/1>

omnis at<mailto:mike.matthews at><><>

On 11 Feb 2023, at 09:40, Mike Matthews - Omnis via omnisdev-en <omnisdev-en at<mailto:omnisdev-en at>> wrote:

Caution: This is a message which has originated from outside the organisation. Ensure the sender is trusted and the content is safe before opening links or attachments.

Hello All,

I’m following up on this thread from earlier.  How do you find all of the possible commands available when you use ‘kOW3imapActionExecute’?

Kindly, EXPUNGE is shown here by Miguel.  So I’m guessing there must be a reference doc somewhere?  Hoping that might include adding new mailboxes, etc.


Mike Matthews

Lineal Software Solutions
Commercial House, The Strand<x-apple-data-detectors://1/1> Barnstaple, Devon, EX31 1EU<x-apple-data-detectors://1/1>

omnis at<mailto:omnis at><mailto:mike.matthews at><><><><>

On 12 Apr 2022, at 07:50, Miguel Garcia <miguel.garcia at<mailto:miguel.garcia at><mailto:miguel.garcia at>> wrote:

Hi Das,

First set the "deleted" flag to kTrue using kOW3imapActionSetMessageFlags.

Example :

   Do RowFlags.$addcols('answered',kInteger,k32bitint,)
   Do RowFlags.$addcols('deleted',kInteger,k32bitint,)
   Do RowFlags.$addcols('draft',kInteger,k32bitint,)
   Do RowFlags.$addcols('flagged',kInteger,k32bitint,)
   Do RowFlags.$addcols('seen',kInteger,k32bitint,)
   Do RowFlags.$assigncols(kUnknown,kTrue,kUnknown,kUnknown,kUnknown)
   Do $cinst.$start(kOW3imapActionSetMessageFlags,pMailboxName,pUID,RowFlags) Returns lOk

Then to delete completely de message execute the EXPUGNE imap command.

Example :

           Calculate lCmd as $cinst.$chartoutf7(nfd(trim('EXPUNGE')))

           Do $cinst.$start(kOW3imapActionExecute,pMailboxName,lCmd) Returns lOk

$cinst is an IMAPClientWorker object and pMailboxName is the folder of the message.

Best regards.

El 11/4/22 a las 20:52, Das Goravani escribió:
Talking 10.2 here

In IMAP I have noticed actions for things like listing mailboxes, listing messages and so on…

But there’s no action for deleting a message completely

How do you delete a message completely in the IMAP world within Omnis

The one mention of "get’s rid of message" was in reference to appending the same message again to a list.. it said messages with duplicate ID’s disappear by the IMAP engine, so I was thinking one way to get rid of a message is to append itself to the same list and then both copies will go away?

Then there’s the Action for commands and there is some type of DELETE command within IMAP since I was able to find it’s error codes

I guess I have to make a custom command binary and execute that having the delete command within it

Anyone have that or know the way to delete?
Manage your list subscriptions at,1,3ze8tf6ZqESwdscwTNECTaPbR89OzPd_VnZo5WKfJVtFrh4YBqWmD9K55Cuotr9wzbcFmESkGqqNE-dhufuNbVcsgZqGPPsK5Bob0i10WpS1cKPWO2VK&typo=1
Start a new message ->mailto:omnisdev-en at
*Miguel Garcia Segui
DPTO Informatica
971 65 71 73 Ext. 2044*

Manage your list subscriptions at,1,6snWB8ymdDIaxDdiuvUxuxCurcJgjahuha-WsoQV7IZ3jbLOR7dP0szdUw8fM1pThjslAQufhseXAYrWHUDMwQ_4bEngD37gmzlOPHe2ZdgzpqY-GGPa8wavTw,,&typo=1
Start a new message -> mailto:omnisdev-en at

Manage your list subscriptions at
Start a new message -> mailto:omnisdev-en at

More information about the omnisdev-en mailing list