|
|
Re: Using maillist.php without procmail? [message #11416 is a reply to message #11381] |
Fri, 27 June 2003 18:40 |
|
stevie
Messages: 35 Registered: May 2003 Location: Boston area, USA
Karma: 0
|
Member |
|
|
I can't believe it, I actually got it to work!!! Thanks for all your help!
Steps, for the interest of anyone else that might want to try an end-run around procmail:
- Started with a single message in an "mbox" formatted textfile, on my hosted server
- Made a php file on my web server with this content:
<?php
echo shell_exec("cat /home/myname/public_html/test/mbox1 | /usr/local/bin/php -q /home/myname/FUDforum/scripts/maillist.php 1");
?>
- accessed the above php file using my browser
- whammo, the contents of the mbox file was very nicely added to my forum!!!
I understand if you have procmail, and understand how to use procmail, that's a great way to go, but for the rest of us, there is definitely an alternative! Now, I still have to work out how to deal with mbox files with many messages, and how to get this script to execute as often as necessary, but I don't believe those will be big stumbling blocks. Again, thanks to protoss, (and also to Gaėtan for teaching me the shell_exec technique)! -Steve
|
|
|
|