module Roda::RodaPlugins::MailProcessor::ClassMethods

def process_mailbox(opts=OPTS)

the +after_mail+ method should be used to perform the archiving of the mail.
not reprocess the same mail. If mail should be archived and not deleted,
mailbox after processing, so that when called multiple times it does
uses the default Mail retriever_method. This deletes retrieved mail from the
given, should be an object supporting the Mail retriever API, otherwise
Process all mail in the given mailbox. If the +:retriever+ option is
def process_mailbox(opts=OPTS)
  (opts[:retriever] || Mail).find_and_delete(opts.dup){|m| process_mail(m)}
  nil
end