4 ms·
It's per-month, not per-day - GMail only stores 30 days' worth of email in the Spam folder. As to how - cron job on my server querying GMail via IMAP. Source b
by Morendil 15y ago
It's per-month, not per-day - GMail only stores 30 days' worth of email in the Spam folder.
As to how - cron job on my server querying GMail via IMAP. Source below. Manually copy and paste the resulting text file to a GDoc spreadsheet; use the Time Series widget to generate the chart.
require 'net/imap'
require 'date'
imap = Net::IMAP.new('imap.gmail.com',993,true)
imap.login('yourlogin','yourpwd')
msgs = imap.status("[Gmail]/Spam",["MESSAGES"])["MESSAGES"]
puts Date.today.to_s + "\t" + msgs.to_s