3 * File containing the ezcMailParserSet interface
7 * @copyright Copyright (C) 2005-2009 eZ Systems AS. All rights reserved.
8 * @license http://ez.no/licenses/new_bsd New BSD License
12 * Interface common to all parser sets.
14 * A parser set provides a simple interface to fetch mail data line by
15 * line from a set of mail.
20 interface ezcMailParserSet
23 * Returns one line of data from the current mail in the set
24 * including the ending linebreak.
26 * Null is returned if there is no current mail in the set or
27 * the end of the mail is reached,
31 public function getNextLine();
34 * Moves the set to the next mail and returns true upon success.
36 * False is returned if there are no more mail in the set.
40 public function nextMail();
43 * Returns true if mail data is available for parsing.
47 public function hasData();