As usual, just more notes to myself.
I run qmail with virtual domains. To pipe incoming emails for a certain account (foo@example.com) through a PHP script you have to:
1) create a .qmail-foo file in /home/vpopmail/domains/example.com which contains the following line:|/usr/bin/php -f /path/to/phpscript.php
2) the php script can read the raw email message from stdin like this:$fd=fopen("php://stdin","r");
while(!feof($fd)){
$email.=fread($fd,1024);
}
fclose($fd);
This only works (I think this is right) if foo@example.com is *not* an actual mailbox in qmail. Also I did a qmailctl restart which I'm guessing is needed as well (after creating .qmail-foo file.)
Jim this was your first post in 10 days and the one before that was 10 days bak, now we can give you a little holiday slack but........
tell it skinny...
Yeah, I haven't been doing too well. I'm in sort of a weird place right now. I'm really at a cross roads in terms of my business and sometimes I think I should write about it, but then mostly I think I should just keep working. Hopefully it will work out and then maybe I'll write more.
Also I'm on day 2 of a juice fast. Not that this really matters in terms of blogging, but it's just helping make everything a little more weird.
Anyway, thanks for reading I guess. Must not be very interesting. One week until new Apple products though, so I'll probably post then at the very least.
just having fun.....in joy the fast, i'm on day 2 of a master cleanse ("mini masters" it will be 4 1/2 days, will do them every other month, i hope)
|
I run qmail with virtual domains. To pipe incoming emails for a certain account (foo@example.com) through a PHP script you have to:
1) create a .qmail-foo file in /home/vpopmail/domains/example.com which contains the following line:
2) the php script can read the raw email message from stdin like this:
This only works (I think this is right) if foo@example.com is *not* an actual mailbox in qmail. Also I did a qmailctl restart which I'm guessing is needed as well (after creating .qmail-foo file.)
- jim 1-08-2008 7:19 pm
Jim this was your first post in 10 days and the one before that was 10 days bak, now we can give you a little holiday slack but........
- Skinny 1-08-2008 11:34 pm
tell it skinny...
- bill 1-08-2008 11:37 pm
Yeah, I haven't been doing too well. I'm in sort of a weird place right now. I'm really at a cross roads in terms of my business and sometimes I think I should write about it, but then mostly I think I should just keep working. Hopefully it will work out and then maybe I'll write more.
Also I'm on day 2 of a juice fast. Not that this really matters in terms of blogging, but it's just helping make everything a little more weird.
Anyway, thanks for reading I guess. Must not be very interesting. One week until new Apple products though, so I'll probably post then at the very least.
- jim 1-09-2008 12:11 am
just having fun.....in joy the fast, i'm on day 2 of a master cleanse ("mini masters" it will be 4 1/2 days, will do them every other month, i hope)
- Skinny 1-09-2008 1:46 pm