Skip to content

Commit

Permalink
Add detection support for Haraka transaction ID (PHPMailer#2347)
Browse files Browse the repository at this point in the history
A typical SMTP transaction ID for Haraka looks like this:

```
250 Message Queued (14490C56-76FB-4932-A59B-A8299DB2B693.1)
```

This regex will detect and extract this transaction ID
  • Loading branch information
LeonMelis authored May 28, 2021
1 parent 4839207 commit 453159e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/SMTP.php
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,7 @@ class SMTP
'Amazon_SES' => '/[\d]{3} Ok (.*)/',
'SendGrid' => '/[\d]{3} Ok: queued as (.*)/',
'CampaignMonitor' => '/[\d]{3} 2.0.0 OK:([a-zA-Z\d]{48})/',
'Haraka' => '/[\d]{3} Message Queued \((.*)\)/',
];

/**
Expand Down

0 comments on commit 453159e

Please sign in to comment.