1
|
|
|
<?php declare(strict_types=1); |
2
|
|
|
|
3
|
|
|
namespace XoopsModules\Xhelp; |
4
|
|
|
|
5
|
|
|
/* |
6
|
|
|
* You may not change or alter any portion of this comment or credits |
7
|
|
|
* of supporting developers from this source code or any supporting source code |
8
|
|
|
* which is considered copyrighted (c) material of the original comment or credit authors. |
9
|
|
|
* |
10
|
|
|
* This program is distributed in the hope that it will be useful, |
11
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
12
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
13
|
|
|
*/ |
14
|
|
|
|
15
|
|
|
/** |
16
|
|
|
* @copyright {@link https://xoops.org/ XOOPS Project} |
17
|
|
|
* @license {@link https://www.gnu.org/licenses/gpl-2.0.html GNU GPL 2 or later} |
18
|
|
|
* @author Nazar Aziz <[email protected]> |
19
|
|
|
* @author XOOPS Development Team |
20
|
|
|
*/ |
21
|
|
|
|
22
|
|
|
\define('_XHELP_MAILBOXTYPE_POP3', 1); |
23
|
|
|
\define('_XHELP_MAILBOXTYPE_IMAP', 2); |
24
|
|
|
|
25
|
|
|
/** |
26
|
|
|
* Xhelp\MailBox class |
27
|
|
|
* |
28
|
|
|
* Part of the email submission subsystem. Abstract class defining functions |
29
|
|
|
* needed to interact with a mailstore |
30
|
|
|
* @abstract |
31
|
|
|
*/ |
32
|
|
|
abstract class MailBox |
33
|
|
|
{ |
34
|
|
|
/** |
35
|
|
|
* @param string $server |
36
|
|
|
* @param int $port |
37
|
|
|
*/ |
38
|
|
|
public function connect(string $server, int $port = 110): bool |
|
|
|
|
39
|
|
|
{ |
40
|
|
|
} |
|
|
|
|
41
|
|
|
|
42
|
|
|
/** |
43
|
|
|
* @param string $username |
44
|
|
|
* @param string $password |
45
|
|
|
*/ |
46
|
|
|
public function login(string $username, string $password): bool |
|
|
|
|
47
|
|
|
{ |
48
|
|
|
} |
|
|
|
|
49
|
|
|
|
50
|
|
|
public function messageCount(): int |
51
|
|
|
{ |
52
|
|
|
} |
|
|
|
|
53
|
|
|
|
54
|
|
|
/** |
55
|
|
|
* @param int $i |
56
|
|
|
*/ |
57
|
|
|
public function getHeaders(int $i) |
|
|
|
|
58
|
|
|
{ |
59
|
|
|
} |
60
|
|
|
|
61
|
|
|
/** |
62
|
|
|
* @param int $i |
63
|
|
|
*/ |
64
|
|
|
public function getBody(int $i) |
|
|
|
|
65
|
|
|
{ |
66
|
|
|
} |
67
|
|
|
|
68
|
|
|
/** |
69
|
|
|
* @param int $i |
70
|
|
|
*/ |
71
|
|
|
public function getMsg(int $i) |
|
|
|
|
72
|
|
|
{ |
73
|
|
|
} |
74
|
|
|
|
75
|
|
|
/** |
76
|
|
|
* @param int $i |
77
|
|
|
*/ |
78
|
|
|
public function deleteMessage(int $i) |
|
|
|
|
79
|
|
|
{ |
80
|
|
|
} |
81
|
|
|
|
82
|
|
|
public function disconnect() |
83
|
|
|
{ |
84
|
|
|
} |
85
|
|
|
} |
86
|
|
|
|
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.