Skip to content
This repository has been archived by the owner on Nov 14, 2019. It is now read-only.

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
crazy-max committed Apr 9, 2013
0 parents commit a458915
Show file tree
Hide file tree
Showing 5 changed files with 2,459 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Eclipse
.settings
.settings/*
.buildpath
.project
.jsdtscope
45 changes: 45 additions & 0 deletions README.md
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.
Loading

0 comments on commit a458915

Please sign in to comment.