From: Matt Armstrong Date: 2005-02-07T13:57:17+09:00 Subject: Re: Ruby and maildir Dido Sevilla writes: > On Mon, 7 Feb 2005 09:13:42 +0900, mithrandir2003cz@gmail.com > wrote: > >> Hi, Does anybody know about ruby library for working with maildirs? >> >> I checked RAA but I found nothing :-( > > I use rubymail (http://www.lickey.com/rubymail/). Maildirs are a > helluvalot simpler than mboxes. A maildir is simply a directory with > three standard subdirectories under it named cur, new, and tmp. Each > of these directories contains one file per mail message, with a name > based on the epoch time. Rubymail + the standard library is more > than adequate to do any reasonable manipulation of a maildir very > easily, without an explosion of complexity. RubyFilter (at http://www.lickey.com/rubyfilter/ ) can deliver new mail to a Maildir. But neither RubyMail nor RubyFilter has code for actually reading mail from a maildir (e.g. moving messages from "new" to "cur", properly processing "tmp", etc. according to the Maildir spec). That would be an interesting project! But as mithrandir2003cz@gmail.com suggests above, it isn't that hard to work with Maildirs since each message is in an individual file. -- matt