Search found 185 matches

by cblaze22
2020-03-16 03:26
Forum: Scripting
Topic: Move emails to top of the queue based on certain priority header flags
Replies: 66
Views: 26889

Re: Move emails to top of the queue based on certain priority header flags

I added that new line.

Yes I run it in task scheduler because it checks every minute the queue to resend important emails if the queue is super long.
by cblaze22
2020-03-15 22:19
Forum: Scripting
Topic: Move emails to top of the queue based on certain priority header flags
Replies: 66
Views: 26889

Re: Move emails to top of the queue based on certain priority header flags

Well got another orphan email. The email looks to have an attachment, so a large file. I am wondering if the copyfile function is not done when the deletefile is hit and it doesnt see the file. The email was 10MB. Does EventLog.Write work in a task scheduler VBScript? If so does it go into the HMail...
by cblaze22
2020-03-14 17:57
Forum: Scripting
Topic: Move emails to top of the queue based on certain priority header flags
Replies: 66
Views: 26889

Re: Move emails to top of the queue based on certain priority header flags

Yes other then that one issue where it oddly didnt find a file, yes.

If you create and copy an object, does that not open something? If it writes a new file to the server, doesnt that keep a handle on it.
by cblaze22
2020-03-14 01:44
Forum: Scripting
Topic: Move emails to top of the queue based on certain priority header flags
Replies: 66
Views: 26889

Re: Move emails to top of the queue based on certain priority header flags

Kind of odd but I got a File Not Found message at the line below. I am going to check first if it exists before deletion. I did have an orphan .eml, which was probably the one that didnt get deleted but I am not sure why it didnt find it when the file name should be the same. oFSO.DeleteFile strFile...
by cblaze22
2020-03-08 04:15
Forum: Scripting
Topic: Move emails to top of the queue based on certain priority header flags
Replies: 66
Views: 26889

Re: Move emails to top of the queue based on certain priority header flags

Any comments on my code? I know someone said the original code should delete the .eml file, but it doesnt so is my deletion the right way to do it?
by cblaze22
2020-03-06 02:33
Forum: Scripting
Topic: Move emails to top of the queue based on certain priority header flags
Replies: 66
Views: 26889

Re: Move emails to top of the queue based on certain priority header flags

Ok so that is the issue. The source email is being retried from the line below I believe right away. So that is the original source. oApp.GlobalObjects.DeliveryQueue.ResetDeliveryTime(CLng(column(0))) What is the best way to now delete the copied .eml file then? fso.DeleteFile strFilename, True This...
by cblaze22
2020-03-05 03:11
Forum: Scripting
Topic: Move emails to top of the queue based on certain priority header flags
Replies: 66
Views: 26889

Re: Move emails to top of the queue based on certain priority header flags

So it does create a physical file on the server? I know it creates a mail object with that name, but does it actually create the .eml file on the server? If so it never gets deleted does it?
by cblaze22
2020-03-04 19:08
Forum: Scripting
Topic: Move emails to top of the queue based on certain priority header flags
Replies: 66
Views: 26889

Re: Move emails to top of the queue based on certain priority header flags

From my undertanding on your outline no NEW file is created on the server and no NEW mail message is inserted into the queue. It always works with the original .eml file?
by cblaze22
2020-03-04 16:27
Forum: Scripting
Topic: Move emails to top of the queue based on certain priority header flags
Replies: 66
Views: 26889

Re: Move emails to top of the queue based on certain priority header flags

I know all that, no lesson, it was obvious when I tried the script and the warning that was gave. I am not well versed in VB, so if that copy function is creating a new file on the system, which I assume its doing, then wouldnt it then need to be deleted, or the source .eml would need to? I am just ...
by cblaze22
2020-03-04 02:25
Forum: Scripting
Topic: Move emails to top of the queue based on certain priority header flags
Replies: 66
Views: 26889

Re: Move emails to top of the queue based on certain priority header flags

I think the code below was creating orphan .eml files and ended up with 80GB of emails. Why are we doing a fake copy in this code?

Code: Select all

fso.CopyFile QueueMessage(QueueFile), oMailFilename, True
by cblaze22
2020-02-25 15:47
Forum: General discussions
Topic: .eml files not being removed from Data folder
Replies: 20
Views: 10987

Re: .eml files not being removed from Data folder

There is no way to attach in a direct message, pasting is to large it looks like, didnt send. I really dont want to put a link online. You could direct message me your email.
by cblaze22
2020-02-25 03:12
Forum: General discussions
Topic: .eml files not being removed from Data folder
Replies: 20
Views: 10987

Re: .eml files not being removed from Data folder

