Re: [Evolution] Filters



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
ampers 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>
&#65279;<BR>
<B><FONT SIZE="4"><FONT COLOR="#800000">Andrew </FONT></FONT></B><B><FONT SIZE="4"><FONT
COLOR="#ff0000">&quot;Ampers&quot;</FONT></FONT></B><B><FONT SIZE="4"><FONT COLOR="#800000"> 
Taylor</FONT></FONT></B><BR>
&#65279;<I><FONT SIZE="1"><A HREF="http://ampers.blogspot.com";>Blog,</A>&nbsp;&nbsp; 
</FONT></I>&#65279;<I><FONT SIZE="1"><A
HREF="http://www.ampers.co.uk";>Website</A>,&nbsp;&nbsp; <A 
HREF="http://jalbum.net/users/ampers/albums";>Photographs,</A>&nbsp;&nbsp;
<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>





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]