How do you delete mail in IMAP? kOW3imapActionExecute
Mike Matthews - Omnis
omnis at lineal.co.uk
Sat Feb 11 14:41:35 UTC 2023
In some RFC pages, I found a list of commands:
https://www.rfc-editor.org/rfc/rfc3501#page-23
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?
Thanks
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 lineal.co.uk<mailto:mike.matthews at lineal.co.uk>
www.lineal.co.uk<http://www.lineal.co.uk/>
www.sqlworks.co.uk<http://www.sqlworks.co/>
On 11 Feb 2023, at 09:40, Mike Matthews - Omnis via omnisdev-en <omnisdev-en at lists.omnis-dev.com<mailto:omnisdev-en at lists.omnis-dev.com>> 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.
Thanks
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 lineal.co.uk<mailto:omnis at lineal.co.uk><mailto:mike.matthews at lineal.co.uk>
www.lineal.co.uk<http://www.lineal.co.uk><http://www.lineal.co.uk/>
www.sqlworks.co.uk<http://www.sqlworks.co.uk><http://www.sqlworks.co/>
On 12 Apr 2022, at 07:50, Miguel Garcia <miguel.garcia at roig.com<mailto:miguel.garcia at roig.com><mailto:miguel.garcia at roig.com>> 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 athttps://linkprotect.cudasvc.com/url?a=https%3a%2f%2flists.omnis-dev.com&c=E,1,3ze8tf6ZqESwdscwTNECTaPbR89OzPd_VnZo5WKfJVtFrh4YBqWmD9K55Cuotr9wzbcFmESkGqqNE-dhufuNbVcsgZqGPPsK5Bob0i10WpS1cKPWO2VK&typo=1
Start a new message ->mailto:omnisdev-en at lists.omnis-dev.com
--
*Miguel Garcia Segui
DPTO Informatica
971 65 71 73 Ext. 2044*
_____________________________________________________________
Manage your list subscriptions at https://linkprotect.cudasvc.com/url?a=https%3a%2f%2flists.omnis-dev.com&c=E,1,6snWB8ymdDIaxDdiuvUxuxCurcJgjahuha-WsoQV7IZ3jbLOR7dP0szdUw8fM1pThjslAQufhseXAYrWHUDMwQ_4bEngD37gmzlOPHe2ZdgzpqY-GGPa8wavTw,,&typo=1
Start a new message -> mailto:omnisdev-en at lists.omnis-dev.com
_____________________________________________________________
Manage your list subscriptions at https://lists.omnis-dev.com
Start a new message -> mailto:omnisdev-en at lists.omnis-dev.com
More information about the omnisdev-en
mailing list