[122737] in North American Network Operators' Group

home help back first fref pref prev next nref lref last post

Re: Slightly OT. Good IMAP search tool?

daemon@ATHENA.MIT.EDU (Rich Kulawiec)
Sat Feb 20 16:45:42 2010

Date: Sat, 20 Feb 2010 16:45:03 -0500
From: Rich Kulawiec <rsk@gsp.org>
To: nanog@merit.edu
In-Reply-To: <1b5c1c151002201156p29728766od59e3445f793015c@mail.gmail.com>
Errors-To: nanog-bounces+nanog.discuss=bloom-picayune.mit.edu@nanog.org

On Sat, Feb 20, 2010 at 11:56:19AM -0800, Mike Lyon wrote:
> What are people using these days to suck down an IMAP account, search it and
> then export the search results? Any suggestions.

I'd replied off-list, but then realized that perhaps this would be of
more general interest.  My apologies to Mike for the redundancy.

I use fetchmail and grepmail.  Grepmail emits as its output a Unix mbox
file, so it lends itself quite nicely to going through chunks of saved mail,
matching grep-ish criteria (including headers) and producing a file full
of the messages that match.

Let me also mention formail, which is part of the procmail distribution,
and is also quite useful -- in this particular case, for culling duplicates.
All three of these tools are part of my standard postmaster toolbox.

---Rsk


home help back first fref pref prev next nref lref last post