1: <?php
2: /**
3: * Copyright 2013-2014 Horde LLC (http://www.horde.org/)
4: *
5: * See the enclosed file COPYING for license information (GPL). If you
6: * did not receive this file, see http://www.horde.org/licenses/gpl.
7: *
8: * @category Horde
9: * @copyright 2013-2014 Horde LLC
10: * @license http://www.horde.org/licenses/gpl GPL
11: * @package IMP
12: */
13:
14: /**
15: * Spam reporting driver base interface.
16: *
17: * Copyright 2013-2014 Horde LLC (http://www.horde.org/)
18: *
19: * See the enclosed file COPYING for license information (GPL). If you
20: * did not receive this file, see http://www.horde.org/licenses/gpl.
21: *
22: * @author Michael Slusarz <slusarz@horde.org>
23: * @category Horde
24: * @copyright 2013-2014 Horde LLC
25: * @license http://www.horde.org/licenses/gpl GPL
26: * @package IMP
27: */
28: interface IMP_Spam_Base
29: {
30: /**
31: * Reports a list of messages as innocent/spam.
32: *
33: * @param IMP_Contents $contents A contents object.
34: * @param integer $action Either IMP_Spam::SPAM or
35: * IMP_Spam::INNOCENT.
36: *
37: * @return boolean True on success.
38: */
39: public function report(IMP_Contents $contents, $action);
40:
41: }
42: