stinky emails

Nikolaus Gradwohl2008-06-23T06:14:00+00:00

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 ='mailhost')
imap.login( 'user', 'password') "INBOX" )
stinkycount = 0["BEFORE", "#{( "%d-%b-%Y" )}" ]).each do |message_id|
stinkycount += 1
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 :-)

Tweet This! submit to reddit Digg! Tags: | 1 comments | no trackbacks

See also:

Blinking Logfile Map
processing ical-flowers-2.0
Ronin experiment 5 - osc
Arduino based Midi Trigger box for analog synths
Sonic Pi beatslicing livecoding session



Leave a response

  1. Kayos 2009-07-20T23:01:06+00:00

    Man I love reading about the crazy ideas you have for the Arduino :D

Leave a comment