Re: [exim] Saving and/or processing attachments

2013-10-08 Thread Jasen Betts
On 2013-10-07, Aurelin c...@aurelin.net 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

Re: [exim] Saving and/or processing attachments

2013-10-08 Thread info
So in post_to_site.php, how would I catch the e-mail content? Or can I use pipe to write into a file and then start the script that pushes everything into the database? Aurelin Ah.. Nevermind. I think it would just be piped to the script through stdin, is that correct? Thanks all for

[exim] Saving and/or processing attachments

2013-10-07 Thread Aurelin
Hi all, My customer wants to be able to send an e-mail with an attached image (up to ~2 MB) to have this posted to their website. Now what I set up is a router that forwards the e-mail to a pipe and then gets processed by a scrip. In order to transmit the e-mail to the script, I use the

Re: [exim] Saving and/or processing attachments

2013-10-07 Thread Jeremy Harris
On 07/10/13 16:44, Aurelin wrote: My customer wants to be able to send an e-mail with an attached image (up to ~2 MB) to have this posted to their website. Now what I set up is a router that forwards the e-mail to a pipe and then gets processed by a scrip. In order to transmit the e-mail to

Re: [exim] Saving and/or processing attachments

2013-10-07 Thread Heiko Schlittermann
Hi, Aurelin c...@aurelin.net (Mo 07 Okt 2013 17:44:03 CEST): Hi all, My customer wants to be able to send an e-mail with an attached image (up to ~2 MB) to have this posted to their website. Now what I set up is a router that forwards the e-mail to a pipe and then gets processed by a

Re: [exim] Saving and/or processing attachments

2013-10-07 Thread Aurelin
Woah. Why? If you deliver to pipe, the pipe gets the whole mail. No need to invoke use of $message_body at all. Uhm, great! But how do I actually process the e-mail that is piped to a script? I mean, I need to store the attachment in a particular place and then fill in a DB with the

Re: [exim] Saving and/or processing attachments

2013-10-07 Thread Phil Pennock
On 2013-10-07 at 23:00 +0200, Aurelin wrote: Woah. Why? If you deliver to pipe, the pipe gets the whole mail. No need to invoke use of $message_body at all. Uhm, great! But how do I actually process the e-mail that is piped to a script? The content of the email is delivered over the

Re: [exim] Saving and/or processing attachments

2013-10-07 Thread Aurelin
The content of the email is delivered over the standard input (stdin) of the process; the name pipe is because this is the normal Unix terminology for connecting together commands in a pipeline. You're crossing from the web-programming world into the Unix programming world here, and encountering

Re: [exim] Saving and/or processing attachments

2013-10-07 Thread Heiko Schlittermann
Hi Aurelin, Aurelin c...@aurelin.net (Mo 07 Okt 2013 23:20:56 CEST): … 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. It depends on your knowledge. I'd prefer Perl, but I know a lot more about Perl than I know

Re: [exim] Saving and/or processing attachments (exim: to exclusive)

2013-10-07 Thread John Mc Murray
Wouldn't it just be easier to do this all in PHP? Have PHP log in and fetch messages and read attachments, etc? No need to fiddle with exim.. I think I have some basic test code lying around somewhere if you need. On 07/10/2013 22:18, Heiko Schlittermann - h...@schlittermann.de wrote: Hi,

Re: [exim] Saving and/or processing attachments (exim: to exclusive)

2013-10-07 Thread Aurelin
Quoting John Mc Murray j...@softsmart.co.za: Wouldn't it just be easier to do this all in PHP? Have PHP log in and fetch messages and read attachments, etc? No need to fiddle with exim.. I think I have some basic test code lying around somewhere if you need. Hi John, First off, I don't

Re: [exim] Saving and/or processing attachments

2013-10-07 Thread Jasen Betts
On 2013-10-07, Aurelin c...@aurelin.net wrote: Hi all, My customer wants to be able to send an e-mail with an attached image (up to ~2 MB) to have this posted to their website. Now what I set up is a router that forwards the e-mail to a pipe and then gets processed by a scrip. In order

Re: [exim] Saving and/or processing attachments

2013-10-07 Thread Jasen Betts
On 2013-10-07, Aurelin c...@aurelin.net wrote: Woah. Why? If you deliver to pipe, the pipe gets the whole mail. No need to invoke use of $message_body at all. Uhm, great! But how do I actually process the e-mail that is piped to a script? generally using the libc-client bindings for