Search found 29 matches

by msdd
2018-12-20 16:48
Forum: Scripting
Topic: Script to rename Attachment file type
Replies: 49
Views: 14779

Re: Script to rename Attachment file type

Hello Everyone, long time no see ;-) but the problem is still anoying me neary every day... As I want to go on Holiday in January I need to fix this... so here is the latest: - The script is renaming attachments just fine. :D - if an Email is an HTML-Mail with an embedded Image like the example from...
by msdd
2017-11-10 21:48
Forum: General discussions
Topic: Don't reject "MAIL FROM" Invalid address
Replies: 6
Views: 972

Re: Don't reject "MAIL FROM" Invalid address

works exactly like I need it.

Mailserver is used only internaly, so not too big a concern.

Thanks a lot & have a nice weekend.
by msdd
2017-11-10 19:40
Forum: General discussions
Topic: Don't reject "MAIL FROM" Invalid address
Replies: 6
Views: 972

Re: Don't reject "MAIL FROM" Invalid address

here is the diag: [code]2017-11-10 Hmailserver: 5.6.6-B2383 DOMAINS "Domain1.com" - dexxxxxxxxxx.de Enabled: True SIGNATURE LIMITS DKIM ADVANCED Enabled: False Max size: 0 Enabled: False Catchall: info@Domain1.com Max message size: 0 Plus addressing: False Max size of accounts: 0 Greylisting: False ...
by msdd
2017-11-10 19:36
Forum: General discussions
Topic: Don't reject "MAIL FROM" Invalid address
Replies: 6
Views: 972

Re: Don't reject "MAIL FROM" Invalid address

Allready did that, call was in this case from 109 SMTP Log: "SMTPD" 24048 1276 "2017-11-10 18:34:43.986" "192.168.20.207" "SENT: 220 ms01 ESMTP" "SMTPD" 24060 1276 "2017-11-10 18:34:43.986" "192.168.20.207" "RECEIVED: EHLO [127.0.0.1]" "SMTPD" 24060 1276 "2017-11-10 18:34:43.986" "192.168.20.207" "S...
by msdd
2017-11-10 19:22
Forum: General discussions
Topic: Don't reject "MAIL FROM" Invalid address
Replies: 6
Views: 972

Don't reject "MAIL FROM" Invalid address

Hello Forum, tl/dr: How can I configure to accept emails with invalid from-adresses? I know there is an old thread with the same title, but as it is 3 years old and the solution is not applicable any more I opened a new one... https://www.hmailserver.com/forum/viewtopic.php?t=26935 Setting: I have a...
by msdd
2017-10-09 20:51
Forum: Scripting
Topic: Script to rename Attachment file type
Replies: 49
Views: 14779

Re: Script to rename Attachment file type

Hallo porcupine, thanks for your work on that blank body problem. firstly: you are right, theissue with the blank body does only happen with html mails. I boiled it down to html mails with embedde pictures... secondly: even with your updated script (thanks for the comments, they help allot) it still...
by msdd
2017-10-02 16:51
Forum: Scripting
Topic: Script to rename Attachment file type
Replies: 49
Views: 14779

Re: Script to rename Attachment file type

Hallo porcupine, thanks for your improvements. I have not worked on this issue (blank body) for a while but it still keeps anoying me. I looked over the script you wrote but as I wrote above my skills are limited, so despite your very well commented scriot I do not realy understand your approach. He...
by msdd
2016-12-29 15:48
Forum: Scripting
Topic: Script to rename Attachment file type
Replies: 49
Views: 14779

Re: Script to rename Attachment file type

Hello Again, i am getting there, thank you for taking me on this journey... ;-) I think the on accesp message does not work for me, as I get my messages from a catch-all acount from our webserver. I Think I have to use the OnExternalAccountDownload instead... but that does not seem to be right as no...
by msdd
2016-12-28 18:12
Forum: Scripting
Topic: Script to rename Attachment file type
Replies: 49
Views: 14779

