Search found 5 matches

by buskeyl
2020-12-01 06:45
Forum: Scripting
Topic: Script Conditionally Save Attachement
Replies: 16
Views: 5170

Re: Script Conditionally Save Attachement

“if your more comfortable with REGEX”. Ha ha. Funny. Not even. I’ll learn them eventually. Spent may an hour on regexer.com. Still makes my head hurt. Good to know though. Thanks for all the help. It made total sense once you ‘splained it.
by buskeyl
2020-12-01 03:14
Forum: Scripting
Topic: Script Conditionally Save Attachement
Replies: 16
Views: 5170

Re: Script Conditionally Save Attachement

Also, is there a way for me to invoke a specific PowerShell script? Can I set up a function like the one we did above that will run a PowerShell script wit a message of particular criteria is received? I am fairly proficient with PowerShell, much less so with VBS. I admit I did not search for it yet...
by buskeyl
2020-12-01 02:56
Forum: Scripting
Topic: Script Conditionally Save Attachement
Replies: 16
Views: 5170

Re: Script Conditionally Save Attachement

Ha! Changed it to “contains” from “equals” and it worked. Sweet. Would like to understand why that was necessary?
by buskeyl
2020-12-01 02:54
Forum: Scripting
Topic: Script Conditionally Save Attachement
Replies: 16
Views: 5170

Re: Script Conditionally Save Attachement

Sorry, didn’t mention the criteria did I? In both cases, the rule criteria was: To: field equals <the email address I was sending my tests into>

Left the TEST field value blank, as I have no idea what’s that’s there for :p.

Would that not work?
by buskeyl
2020-12-01 01:30
Forum: Scripting
Topic: Script Conditionally Save Attachement
Replies: 16
Views: 5170

Re: Script Conditionally Save Attachement

Hoping I can get a few pointers here. Just trying to facilitate attachments that get sent into Hmail get saved off to a local folder. I edited C:\Program Files (x86)\hMailServer\Events\EventHandlers.vbs to add the following to the bottom of the file (It was not clear if it needed to be anyplace spec...