That session ID is spread out in the logs so the next line could be a different session so I have no way to know what line is correct? What I sent you was a combination of that session ID in the log that I parsed out to paste in here. This comes after the ending session. "DEBUG" 3492 "2020-02-23 16:...
by cblaze22
2020-02-24 16:07
Forum: General discussions
Topic: .eml files not being removed from Data folder
Replies: 20
Views: 10987

Re: .eml files not being removed from Data folder

I put everyting in regards to that session ID. Will there be a new session ID for this one email that has that?

Also there is no anti virus scanning on here.
by cblaze22
2020-02-24 03:22
Forum: General discussions
Topic: .eml files not being removed from Data folder
Replies: 20
Views: 10987

Re: .eml files not being removed from Data folder

I enabled logging and see an orphaned email session in it. Not sure what I should be looking for but the session says. "DEBUG" 3492 "2020-02-23 16:50:07.705" "Creating session 179565" "DEBUG" 1820 "2020-02-23 16:50:07.721" "TCP connection started for session 179565" "SMTPC" 3160 179565 "2020-02-23 1...
by cblaze22
2020-02-22 23:26
Forum: General discussions
Topic: .eml files not being removed from Data folder
Replies: 20
Views: 10987

Re: .eml files not being removed from Data folder

Oh gosh thank you. Any answers to my question? How will DDS not work with cleaning up old .eml that are sent out. Three more today out of thousands.
by cblaze22
2020-02-22 15:39
Forum: General discussions
Topic: .eml files not being removed from Data folder
Replies: 20
Views: 10987

Re: .eml files not being removed from Data folder

This isnt spam, this was sent from our application.

How do you use the DataSynchronizer.exe via a command line. Want to run it via task schedulder.
by cblaze22
2020-02-22 05:05
Forum: General discussions
Topic: .eml files not being removed from Data folder
Replies: 20
Views: 10987

Re: .eml files not being removed from Data folder

The .eml is not empty and listed below. This is another orphan .eml. I run the data synchronizer and it skips it for some reason, doesnt add it to database. How can I run the data sychronizer from the command line to delete anything on disk not in database. dkim-signature: v=1; a=rsa-sha256; d=expos...
by cblaze22
2020-02-18 03:39
Forum: General discussions
Topic: .eml files not being removed from Data folder
Replies: 20
Views: 10987

Re: .eml files not being removed from Data folder

Ok what does that even mean?

So I disabled that code for a whole day and I have 4 orphan .eml files in the Data folder with nothing in delivery queue. So why are these files no being deleted?
by cblaze22
2020-02-15 21:26
Forum: General discussions
Topic: .eml files not being removed from Data folder
Replies: 20
Views: 10987

.eml files not being removed from Data folder

I had an awful situation where 82 GB of .eml files were stored in my Data folder, not deleted. I think most of those emails were not valid emails, like @gmail.comm, etc. So they failed to be sent. I do have scripts running to make a HTTP call on a failure but does HMailserver not delete .eml files t...
by cblaze22
2019-06-10 05:05
Forum: Scripting
Topic: Programmatically set retry count/delay amount
Replies: 31
Views: 9732

Re: Programmatically set retry count/delay amount

Well I really cant think of anything else I can do in this regard. I thought there maybe a way since we figured out the X-Priority and Unsubscribe based on status code features we needed.
by cblaze22
2019-05-29 18:52
Forum: Scripting
Topic: Programmatically set retry count/delay amount
Replies: 31
Views: 9732

Re: Programmatically set retry count/delay amount

So is there no way to add something to an email header in the queue that failed on the first try?
by cblaze22
2019-05-28 02:36
Forum: Scripting
Topic: Programmatically set retry count/delay amount
Replies: 31
Views: 9732

Re: Programmatically set retry count/delay amount

Well yea but I didnt know it didnt call it on every call but it does make sense but I am back at square one. Well when can I add the X-Failure header then lol. Does it hit any other methods that you know of on a failure/retry setup?
by cblaze22
2019-05-28 00:38
Forum: Scripting
Topic: Programmatically set retry count/delay amount
Replies: 31
Views: 9732

Re: Programmatically set retry count/delay amount

I have a weird thing going on here. There is stuff in my queue, and when I send now for something like cherylspink@outlook.con which it should fail, but the log below with SMTP turned on only produces that and leaves it in the Queue when clicking Send now. Any suggestions on this? It should hit my O...
by cblaze22
2019-05-27 01:03
Forum: Scripting
Topic: Programmatically set retry count/delay amount
Replies: 31
Views: 9732

Re: Programmatically set retry count/delay amount

