[LUNI] Search every part of the e-mail?

Keith T. Garner kgarner at kgarner.com
Thu May 17 16:07:30 CDT 2007


So, I have a problem where I need to look at every e-mail from the past 
2 years and find certain search terms.  This inlcudes the contents of 
all attachments as well.    The mail is stored on linux in Maildor 
format and is also accessable via imap.

I figured I'd ask here to see if anyone has any brilliant ideas that 
will save me time.

I figured I'd write a script to visit every e-mail box  then apply the 
search terms and time search.  The problem, though, is that this won't 
search the attachments.  So, I'm thinking I'll have to write another 
search to find everything that has an attachment and then write a 
potential buttload of code that knows how to (shell out to) examine each 
type of attachment I come across.

As a programmer, my first thought is 'write something' but maybe there 
is a better way.

Keith

--
Keith T. Garner            kgarner at kgarner.com


More information about the luni mailing list