2017 © Pedro Peláez
 

library cws-mail-bounce-handler

PHP class to help webmasters handle bounce-back, feedback loop and ARF mails in standard DSN (Delivery Status Notification, RFC-1894).

image

crazy-max/cws-mail-bounce-handler

PHP class to help webmasters handle bounce-back, feedback loop and ARF mails in standard DSN (Delivery Status Notification, RFC-1894).

  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 11 Forks
  • 2 Open issues
  • 11 Versions
  • 5 % Grown

The README.md

Latest Stable Version Minimum PHP Version Build Status Code Quality Become a sponsor Donate Paypal, (*1)

:warning: Abandoned project

This project is not maintained anymore and is abandoned. Feel free to fork and make your own changes if needed., (*2)

Thanks to everyone for their valuable feedback and contributions., (*3)

About

📬 PHP class to help webmasters handle bounce-back, feedback loop and ARF mails in standard DSN (Delivery Status Notification, RFC-1894). It checks your IMAP inbox or eml files and delete or move all bounced emails. If a bounce is malformed, it tries to extract some useful information to parse status., (*4)

Requirements

  • PHP >= 5.4
  • Enable the php_imap extension if you want to use the IMAP open mode.

Installation

composer require crazy-max/cws-mail-bounce-handler

And download the code:, (*5)

composer install # or update

Getting started

See tests/test.php file sample to help you.
You can use the eml files in the tests/emls folder for testing., (*6)

Post-process

A result object Cws\MailBounceHandler\Models\Result is available to process custom post-actions :, (*7)

, (*8)

Methods

openImapLocal - Open a IMAP mail box in local file system.
openImapRemote - Open a remote IMAP mail box.
openEmlFolder - Open a folder containing eml files on your system.
, (*9)

processMails - Process the messages in a mailbox or a folder.
, (*10)

getStatusCodeExplanations -Get explanations from DSN status code via the RFC 1893.
, (*11)

isMailboxOpenMode - Check if open mode is mailbox.
isFileOpenMode - Check if open mode is file.
isNeutralProcessMode - Check if process mode is neutral mode.
isMoveProcessMode - Check if process mode is move mode.
isDeleteProcessMode - Check if process mode is delete mode.
getProcessMode - The method to process bounces.
setNeutralProcessMode - Set the method to process bounces to neutral. (default)
setMoveProcessMode - Set the method to process bounces to move.
setDeleteProcessMode - Set the method to process bounces to delete.
setProcessMode - Set the method to process bounces.
getMailboxService - Mailbox service.
setImapMailboxService - Set the mailbox service to IMAP. (default)
setMailboxService - Set the mailbox service.
getMailboxHost - Mailbox host server.
setMailboxHost - Set the mailbox host server. (default localhost)
getMailboxUsername - The username of mailbox.
setMailboxUsername - Set the username of mailbox.
setMailboxPassword - Set the password needed to access mailbox.
getMailboxPort - The mailbox server port number.
setMailboxPortPop3 - Set the mailbox server port number to POP3 (110).
setMailboxPortPop3TlsSsl - Set the mailbox server port number to POP3 TLS/SSL (995).
setMailboxPortImap - Set the mailbox server port number to IMAP (143). (default)
setMailboxPortImapTlsSsl - Set the mailbox server port number to IMAP TLS/SSL (995).
setMailboxPort - Set the mailbox server port number.
getMailboxSecurity - The mailbox security option.
setMailboxSecurity - Set the mailbox security option. (default const MAILBOX_SECURITY_NOTLS)
getMailboxCert - Certificate validation.
setMailboxCertValidate - Set the certificate validation to VALIDATE.
setMailboxCertNoValidate - Set the certificate validation to NOVALIDATE. (default)
setMailboxCert - Set the certificate validation.
getMailboxName - Mailbox name.
setMailboxName - Set the mailbox name, other choices are (Tasks, Spam, Replies, etc...). (default INBOX)
getMailboxHandler - The resource handler for the opened mailbox (POP3/IMAP/NNTP/etc...).
getMaxMessages - Maximum limit messages processed in one batch.
setMaxMessages - Set the maximum limit messages processed in one batch (0 for unlimited).
isPurge - Check if purge unknown messages.
setPurge - Set the mailbox server port number.
getError - The last error message.
, (*12)

