stinky emails
Last week a college came up with the theory, that nobody would have mails lying around in his inbox, if they would start to stink after a while. To check this, i came up with the "email-stinky-o-mat" i already have hacked together a small ruby script that calculates the "stinkycount" for a mailbox.
require 'net/imap'
require 'date'
imap = Net::IMAP.new('mailhost')
imap.login( 'user', 'password')
imap.select( "INBOX" )
stinkycount = 0
imap.search(["BEFORE", "#{(Date.today()-20).strftime( "%d-%b-%Y" )}" ]).each do |message_id|
stinkycount += 1
end
puts "#{stinkycount} stinking messages found"
this count can now be sent to a microcontroller (an arduino for example) which starts a fan, that is standing next to a reservior containing someting stinky - et voila (imagine drum roll here) - emails start to stink after 20 days :-)
See also:
processing ical-flowers-2.0
Ronin experiment 5 - osc
Arduino based Midi Trigger box for analog synths
Sonic Pi beatslicing livecoding session
Man I love reading about the crazy ideas you have for the Arduino :D