Ok u got all the letters.
As to the actual DB, I think Chris told us that they gonna use some 3
letters forum, so I'm gonna look through archive to see what exactly that
thing is and probably will setup it on my server.
_____
From: Imran K [mailto:gururug at gmail dot com]
Sent: Monday, January 08, 2007 7:03 PM
To: Alex M
Subject: Re: [m0n0wall-dev] RE: [Forged Sender] RE: [m0n0wall] Re: why dont
we have forum?
Up to the stage where I check the email against forum db.
Am going to need a test db for this, do you have;
-an sql dump of the db schema with some sample data in it?
-forum source would also be nice? :) but not absolutly required now.
SIDENOTE (Are we sure we want to delete after adding to db or is there a
chance we may be better off moving to another folder for
recordkeeping(backup) purposes?
Cheers
On 1/9/07, Imran K <gururug at gmail dot com> wrote:
Great, will take a look, here's where i'm up to with the code, probrably
need to check the formatting of body?
###################################################################
<?php
// setup access vars
$popserver = 'localhost';
$popuser = 'wulf';
$poppwd = 'joseph107';
// connect to server
$mailbox = imap_open("{".$popserver."/pop3/notls:110}INBOX", $popuser,
$poppwd ) or die("unable to connect pop3 server: " . imap_last_error());
// how many new messages?
$mno = imap_num_msg($mailbox);
// make sure that we have new messages
if ($mno == 0) {
die("no new messages");
exit();
}
echo "you have $mno messages\n";
// loop for messages
for ($i = 1; $i <= $mno; ++$i) {
$header = imap_header($mailbox, $i);
// set some output vars
$email = "{$header->from[0]->mailbox}@{$header->from[0]->host}";
$body = imap_body($mailbox, $i);
$tstamp = date("jS F Y", $header->udate);
$subject = $header->Subject;
// Format Output
echo " Message: $i\n";
echo " Timestamp: $tstamp\n";
echo " From: $email\n";
echo " Subject: $subject.\n";
echo " Message: $body.\n";
}
// close server conn
imap_close($mailbox);
// fin
?>
On 1/9/07, Alex M <radiussupport at lrcommunications dot net> wrote:
Here is algorithm resend hope it gets delivered
--
IK
--
IK |