Resolution
This is an example of a Content Filtering rule that runs a Windows script.
To do this you would need to create a rule in Content Filtering. For WorkgroupMail v7 the Content Filtering plug-in must be suitably licenced.
Detail
To save specific message attachments to a folder on the server, create a rule as follows:-
File domain.com message attachments to a folder
Check messages before sending. If message sent to *domain.com* run script
the script can be set to the following
set sess = createobject(“wmapi.wmsession”)
bLoggedIn = sess.Login(“admin pwd”)
Set msg = sess.GetMessageFromFileName(“
set att = msg.GetFirstAttachment
sFile = att.Decode(“c:temp”)
Set the path and Administrator password as required.