PHP 클래스 IMP_Filter, horde
For full use, the following Horde API calls should be defined
(These API methods are not defined in IMP):
- mail/applyFilters
- mail/canApplyFilters
- mail/showFilters
- mail/blacklistFrom
- mail/showBlacklist
- mail/whitelistFrom
- mail/showWhitelist
파일 보기
프로젝트 열기: horde/horde
1 사용 예제들
공개 메소드들
메소드 |
설명 |
|
blacklistMessage ( IMP_Indices $indices, boolean $show_link = true ) : boolean |
Adds the From address from the message(s) to the blacklist and deletes
the message(s). |
|
canApplyFilters ( ) : voolean |
Are appliable filters available? |
|
filter ( string $mbox ) |
Runs the filters if they are able to be applied manually. |
|
whitelistMessage ( IMP_Indices $indices, boolean $show_link = true ) : boolean |
Adds the From address from the message(s) to the whitelist. |
|
보호된 메소드들
메소드 상세
Internal function to handle adding addresses to [black|white]list.
protected _processBWlist ( IMP_Indices $indices, string $descrip, string $reg1, string $reg2, boolean $link ) : boolean |
$indices |
IMP_Indices |
An indices object. |
$descrip |
string |
The textual description to use. |
$reg1 |
string |
The name of the mail/ registry call to use
for adding the addresses. |
$reg2 |
string |
The name of the mail/ registry call to use
for linking to the filter management page. |
$link |
boolean |
Show link to the whitelist management in
the notification message? |
리턴 |
boolean |
True on success. |
blacklistMessage()
공개 메소드
Adds the From address from the message(s) to the blacklist and deletes
the message(s).
public blacklistMessage ( IMP_Indices $indices, boolean $show_link = true ) : boolean |
$indices |
IMP_Indices |
An indices object. |
$show_link |
boolean |
Show link to the blacklist management in
the notification message? |
리턴 |
boolean |
True if the messages(s) were deleted. |
canApplyFilters()
공개 정적인 메소드
Are appliable filters available?
public static canApplyFilters ( ) : voolean |
리턴 |
voolean |
True if appliable filters are available. |
Runs the filters if they are able to be applied manually.
whitelistMessage()
공개 메소드
Adds the From address from the message(s) to the whitelist.
public whitelistMessage ( IMP_Indices $indices, boolean $show_link = true ) : boolean |
$indices |
IMP_Indices |
An indices object. |
$show_link |
boolean |
Show link to the whitelist management in
the notification message? |
리턴 |
boolean |
True if the messages(s) were whitelisted. |