Well I can control delivery attempts through UI but I want to do this only through certain failed messages. Guess I could add a new header to the email like X-Status-Code: 500 and if set to say -1 then delete it with a rule. Does that make sense?
by cblaze22
2019-05-26 15:58
Forum: Scripting
Topic: Programmatically set retry count/delay amount
Replies: 31
Views: 9732

Re: Programmatically set retry count/delay amount

Ok I think that makes sense with the 500. But with errors like "Error Description: No mail servers appear to exists for the recipient's address", which has no status code it looks like even when I remove the Message with the Message ID, it creates a new Message ID. So it looks like the code below do...
by cblaze22
2019-05-25 06:06
Forum: Scripting
Topic: Programmatically set retry count/delay amount
Replies: 31
Views: 9732

Re: Programmatically set retry count/delay amount

I think its just a delay in the queue being updated that is throwing me off. I saw some emails pop back up. However the code below seems to be working. If you think there is a better way to refactor it let me know, not a VBScript expert. Sub OnDeliveryFailed(oMessage, sRecipient, sErrorMessage) Dim ...
by cblaze22
2019-05-25 05:18
Forum: Scripting
Topic: Programmatically set retry count/delay amount
Replies: 31
Views: 9732

Re: Programmatically set retry count/delay amount

I am doing this inside the Sub OnDeliveryFailed(oMessage, sRecipient, sErrorMessage) method. I did a test and the syntax doesnt break anything. I did a test to view the queue of the email going through the loop count. However, after the email fails, 550, it doesnt stay in the queue to retry. Is this...
by cblaze22
2019-05-23 13:45
Forum: Scripting
Topic: Programmatically set retry count/delay amount
Replies: 31
Views: 9732

Re: Programmatically set retry count/delay amount

Will that syntax work within the normal script methods. I know I had to initialize the DeliveryQueue with the COM API outside of it.
by cblaze22
2019-05-23 05:19
Forum: Scripting
Topic: Programmatically set retry count/delay amount
Replies: 31
Views: 9732

Re: Programmatically set retry count/delay amount

Oh yea that makes sense, just remove the email if its not say 421. How do you remove something from the queue though programmatically?

Something like this

Code: Select all

GlobalObjects.DeliveryQueue.Remove(oMessage.ID)
in the DeliveryFail method?
by cblaze22
2019-05-18 17:23
Forum: Scripting
Topic: Programmatically set retry count/delay amount
Replies: 31
Views: 9732

Re: Programmatically set retry count/delay amount

Or can you delete the message altogether in Sub OnDeliveryFailed(oMessage, sRecipient, sErrorMessage) so it doesnt retry? Can Result.Value = 2 work in this method?
by cblaze22
2019-05-18 14:53
Forum: Scripting
Topic: Programmatically set retry count/delay amount
Replies: 31
Views: 9732

Re: Programmatically set retry count/delay amount

Back to the original question. I have failed emails, which call a http request to remove it. However, I set the retry count to 3. This means that failed email will be called 3 times for 500+ errors when its already been removed. My question is can I set the retry count, loop of the email? If so how ...
by cblaze22
2019-05-17 20:58
Forum: General discussions
Topic: Delete noreply still showing in queue
Replies: 32
Views: 5410

Re: Delete noreply still showing in queue

So if I test for the mail-demon it will drop them if I do that in OnAcceptQueue and they wont show up in the queue?
by cblaze22
2019-05-17 20:56
Forum: General discussions
Topic: Time to say good bye ...
Replies: 24
Views: 9416

Re: Time to say good bye ...

I am not sure what the adoption rate is or how many hmailservers are currently in existence. However, if we wanted to keep this going and give some incentive then donations should become a big part. I donated $100 the other day and I believe if we have a fund each month that needs to be hit to say f...
by cblaze22
2019-05-13 14:49
Forum: Scripting
Topic: Programmatically set retry count/delay amount
Replies: 31
Views: 9732

Re: Programmatically set retry count/delay amount

Any thoughts on these?

https://www.tecmint.com/best-open-sourc ... -software/

I need this installed on Windows and doesnt look like there are many options. Looks like you have to have a modem connected, which on Azure I dont have the possibility too.
by cblaze22
2019-05-13 04:16
Forum: Scripting
Topic: Programmatically set retry count/delay amount
Replies: 31
Views: 9732

Re: Programmatically set retry count/delay amount

Oh you mean like Twilio, which we do integrate with but you have to PAY! We ran 163,000+ messages in two days. Thats $1,222+ with Twilio!
by cblaze22
2019-05-13 03:57
Forum: Scripting
Topic: Programmatically set retry count/delay amount
Replies: 31
Views: 9732

