--- NP_TrackBack.php 2007-12-16 23:47:58.000000000 -0800 +++ /home/yuxuanwang/NP_TrackBack.php 2007-12-16 23:36:28.000000000 -0800 @@ -674,6 +690,7 @@ $block = $spam == true || $link == false; // New TB, insert it + if (!$block || $this->getOption('DropBlocked') == 'no') { $query = ' INSERT INTO '.sql_table('plugin_tb').' @@ -695,9 +712,10 @@ return 'Could not save trackback data, possibly because of a double entry: ' . mysql_error() . $query; } } + } // 7. Send notification e-mail if needed - if (($block == false || $this->getBlogOption(getBlogIDFromItemID($tb_id), 'NoNotifyBlocked') == 'no') + if (($block == false || $this->getBlogOption(getBlogIDFromItemID($tb_id), 'NoNotifyBlocked') == 'no' && $this->getOption('DropBlocked') == 'no') && $this->getBlogOption(getBlogIDFromItemID($tb_id), 'Notify') == 'yes') { $destAddress = $this->getBlogOption(getBlogIDFromItemID($tb_id), 'NotifyEmail'); @@ -1936,6 +1954,7 @@ $this->createOption('DropTable', 'Clear the database when uninstalling','yesno','no'); $this->createOption('BlockSpams', 'Blocked Spams directly?','yesno','yes'); + $this->createOption('DropBlocked', 'Drop blocked trackbacks directly?','yesno','no'); /* Create tables */