Re: [exim] Saving and/or processing attachments

Page principale
Supprimer ce message
Répondre à ce message
Auteur: Jasen Betts
Date:  
À: exim-users
Sujet: Re: [exim] Saving and/or processing attachments
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)
        
http://stackoverflow.com/questions/4067937/getting-mail-attachment-to-python-file-object

--
⚂⚃ 100% natural