* Benjamin Smith ([EMAIL PROTECTED]) wrote:

> How does it scan your mailboxes, does it use grep mail or some other
> methods? If its short could you perhaps post it?

It reads the file line by line looking for ^From lines.

It's not very well written, but it works.  I really should make use of
exceptions :)

If you really want to see it, it's at
http://freak.aagh.net/code/mailarchive.  It's written in Ruby, of
course.

Try not to laugh, it was written in a hurry :)

It really needs to keep the file access and modification times the same
too, otherwise it breaks mutt's new mail code.

-- 
Thomas 'Freaky' Hurst  -  [EMAIL PROTECTED]  -  http://www.aagh.net/
-
...his disciples lead him in; he just does the rest.
                -- Tommy

Reply via email to