X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=banana%2Fprotocoleinterface.inc.php;h=1e3e12a2ef1dd92953a35a662558ccfc2d8505b1;hb=598a1c538cde55ef90fcacd7d09d36e025f64dee;hp=bc3e1db2add2a66b408451348866702a5d009d1c;hpb=0e25d15dfb73aa6769f8b0d136974f36f1b3619f;p=banana.git diff --git a/banana/protocoleinterface.inc.php b/banana/protocoleinterface.inc.php index bc3e1db..1e3e12a 100644 --- a/banana/protocoleinterface.inc.php +++ b/banana/protocoleinterface.inc.php @@ -19,7 +19,7 @@ interface BananaProtocoleInterface */ public function isValid(); - /** Indicate last error n° + /** Indicate last error n° */ public function lastErrNo(); @@ -41,11 +41,15 @@ interface BananaProtocoleInterface /** Return a message * @param id Id of the emssage (can be either an Message-id or a message index) - * @param msg_headers Headers to process - * @param is_msgid If is set, $id is en Message-Id * @return A BananaMessage or null if the given id can't be retreived */ - public function getMessage($id, array $msg_headers = array(), $is_msgid = false); + public function &getMessage($id); + + /** Return the sources of a message + * @param id Id of the emssage (can be either an Message-id or a message index) + * @return The sources of the message (or null) + */ + public function getMessageSource($id); /** Return the indexes of the messages presents in the Box * @return Array(number of messages, MSGNUM of the first message, MSGNUM of the last message) @@ -96,7 +100,12 @@ interface BananaProtocoleInterface /** Return the protocole name */ public function name(); + + /** Return the spool filename to use for the given box + * @param box STRING boxname + */ + public function filename(); } -// vim:set et sw=4 sts=4 ts=4: +// vim:set et sw=4 sts=4 ts=4 enc=utf-8: ?>