Andrew Taylor wrote: > I get hundreds of emails a day and when list users who don't know how to > set the clock on their computers, I get new messages buried deep in my > list of messages and have to page through to find them. > > I would rather not even see them. > > Is there anyway I can filer messages that arrive on my computer so they > auto-delete if over an hour old? > > *Andrew **"Ampers"** Taylor* > /Blog, <http://ampers.blogspot.com> //Website > <http://www.ampers.co.uk>, Photographs, > <http://jalbum.net/users/ampers/albums> Humour > <http://groups.google.com/group/Andrews-Humour>/ > On facebook as: Andrew Ampers Taylor > > > > ------------------------------------------------------------------------ > > _______________________________________________ > Evolution-list mailing list > Evolution-list@gnome.org > http://mail.gnome.org/mailman/listinfo/evolution-list
so you could create a ruby ( or language of your choice )script along the lines of irb(main):030:0> mail = TMail::Mail.load("~/EvolutionFilters.eml") => #<TMail::Mail port=#<TMail::FilePort:/home/rthompso/EvolutionFilters.eml> bodyport=nil> irb(main):031:0> puts Time.now Tue Feb 03 13:06:49 -0500 2009 => nil irb(main):032:0> puts mail.date Tue Feb 03 10:28:16 -0500 2009 => nil irb(main):033:0> puts Time.now() - mail.date 9526.120542 => nil irb(main):034:0> and if Time.now() - mail.date > 3600 return some significant integer value ( 1-127 ) that the filter will use to set the status of Deleted. hmm -- not as time consuming as i though... #!/usr/bin/ruby # require 'tmail' mail = TMail::Mail.parse($stdin.read) if Time.now() - mail.date > 3600 then exit 113 else exit 0 end ~/EvolutionFilters.eml is your email asking your question.... irb(main):030:0> mail = TMail::Mail.load("~/EvolutionFilters.eml") => #<TMail::Mail port=#<TMail::FilePort:/home/rthompso/EvolutionFilters.eml> bodyport=nil> irb(main):031:0> puts Time.now Tue Feb 03 13:06:49 -0500 2009 => nil irb(main):032:0> puts mail.date Tue Feb 03 10:28:16 -0500 2009 => nil irb(main):033:0> puts Time.now() - mail.date 9526.120542 => nil irb(main):034:0> puts mail.from amp...@gmail.com => nil irb(main):035:0> puts mail.subject [Evolution] Filters => nil irb(main):036:0> puts mail.body I get hundreds of emails a day and when list users who don't know how to set the clock on their computers, I get new messages buried deep in my list of messages and have to page through to find them. I would rather not even see them. Is there anyway I can filer messages that arrive on my computer so they auto-delete if over an hour old? Andrew "Ampers" Taylor log, ebsite, Photographs, Humour On facebook as: Andrew Ampers Taylor <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN"> <HTML> <HEAD> <META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8"> <META NAME="GENERATOR" CONTENT="GtkHTML/3.24.1.1"> </HEAD> <BODY> I get hundreds of emails a day and when list users who don't know how to set the clock on their computers, I get new messages buried deep in my list of messages and have to page through to find them.<BR> <BR> I would rather not even see them.<BR> <BR> Is there anyway I can filer messages that arrive on my computer so they auto-delete if over an hour old?<BR> <TABLE CELLSPACING="0" CELLPADDING="0" WIDTH="100%"> <TR> <TD> <BR> <B><FONT SIZE="4"><FONT COLOR="#800000">Andrew </FONT></FONT></B><B><FONT SIZE="4"><FONT COLOR="#ff0000">"Ampers"</FONT></FONT></B><B><FONT SIZE="4"><FONT COLOR="#800000"> Taylor</FONT></FONT></B><BR> <I><FONT SIZE="1"><A HREF="http://ampers.blogspot.com">Blog,</A> </FONT></I><I><FONT SIZE="1"><A HREF="http://www.ampers.co.uk">Website</A>, <A HREF="http://jalbum.net/users/ampers/albums">Photographs,</A> <A HREF="http://groups.google.com/group/Andrews-Humour">Humour</A></FONT></I><BR> <FONT SIZE="1"><FONT COLOR="#008000">On facebook as: Andrew Ampers Taylor</FONT></FONT> </TD> </TR> </TABLE> <BR> </BODY> </HTML> _______________________________________________ Evolution-list mailing list Evolution-list@gnome.org http://mail.gnome.org/mailman/listinfo/evolution-list => nil irb(main):037:0> _______________________________________________ Evolution-list mailing list Evolution-list@gnome.org http://mail.gnome.org/mailman/listinfo/evolution-list