justverifyit / thunderbird

Thunderbird plugin
GNU General Public License v3.0
2 stars 1 forks source link

add progressive polling intervals #23

Open darealdemayo opened 9 months ago

darealdemayo commented 9 months ago

sometimes, virustotal is very slow and I feel bad for polling it every second.

I think it would be great if we could set polling intervals to increase progressively. Start with every 500ms for first 5 seconds, then do 1000ms for next 10 seconds, then go to 5 seconds interval for 5 minutes.

This is just an example ofc.

Your extension is great btw!

nicprov commented 3 months ago

@darealdemayo Thanks for the suggestion and the kind words. This sounds like some sort of exponential backoff which could makes sense.

I'll mark this as a potential enhancement for the future.

In the meantime, for your information, what you can do is click on the "Verify It" button to upload your attachments, continue doing what you were doing then go back to your email later. By that point, VirusTotal should have had the time to verify your attachment. You can then click on the "Verify It" button again, and you should get your result instantly (since it verifies if the hash exists first).