Search found 17 matches

by DimanG
2020-10-08 13:17
Forum: General discussions
Topic: Messages are doubling infinitely ro local recepients
Replies: 1
Views: 1005

Messages are doubling infinitely ro local recepients

Please help! After failure in enterprise system messages are doubling by hMailServer infinitely ro local recepients. What's wrong and where to dig?
by DimanG
2020-08-15 21:40
Forum: Scripting
Topic: Python script not running
Replies: 9
Views: 3862

Re: Python script not running

After reading some Russian sources I've tried this:

CreateObject("Wscript.Shell").Run "d:\Python34\Scripts\zcmail1.cmd " & Chr(34) & strFileName & ".eml" & Chr(34), 0

and it works!

Thanks to everybody for your attention and participation.

PS: VBS syntaxis - is a dreadful thing...
by DimanG
2020-08-04 00:09
Forum: Scripting
Topic: Python script not running
Replies: 9
Views: 3862

Re: Python script not running

Last example:
"ERROR" 7560 "2020-08-04 00:47:02.259" "Script Error: Source:
by DimanG
2020-08-03 22:22
Forum: Scripting
Topic: Python script not running
Replies: 9
Views: 3862

Re: Python script not running

Tried several logging events in vbs, py and cmd scripts and found out that everything is ok with variables, but the cmd-script doesn't run at all. The hMailserver log is always full of Script Error records with some unknown codes. Is there any way to see what's wrong with of WScript.Shell Exec comma...
by DimanG
2020-07-29 17:45
Forum: Scripting
Topic: Python script not running
Replies: 9
Views: 3862

Re: Python script not running

Screenshots are in Russian. I can tell in some words: the domain user the service hMailServer runs under is a local admin. Full rights are given for it on the folder and all subfolders and files where Python is located. The script is executed manually under this user with success. But what's inside ...
by DimanG
2020-07-28 16:29
Forum: Scripting
Topic: Python script not running
Replies: 9
Views: 3862

Re: Python script not running

Added maximal rights (local admin) to the user. Nothing changed. How can I debug the script execution? Logs contain nothing to analyze.
Manually it runs ok.
by DimanG
2020-07-23 14:29
Forum: Scripting
Topic: Python script not running
Replies: 9
Views: 3862

Python script not running

Hi everybody! I've got a sub executing Python script over the saved message file. No result. What's wrong? Or where to look for? There are some excessive code cause I was trying to find solution. The message file is copied successfully, but the Python script does nothing, while running manually is o...
by DimanG
2018-11-12 12:57
Forum: Scripting
Topic: How to delete processed message?
Replies: 1
Views: 1984

How to delete processed message?

Hi everybody!

How to delete processed message? Is there any method like Message.delete()? Couldn't find it...
by DimanG
2016-11-28 21:35
Forum: Scripting
Topic: Script doesn't decode attachment from base64
Replies: 13
Views: 5822

Re: Script doesn't decode attachment from base64

SorenR wrote:Could be a code problem. The script is OK and the mime headers seems fine, but I'm no expert...

Are you using "oMessage.EncodeFields" anywhere in your script ??
No. I've shown only the problem piece of code. Many others that are the same (from another senders) work fine.
by DimanG
2016-11-23 10:06
Forum: Scripting
Topic: Script doesn't decode attachment from base64
Replies: 13
Views: 5822

Re: Script doesn't decode attachment from base64

Sorry, but I began the topic telling about script: the script in EventHandlers.vbs breaks the attachment. All other clients have no trouble. Can you paste the script here in [code] [/code] ? Sub extract_nakl_attach(oMessage) Dim i Dim aPath If (InStr(LCase(oMessage.FromAddress), "grand-capital.net"...
by DimanG
2016-11-22 15:07
Forum: Scripting
Topic: Script doesn't decode attachment from base64
Replies: 13
Views: 5822

Re: Script doesn't decode attachment from base64

I think it is your receiving email client that has its associations wrong. If I save your message source (posted above) as an email and open it, then the DBF attachment is opened correctly. Check the client MIME or extension associations for DBF files within the email client settings. Sorry, but I ...
by DimanG
2016-11-22 12:50
Forum: Scripting
Topic: Script doesn't decode attachment from base64
Replies: 13
Views: 5822

Re: Script doesn't decode attachment from base64

The originating client is sending it as a text file and that is the cause of the problem. (Receiving clients will open it as text.) ------------D8Mailer Content-Type: text/plain; charset="windows-1251" It seems to me, this is the text part of message. The dbf-attachment header is this: ------------...
by DimanG
2016-11-22 10:08
Forum: Scripting
Topic: Script doesn't decode attachment from base64
Replies: 13
Views: 5822

Re: Script doesn't decode attachment from base64

I drop message attachments that are pdf or doc or xls frequently without error What mail client is originally sending the .dbf files? My guess is that that mail client doesn't attach the files correctly initially I also do that rather long without errors (dbf and txt files), but this sender makes m...
by DimanG
2016-11-21 10:38
Forum: Scripting
Topic: Script doesn't decode attachment from base64
Replies: 13
Views: 5822

Script doesn't decode attachment from base64

Hi all! Script doesn't decode attachment part of the message from only one sender using Message.attachments.item(i-1).saveAs(aFullPath). I.e. it saves it on disk base64 encoded. And only dbf-files. Rar-archives are saved normally. Also all dbf-files are saved normally from other mail client. How cou...
by DimanG
2016-04-26 12:14
Forum: Scripting
Topic: How to save message body to file.
Replies: 2
Views: 2139

Re: How to save message body to file.

Thanks! It works!
by DimanG
2016-04-26 11:12
Forum: Scripting
Topic: How to save message body to file.
Replies: 2
Views: 2139

How to save message body to file.

I need to save message body to file. How to do this?