-
-
Notifications
You must be signed in to change notification settings - Fork 183
Closed
Labels
Milestone
Description
In our project we need to process bounces, i.e. extract the following info for bounces: status_code, action, diagnostic_code. To get this info original messages's structure is needed, which is returned by imap_fetchstructure.
Is it ok if we add processBounce function to Message.php and create a pull request. The function will be based on:
https://github.com/voku/PHPMailer-BMH/blob/b1f7f4f00c137ffa8bed3909a6ec4b2792e61a37/src/BounceMailHandler/BounceMailHandler.php#L702
Function will return array with bounce data (status_code, action, diagnostic_code) or empty array if no nounce detected.