Hi Guiseppe!
My bounce mails were send back to the mailing list, because I ran your class with the subscribersonly-option set to "no", since I needed one mailing-list to be accessible to the public. So, I'll eagerly wait for your new release with the bounce mail management.
For my purpose it was also necessary to turn off self-subscription by commenting the following lines in function setConfirmedAddress($address):
$this->dbrow->sublist=$this->sublist=trim($this->sublist)."\n".$address;
$query = 'update '.$this->mltable.' set sublist = \''.
trim($this->sublist).'\' where listname = \''.$this->listname.'\'';
if($command = @mysql_query($query,$this->dbconn)) {
echo "confirmed subscription [$address]\n";
$this->sendWelcomeMessage($address);
}
It would be great to have an option to disallow self-subscription.
I also wanted senders who are not listed in allowsublist to get a message telling them that their mail was not transmitted. That's why I added these lines to function checkSender($address) at the end of if(is_array($this->allow)) {}
if($retval == 'deny' && !eregi("Mailer-Daemon", $address)){
$subject = "Mail to $this->listaddress was not posted";
$body = "some info";
mail($address, $subject, $body, null, '
[email protected]');
}
Finally, I received an error message with multiple mailing lists, so I had to change
stream_wrapper_register('pop3', 'pop3_stream');
in function init() to:
if(!in_array("pop3", stream_get_wrappers())){
stream_wrapper_register('pop3', 'pop3_stream');
}
Best,
Ron