Delete message by script - Outlook Express 5.0.2

Hello,

I want to do a script that deletes spam message. Because OE already as a SPAM feature I want to execute a script that trashes the message identified as a spamm by OE.

I have looked to the dictionnary and tried different sentences like:

delete message
move message to folder “Trash”
move incoming message to folder “Suppressed mail”

and so on, without succes. What am I doing wrong ?? Thanks in advance.

Robert Lespérance
Québec, Canada

You can use “delete” followed by a reference to the related message.

delete message id 654
delete message 1 of in box folder

If you post here your code, perhaps we can help you better to get this reference properly.

Thanks JJ :lol:,

In OE 5.0.2 there is a tool to filter SPAM EMAIL and it can execute a applescript. Once the filter intercept a message I would like OE to trigger a script that deletes this incoming message. So i tried different cript like:

Tell application “Outlook Express”
delete incoming message
End tell

or

Tell application “Outlook Express”
delete message
End tell

or

Tell application “Outlook Express”
move message to folder “Deleted mail”
End tell

And it doesn’t work. The script is probable simple, but after looking in the OE dictionnary I could not find any other verbs to do what I wished. Thanks in advance.

Robert Lespérance
Québec