1. Home
  2. Knowledge Base
  3. Softalk
  4. Softalk Mail Server
  5. How can I save a copy of message attachments into a specific Windows folder?

How can I save a copy of message attachments into a specific Windows folder?

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.

Was this article helpful?

Related Articles

Need Support?

Can't find the answer you're looking for?
Contact Support