ktheory/maildir — pull request #8 by avinasha (2012-08-28 13:53:31+00:00)
Title: Adds a :flags option to list(:cur) to filter cur messages based on flags

List :cur messages based on flags.

maildir.list(:cur, :flags => 'F') # => lists all messages with flag 'F
maildir.list(:cur, :flags => 'FS') # => lists all messages with flag 'F' and 'S'; Flags must be specified in acending ASCII order ('FS' and not 'SF')
maildir.list(:cur, :flags => '') # => lists all messages without any flags