zendframework/zf2 — pull request #3571 by Steffen185 (2013-01-27 09:21:56+00:00)
Title: Correctly parse empty Subject header

Without this fix parsing an email with an empty subject header "Subject:" (no whitespace after the colon) fails.

```
Notice: Undefined offset: 1 in library/Zend/Mail/Header/Subject.php on line 35

Fatal error: Uncaught exception 'Zend\Mail\Header\Exception\InvalidArgumentException' with message 'Invalid header line for Subject string' in library/Zend/Mail/Header/Subject.php:39
Stack trace:
#0 library/Zend/Mail/Headers.php(453): Zend\Mail\Header\Subject::fromString('Subject: ')
#1 library/Zend/Mail/Headers.php(288): Zend\Mail\Headers->lazyLoadHeader(10)
#2 library/Zend/Mail/Storage/Part.php(297): Zend\Mail\Headers->get('Subject')
#3 library/Zend/Mail/Storage/Part.php(372): Zend\Mail\Storage\Part->getHeader('Subject', 'string')
#4 mail-bouncer.php(14): Zend\Mail\Storage\Part->__get('Subject')
```