Re: Programmatically set retry count/delay amount

Not sure what you mean by resolve it with a sms gateway.
by cblaze22
2019-05-13 01:00
Forum: Scripting
Topic: Programmatically set retry count/delay amount
Replies: 31
Views: 9732

Re: Programmatically set retry count/delay amount

These email to text carriers have quota limits per hour. We get messages like the one below quite a bit because of how much messaging occurs during weekend tournaments. The example below is for 7077314137@pm.sprint.com. "Error Type: SMTP[nl] Remote server (52.32.5.167) issued an error.[nl] hMailServ...
by cblaze22
2019-05-12 16:30
Forum: Scripting
Topic: Programmatically set retry count/delay amount
Replies: 31
Views: 9732

Programmatically set retry count/delay amount

Is there a way to programmatically set the retry count and delay amount when an emails fails, specifically like a 421 status code where the receiving server has a quota limit and we would like to send those emails on a delay in the future. Other errors like 452 or 500 can be rejected out right and n...
by cblaze22
2019-05-12 03:44
Forum: Scripting
Topic: Move emails to top of the queue based on certain priority header flags
Replies: 66
Views: 26889

Re: Move emails to top of the queue based on certain priority header flags

Dravion wrote:
2019-05-10 15:42
Why do you compare this?
cblaze22 wrote:
2019-05-10 15:33
If oMail.HeaderValue("X-Priority") = "1"
Do you manipulate the Headers externaly so you can rely on it?
Yes I set this externally.
by cblaze22
2019-05-12 02:42
Forum: Scripting
Topic: Move emails to top of the queue based on certain priority header flags
Replies: 66
Views: 26889

Re: Move emails to top of the queue based on certain priority header flags

Well its been a success. Had a log of 250 items, sent my priority email and got it within seconds. I always do. I thought this thing ran every minute, which I setup, but it seems its kinda instant, not sure why. In any case we have successfully moved items up the queue! Nice job guys!
by cblaze22
2019-05-12 02:40
Forum: General discussions
Topic: Delete noreply still showing in queue
Replies: 32
Views: 5410

Re: Delete noreply still showing in queue

Good weekend, nothing in log at all. I think the cores helped. However I still get the original question issues where the email go into the queue for no reason. If I set some code in OnAcceptMessage to test for From: mailer-daemon@email.test.com I believe I can drop it there correct and not have it ...
by cblaze22
2019-05-11 14:21
Forum: General discussions
Topic: Delete noreply still showing in queue
Replies: 32
Views: 5410

Re: Delete noreply still showing in queue

Will do, I also increased from 2 to 4 cores this weekend to see how the queue goes.
by cblaze22
2019-05-10 15:33
Forum: Scripting
Topic: Move emails to top of the queue based on certain priority header flags
Replies: 66
Views: 26889

Re: Move emails to top of the queue based on certain priority header flags