Re: Script to rename Attachment file type

thank you so much!
I will test it tomarrow.

Have a nice day!
by msdd
2016-12-28 17:12
Forum: Scripting
Topic: Script to rename Attachment file type
Replies: 49
Views: 14779

Re: Script to rename Attachment file type

like so?

Code: Select all

Sub OnAcceptMessage(oClient, oMessage)
call RenameAttachments5   
End Sub
EDIT: it is script 5 so thats no typo...
by msdd
2016-12-28 16:56
Forum: Scripting
Topic: Script to rename Attachment file type
Replies: 49
Views: 14779

Re: Script to rename Attachment file type

hi, it works as far as I can tell, and together with my ruleset its a wonderull way to completly fill a drive with all the same file very fast. ... meaning: My rule was also applied to the newly created email, which then created a new email and so on... I tried to clear that by putting a rule on the...
by msdd
2016-12-28 15:44
Forum: Scripting
Topic: Script to rename Attachment file type
Replies: 49
Views: 14779

Re: Script to rename Attachment file type

hello again. first: Thank you very much for your help. I appreciate it a lot! second: I Implemented your latest script, found a little error in this line: For r = oMessage.recipients.Count -1 To 0 Step -1 newMessage.AddRecipient oMessage.Recipients(r).Address oMessage.Recipients(r).Address Next corr...
by msdd
2016-12-20 13:15
Forum: Scripting
Topic: Script to rename Attachment file type
Replies: 49
Views: 14779

Re: Script to rename Attachment file type

hi,

thank you. Here my second question again:
Ok so now every mail with attachments is beeing copied to a dedicated post-box, but the copy has no attachments. As far as I understand the Script the copy should have the original attachments.
Is that right?
thanks
Martin
by msdd
2016-12-20 12:37
Forum: Scripting
Topic: Script to rename Attachment file type
Replies: 49
Views: 14779

Re: Script to rename Attachment file type

Hello Again, I got the Script from jimimaseye running (there is a new N essage at the end ) caused me some headaches but I learned a lot about debugging. Ok so now every mail with attachments is beeing copied to a dedicated post-box, but the copy has no attachments. As far as I understand the Script...
by msdd
2016-12-19 22:10
Forum: Scripting
Topic: Script to rename Attachment file type
Replies: 49
Views: 14779

Re: Script to rename Attachment file type

thats an interesting fact.
On my hMS I also run ClamAV....
by msdd
2016-12-19 12:09
Forum: Scripting
Topic: Script to rename Attachment file type
Replies: 49
Views: 14779

Re: Script to rename Attachment file type

Hello jimimaseye, I thought about that too, but as far as I can see this happens with text-emails as well. I allready created a rule to place a copy of the email in an seperate folder but quickly realized, as my rule about renaming is run by every email, I just create a copy of every email - thats w...
by msdd
2016-12-19 11:25
Forum: Scripting
Topic: Script to rename Attachment file type
Replies: 49
Views: 14779

Re: Script to rename Attachment file type

Hello Again, its been a while but the problem arose again. It does only happen in some mails, but I fail to see a pattern. Only common thing: they all have attachments that get renamed through the script. But not all mails with attachments lose their body... Once again emails that got their attachme...
by msdd
2016-11-25 20:37
Forum: Scripting
Topic: Script to rename Attachment file type
Replies: 49
Views: 14779

Re: Script to rename Attachment file type

hi,
@SorenR: thanks for your improvements, I am now running a Test with your new script for several users. Lets see if the problem arises again.

Do you see any reason why the behavior I expereienced occured in the older Script I used?

Thank you for your help
Martin
by msdd
2016-11-25 10:23
Forum: Scripting
Topic: Script to rename Attachment file type
Replies: 49
Views: 14779

Re: Script to rename Attachment file type

Hi,

A general rule wich matches all incoming email:

