This repository has been archived by the owner on Nov 14, 2019. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
crazy-max
committed
Apr 9, 2013
0 parents
commit a458915
Showing
5 changed files
with
2,459 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# Eclipse | ||
.settings | ||
.settings/* | ||
.buildpath | ||
.project | ||
.jsdtscope |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
CwsBounceMail | ||
============= | ||
|
||
CwsBounceMail is a PHP toolkit : (CwsBounceMail and CwsBounceMailRules) forked from [PHPMailer-BMH (Bounce Mail Handler) v5.0.0rc1](http://phpmailer.codeworxtech.com) by Andy Prevost to help webmasters handle bounce-back mails in standard DSN (Delivery Status Notification, RFC-1894). | ||
It checks your IMAP/POP3 inbox and delete all 'hard' bounced emails. | ||
A result var is available to process custom post-actions. | ||
|
||
Installation | ||
------------ | ||
|
||
* Enable the [php_imap](http://php.net/manual/en/book.imap.php) extension. | ||
* Copy the ``class.cws.bouncemail.php`` and ``class.cws.bouncemail.rules.php`` files in a folder on your server. | ||
* You can use the sample ``index.php`` file to help you. | ||
|
||
Options | ||
------- | ||
|
||
Public vars : | ||
|
||
* **host** - Mail host server. | ||
* **username** - The username of mailbox. | ||
* **password** - The password needed to access mailbox. | ||
* **port** - Defines port number, other common choices are '110' (pop3), '143' (imap), '995' (tls/ssl). | ||
* **service** - Defines service, choice includes 'pop3' and 'imap'. | ||
* **service_option** - Defines service option, choices are 'none', 'notls', 'tls', 'ssl'. | ||
* **cert** - Control certificates validation if service_option is 'tls' or 'ssl'. | ||
* **use_fetchstructure** - Control the method to process the mail header. | ||
* **boxname** - Mailbox type, other choices are Tasks, Spam, Replies, etc. | ||
* **move_soft** - Determines if soft bounces will be moved to another mailbox folder. | ||
* **boxname_soft** - Mailbox folder to move soft bounces to. | ||
* **move_hard** - Determines if hard bounces will be moved to another mailbox folder. NOTE: If true, this will disable delete and perform a move operation instead. | ||
* **boxname_hard** - Mailbox folder to move hard bounces to. | ||
* **max_messages** - Maximum limit messages processed in one batch. | ||
* **error_msg** - The last error message. | ||
* **test_mode** - Test mode, if true will not delete messages. | ||
* **purge** - Purge unknown messages. Be careful with this option. | ||
* **debug_verbose** - Control the debug output. | ||
* **disable_delete** - If true, it will disable the delete function. | ||
* **result** - Result array of process. | ||
|
||
Public methods : | ||
|
||
* **openRemote** - Open a remote mail box. | ||
* **openLocal** - Open a mail box in local file system. | ||
* **processMailbox** - Process the messages in a mailbox. |
Oops, something went wrong.