On 2013-10-07, Aurelin <code@???> wrote: > Hey Phil,
>
> Yeah it occurred to me a bit after posting to the mailing list that
> it's probably getting there through STDIN.
>
> Now I am only wondering whether PHP is the best choice for this kind
> of task though, or if Perl would be a better choice at all.
>
> Thanks to all for your help. That really solved my issue quickly.
python:
import sys
import email
mail = email.message_from_file(sys.stdin)