Here is my most updated code. Big test this weekend to see how it works. Worried about pulling ALL messages while doing this. Again doing this in a trigger with the incoming message is so ideal. Dim column, fso, Match, Matches, oMail, Priority : Priority = False Dim oApp : Set oApp = CreateObject("h...
by cblaze22
2019-05-10 06:21
Forum: Scripting
Topic: Move emails to top of the queue based on certain priority header flags
Replies: 66
Views: 26889

Re: Move emails to top of the queue based on certain priority header flags

I was skeptical of that line also, but my friend it does work and has long been working before my updated code.

Code: Select all

strFilename = oMail.Filename
by cblaze22
2019-05-10 03:34
Forum: Scripting
Topic: Move emails to top of the queue based on certain priority header flags
Replies: 66
Views: 26889

Re: Move emails to top of the queue based on certain priority header flags

My code seems to work. Would the code below be something to do with any type of error?

Code: Select all

On Error Resume Next
by cblaze22
2019-05-10 02:51
Forum: Scripting
Topic: Move emails to top of the queue based on certain priority header flags
Replies: 66
Views: 26889

Re: Move emails to top of the queue based on certain priority header flags

I got a file not found error. Probably ran at the same time it was being deleted and the .eml was already deleted. I havent tested the code below, but do you believe its right? The error shows in a pop up on the server and doesn’t run again. Is there a way to do try catch so it will run next minute?...
by cblaze22
2019-05-09 13:31
Forum: Feature requests
Topic: Before and After Delivery Queue Trigger Methods
Replies: 0
Views: 12391

Before and After Delivery Queue Trigger Methods

I believe it would be beneficial to have Before and After a message is added to the queue. Right now I do such a thing to read a priority header to send something to the top of the queue. However this involves the COM API, VBScript and an outside CMD Window using Task Scheduler. It also involves rea...
by cblaze22
2019-05-09 05:42
Forum: Scripting
Topic: Move emails to top of the queue based on certain priority header flags
Replies: 66
Views: 26889

Re: Move emails to top of the queue based on certain priority header flags

Set up and will see how it works this weekend when loads of emails come in. Final code is below, needed CLng and updated header name. You said to put a value for StartIn in Task Scheduler. If nothing is in there would it hurt anything? I put my VBScript file is a customer folder and pointed the Star...
by cblaze22
2019-05-09 02:21
Forum: General discussions
Topic: Delete noreply still showing in queue
Replies: 32
Views: 5410

Re: Delete noreply still showing in queue

Ill take your word for it. I removed it. Anything else you see needed in my report?
by cblaze22
2019-05-08 21:30
Forum: Scripting
Topic: Move emails to top of the queue based on certain priority header flags
Replies: 66
Views: 26889

Re: Move emails to top of the queue based on certain priority header flags

Awesome Ill let you know how it goes. Anyway I can donate to your skills.
by cblaze22
2019-05-08 16:27
Forum: Scripting
Topic: Move emails to top of the queue based on certain priority header flags
Replies: 66
Views: 26889

Re: Move emails to top of the queue based on certain priority header flags

I saw that nice job. So we know we can get messages in the queue, read the headers from them from disk. Then we know we can reset delivery time to send the email right away. The last thing is where exactly should we put this code. Now I know you have a command window, which does a loop. I really don...
by cblaze22
2019-05-08 16:21
Forum: Scripting
Topic: Read headers from .eml on disk
Replies: 5
Views: 2224

Re: Read headers from .eml on disk

Yes you certainly are. Lets continue this in our main thread on this, this handles the reading headers from file on disk
by cblaze22
2019-05-08 15:18
Forum: Scripting
Topic: Move emails to top of the queue based on certain priority header flags
Replies: 66
Views: 26889

Re: Move emails to top of the queue based on certain priority header flags

I like this

Code: Select all

ID = Left(Match,InStr(Match," ")-12)
Can you explain how it works real quick. If I want to grab the .eml column, I assume that would work the same way.
by cblaze22
2019-05-08 15:09
Forum: Scripting
Topic: Read headers from .eml on disk
Replies: 5
Views: 2224

Re: Read headers from .eml on disk

This is a totally seperate question. If someone else wants to do a read of a file from disk and read the header, this email will come up. This is not being all over the place, but a distinct question. Yes I will take this answer and merge it into the other code we are working on. However, this quest...
by cblaze22
2019-05-08 14:00
Forum: Scripting
Topic: Read headers from .eml on disk
Replies: 5
Views: 2224

Read headers from .eml on disk

How can I load a .eml from disk and read the headers of it? I am trying to do this in the OnDeliverMessage method.
by cblaze22
2019-05-08 13:46
Forum: General discussions
Topic: Delete noreply still showing in queue
Replies: 32
Views: 5410

Re: Delete noreply still showing in queue

The doubling isnt a big deal in that case since we send to ourselves rarely. If I want noreply@test.com to go to info@test.com, I have to have a valid email to get out of the loop like test@gmail.com. I know there is a loop count, but the point is I need to get the email regardless, forwarding takes...
by cblaze22
2019-05-08 13:39
Forum: Scripting
Topic: Move emails to top of the queue based on certain priority header flags
Replies: 66
Views: 26889

Re: Move emails to top of the queue based on certain priority header flags

You stated

Code: Select all

It does however get messages that have failed and are awaiting re-delivery to be processed NOW
But that doesnt mean just failed, but anything in the queue correct? Is oApp.status.UndeliveredMessages items in the queue or failed items in the queue?
by cblaze22
2019-05-08 04:38
Forum: Scripting
Topic: Move emails to top of the queue based on certain priority header flags
Replies: 66
Views: 26889

Re: Move emails to top of the queue based on certain priority header flags

I think we are getting somewhere. Below I am able to grab the MessageIds in the queue on a delivery start. Next I need a way to read the email so I can view the headers in it for a certain flag? Is the best way to do that to read in the the .eml filepath and if so is there some reusable code someone...
by cblaze22
2019-05-08 01:14
Forum: Scripting
Topic: Move emails to top of the queue based on certain priority header flags
Replies: 66
Views: 26889

Re: Move emails to top of the queue based on certain priority header flags

So you cant run that say on OnAcceptMessage as a polling strategy?