Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Send number of keys available via email #345

Open
hackersbox opened this Issue · 7 comments

5 participants

@hackersbox

Can we add the number of keys available in the email sent whenever a key expires in the database?

@ic0nic

Nope, whats the point? The keys are going to expire every 24 hours anyway.

@hackersbox

the point is to let the administrator know instantly how many keys are left in the database instantly via email whenever one expires. makes monitoring easier.

@thpryrchn
Collaborator

All I got is my iPad 3, and a friend with a 4S that uses siri like twice a week. I just have to remember to use siri on my iPad in the morning, and at night. Then any other times are a bonus. Of course my siri is only used by friends, or peoples phones I personally jailbroke, so the demand isn't that high. My Keys are set to regenerate every hour, so my iPad could make 24 keys in a day, if I use it every hour.

@am3yrus
Collaborator

I think you should run a script apart to do this because it is something that you are the only one to have ;)
It will be very simple to make it in bash

@hackersbox

Thanks but I figured it out. No extra scripts required. I just modified sendemail() function within the functions.rb
Now it sends an email with the available keys whenever one key expired. Made my life easier.

@l-j-silver

What did you change in the sendmail() function?

@thpryrchn
Collaborator

@hackersbox You should add a Pull request to that, and I will add it...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.