# File lib/larch/db/message.rb, line 4
  def flags
    self[:flags].split(',').sort.map do |f|
      # Flags beginning with $ should be strings; all others should be symbols.
      f[0,1] == '$' ? f : f.to_sym
    end
  end