Page 1 of 1

Why script didn't work?

Posted: 2010-06-07 09:14
by mns17
subject include russian simbol!!!
script:

Sub OnSubjectov(oMessage)
EventLog.write("Subject befor - " & oMessage.Subject)
oMessage.Subject = "[ov] " & oMessage.Subject
EventLog.write("Subject after - " & oMessage.Subject)
oMessage.Save
End Sub

Result:

4900 "2010-06-07 14:02:46.487" "Subject befor - Калмыкову Ивану - пример "технического решения" [Fwd: ТР версии 1.2]"
4900 "2010-06-07 14:02:46.488" "Subject after - [ov] "
---------------------------------------------------------------------------------------------
4900 "2010-06-07 14:08:08.924" "Subject befor - абвгде"
4900 "2010-06-07 14:08:08.924" "Subject after - [ov] "
---------------------------------------------------------------------------------------------

4900 "2010-06-07 14:14:09.673" "Subject befor - test"
4900 "2010-06-07 14:14:09.674" "Subject after - [ov] test"

Re: Why script didn't work?

Posted: 2010-06-07 09:24
by ^DooM^
What version of hMail are you using?

Re: Why script didn't work?

Posted: 2010-06-07 09:51
by mns17
5.3.2-B1769

Re: Why script didn't work?

Posted: 2010-06-07 18:14
by martin
If you disable the script, send another message with the same content, locate the .EML file, zip the EML file and send it to me at martin@hmailserver.com I can see if I can reproduce it.

Re: Why script didn't work?

Posted: 2010-06-08 04:14
by mns17
Martin, i send e-mail to you with zip

Re: Why script didn't work?

Posted: 2010-06-08 22:27
by martin
I've found the problem. It occurs if you try to modify the subject of a message with no message-wide character set. The issue will be fixed in 5.4 (a beta will be available within a week).

I don't know russian. Is the Subject of the message you sent me confidential, or can I add this subject to the automated test suit for hMailServer (which is public)? (I've removed the From-address, To-address and every other field except for the subject line).

Re: Why script didn't work?

Posted: 2010-06-09 04:20
by mns17
Thank, martin.

New Subject on russian for your automatic test:
"Это тестовая тема письма для проверки работы севрера с русскими символами"

Re: Why script didn't work?

Posted: 2010-06-18 18:08
by martin
Thanks.

Let me know if you want to test 5.4. It's not really ready to be used in production but if you have something specific which you want to test in a test tenvironment, just let me know.

Re: Why script didn't work?

Posted: 2010-06-18 19:05
by Bill48105
Did I hear 5.4?!? Got my testbed all ready! :D