I know that SwiftMailer is used for sending emails, but I'm trying to parse an email that has come into my PHP script. We already use SwiftMailer in our Symfony site, so I'd like to use it, if it can do what we want.
Scenario:
The email is piped into my PHP script by postfix. I then grab this from StdIn and want to load it into SwiftMailer so I can get easy access to the components - i.e. attachments / headers, to / from etc..
I've searched around on this and tinkered with the SwiftMailer code and can't find any examples or even any indication of direction to look in.
Any help would be gratefully received.