How can I help ?

All kinds of contributions are welcome :raised_hands:! The most basic way to show your support is to star :star2: the project, or to raise issues :speech_balloon: You can also support this project by becoming a sponsor on GitHub :clap: or by making a Paypal donation to ensure this journey continues indefinitely! :rocket:, (*13)

Thanks again for your support, it is much appreciated! :pray:, (*14)

License

MIT. See LICENSE for more details., (*15)

The Versions

07/06 2018

dev-master

9999999-dev https://github.com/crazy-max/CwsMailBounceHandler

PHP class to help webmasters handle bounce-back, feedback loop and ARF mails in standard DSN (Delivery Status Notification, RFC-1894).

  Sources   Download

MIT LGPL

The Requires

 

mail arf bounce dsn

30/04 2018

1.0

1.0.0.0

  Sources   Download

30/04 2018

1.6

1.6.0.0

  Sources   Download

04/01 2018

1.14

1.14.0.0 https://github.com/crazy-max/CwsMailBounceHandler

PHP class to help webmasters handle bounce-back, feedback loop and ARF mails in standard DSN (Delivery Status Notification, RFC-1894).

  Sources   Download

MIT

The Requires

 

mail arf bounce dsn

10/08 2017

1.13

1.13.0.0 https://github.com/crazy-max/CwsMailBounceHandler

PHP class to help webmasters handle bounce-back, feedback loop and ARF mails in standard DSN (Delivery Status Notification, RFC-1894).

  Sources   Download

LGPL

The Requires

 

mail arf bounce dsn

25/07 2017

1.12

1.12.0.0 https://github.com/crazy-max/CwsMailBounceHandler

PHP class to help webmasters handle bounce-back, feedback loop and ARF mails in standard DSN (Delivery Status Notification, RFC-1894).

  Sources   Download

LGPL

The Requires

 

mail arf bounce dsn

12/07 2017

1.11

1.11.0.0 https://github.com/crazy-max/CwsMailBounceHandler

PHP class to help webmasters handle bounce-back, feedback loop and ARF mails in standard DSN (Delivery Status Notification, RFC-1894).

  Sources   Download

LGPL

The Requires

 

mail arf bounce dsn

07/12 2016

1.10

1.10.0.0 https://github.com/crazy-max/CwsMailBounceHandler

PHP class to help webmasters handle bounce-back, feedback loop and ARF mails in standard DSN (Delivery Status Notification, RFC-1894).

  Sources   Download

LGPL

The Requires

 

mail arf bounce dsn

28/11 2016

1.9

1.9.0.0 https://github.com/crazy-max/CwsMailBounceHandler

PHP class to help webmasters handle bounce-back, feedback loop and ARF mails in standard DSN (Delivery Status Notification, RFC-1894).

  Sources   Download

LGPL

The Requires

 

mail arf bounce dsn

22/08 2016

1.8

1.8.0.0 https://github.com/crazy-max/CwsMailBounceHandler

PHP class to help webmasters handle bounce-back, feedback loop and ARF mails in standard DSN (Delivery Status Notification, RFC-1894).

  Sources   Download

LGPL

The Requires

 

mail arf bounce dsn

17/11 2015

1.7

1.7.0.0 https://github.com/crazy-max/CwsMailBounceHandler

CwsMailBounceHandler is a PHP class to help webmasters handle bounce-back, feedback loop and ARF mails in standard DSN (Delivery Status Notification, RFC-1894).

  Sources   Download

LGPL

The Requires