I'm using the auto accout create feature, where the email address and the username are parsed from the From header.
It seem to fail where the header looks like this:
"From: <username(at)domain(dot)name>"
I have found a simple fix for this issue:
// Fetch From email and possible name.
- if (preg_match('!(.+?)<(.+?)>!', $this->headers['from'], $matches)) {
+ if (preg_match('!(.*)<(.+)>!', $this->headers['from'], $matches)) {
$this->from_email = trim($matches[2]);
It seems working for me - however I really don't get that original regex pattern
why those '?' characters was needed in the pattern?