Skip to content

Commit

Permalink
preliminary inbound nntpchan support
Browse files Browse the repository at this point in the history
  • Loading branch information
czaks committed Aug 15, 2016
1 parent 1cfafed commit eaa6114
Show file tree
Hide file tree
Showing 3 changed files with 361 additions and 136 deletions.
17 changes: 17 additions & 0 deletions inc/config.php
Expand Up @@ -1779,6 +1779,23 @@ function($matches) {
// Example: Adding the pre-markup post body to the API as "com_nomarkup".
// $config['api']['extra_fields'] = array('body_nomarkup' => 'com_nomarkup');

/*
* ==================
* NNTPChan settings
* ==================
*/

$config['nntpchan'] = array();

// Enable NNTPChan integration
$config['nntpchan']['enabled'] = false;

// NNTP server
$config['nntpchan']['server'] = "localhost:1119";

// Global dispatch array. Add your boards to it to enable them.
$config['nntpchan']['dispatch'] = array(); // 'overchan.test' => 'test'

/*
* ====================
* Other/uncategorized
Expand Down
19 changes: 19 additions & 0 deletions install.sql
Expand Up @@ -409,6 +409,25 @@ CREATE TABLE IF NOT EXISTS `board_stats` (



-- --------------------------------------------------------

--
-- Table structure for table `nntp_references`
--

CREATE TABLE `nntp_references` (
`board` varchar(60) NOT NULL,
`id` int(11) unsigned NOT NULL,
`message_id` varchar(255) CHARACTER SET ascii NOT NULL,
`message_id_digest` varchar(40) CHARACTER SET ascii NOT NULL,
`own` tinyint(1) NOT NULL,
`headers` text,
PRIMARY KEY (`message_id_digest`),
UNIQUE KEY `message_id` (`message_id`),
UNIQUE KEY `u_board_id` (`board`, `id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4;


/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;

0 comments on commit eaa6114

Please sign in to comment.