fuel/email — pull request #28 by floorish (2012-05-06 15:02:41+00:00)
Title: Fixed incorrect trimming of cid

The attach functions incorrectly trim the `$cid`

'cid:'.ltrim($cid, 'cid:')

`ltrim` also removes 'c', 'ci', 'cid' or 'cid:' from the `$cid` md5, i.e.:

$cid = 'ce2e352a843c68a955a53b882f6567da';
$cid = 'cid:'.ltrim($cid, 'cid:'); //outputs "cid:e2e352a843c68a955a53b882f6567da" (missing c)

So the cid in the body of the message is not equal to the cid added to the attached file, which gives missing inline attachments.