If receipient list contains "@mydomainname" run function "RenameAttachments"
(see picture below)
by msdd
2016-11-24 17:58
Forum: Scripting
Topic: Script to rename Attachment file type
Replies: 49
Views: 14779

Re: Script to rename Attachment file type

Hello Forum, I Used your help in the matter mentioned above, and it worked nearly flawlessly for quite a while now! BUT: lately its seems that the script is manipulating the body of the email - namely: some emails that have extensions wich are changed to .WARNING do not have any body left after pass...
by msdd
2016-05-09 14:31
Forum: Scripting
Topic: Script to rename Attachment file type
Replies: 49
Views: 14779

Re: Script to rename Attachment file type

yes, I allways do.
The fact that The error now occurs in line 56 is a strong indicator, as the script with the password-line is one line longer...
by msdd
2016-05-09 14:19
Forum: Scripting
Topic: Script to rename Attachment file type
Replies: 49
Views: 14779

Re: Script to rename Attachment file type

I just did another test with your version of the script and the Password in it, it runs into the same error (just in line 56)...
by msdd
2016-05-09 14:15
Forum: Scripting
Topic: Script to rename Attachment file type
Replies: 49
Views: 14779

Re: Script to rename Attachment file type

dear jimimaseye please, I did not mean to offend you. I am very gratefull for your help and it seems to bring me closer to a solution. I just established a rule for myself, to not just copy and paste code if I do not have at least an idea what it might do on my system, and putting a plaintext passwo...
by msdd
2016-05-09 13:16
Forum: Scripting
Topic: Script to rename Attachment file type
Replies: 49
Views: 14779

Re: Script to rename Attachment file type

thanks again!

I am a bit reluctant to try the new code, as it requires Authetication to the server...
Why is this needed?

It is for example not needed in this viewtopic.php?t=26175#p165892 script?

thanks
Martin
by msdd
2016-05-09 12:40
Forum: Scripting
Topic: Script to rename Attachment file type
Replies: 49
Views: 14779

Re: Script to rename Attachment file type

Strange enough: the Error message states a Line, that is not even in the EventHandler.vbs - file. at fist ist was at line 379 allthough the file had only 377 lines, now I took all my scripts out and have a nearly empty default file with 31 lines, the error in the Log-file points to line 33... I am w...
by msdd
2016-05-09 12:01
Forum: Scripting
Topic: Script to rename Attachment file type
Replies: 49
Views: 14779

Re: Script to rename Attachment file type

I found an error: 800A000D
losly translated: type incompatible

Is the script I posted above plausible?
by msdd
2016-05-09 11:46
Forum: Scripting
Topic: Script to rename Attachment file type
Replies: 49
Views: 14779

Re: Script to rename Attachment file type

Yes I have, I also have reloaded and also Checked the syntax every time.

[EDIT]
I am more the iterative-scripting type - I need a kind of breakpoint to see if the script is even run... do I find such information in any logfile?

[EDIT]
I just found aditional infos in a log...
by msdd
2016-05-09 11:39
Forum: Scripting
Topic: Script to rename Attachment file type
Replies: 49
Views: 14779

Re: Script to rename Attachment file type

Hello jimimaseye, thanks for the fas treply and sorry for my slow one... obviously I overestimated myself - I cant get the script to run. I put it into the EventHandlers.vbs under "Sub OnAcceptMessage(oClient, oMessage)" but nothing happens. I also put a modified form (see below) in another sub and ...
by msdd
2016-04-21 16:43
Forum: Scripting
Topic: Script to rename Attachment file type
Replies: 49
Views: 14779

Script to rename Attachment file type

Hello hmail-community first: I Like hmailserver - it serves me well and I like how versatile it is. Now to my problem: As you know there is a lot of macro-viruses out there, so I used the bloc attachments-policy to block all Word and Excel fiels, wich works fine. My users are informed and when they ...