bulk-mail-cli icon indicating copy to clipboard operation
bulk-mail-cli copied to clipboard

feat: Rate limit

Open ghost opened this issue 4 years ago • 5 comments

Some ISP prevents you from sending so many mails in a given window of time.

I think it would be good for those to have a way to limit the mail per hour or something.

ghost avatar May 15 '20 13:05 ghost

Users can adjust to rate limiting requirements by adjusting the time interval cron job setting to fit their needs.

But yes, this feature would be a nice addition. Your thoughts?

kumarabhirup avatar May 15 '20 16:05 kumarabhirup

I might have something to suggest but I'm not sure if that's good enough

{
  interval: (1000 * 60) * 60,
  rate: 25
}

25 mails every hour.

Or maybe something that would enforce the cron to avoid having too many mails being sent and blocking the ISP...

ghost avatar May 15 '20 17:05 ghost

Wow, this looks promising. I would like to add this feature.

Just wondering, are you a Node.js dev? If yes, we can add this simple feature together.

If not, I will do it myself but will take time most probably.

kumarabhirup avatar May 15 '20 18:05 kumarabhirup

I did not get a chance to look at the source code yet but I have some experience using Node.js even though my thing is more DOM API and front end related stuff ^^

ghost avatar May 15 '20 19:05 ghost

That's cool! You can take a look at the source code for a while, till then I'll think about how this feature can be implemented.

kumarabhirup avatar May 18 '20 09:05 kumarabhirup