[w3m-dev 03608] news:<newsgroup>

* XMakefile (LSRCS): add news.c
	(LOBJS): add news.o
* file.c (loadSOmething): don't UFclose() for nntp/news
	(readHeader): remove . at beginning of line for news
		img link to file:
	(loadGeneralFile): add SCM_NEWS_GROUP
		don't UFclose() for nntp/news
	(loadHTMLstream): . line check for news
	(loadBuffer): . line check for news
* fm.h (NNTP_server): added
	(NNTP_mode): added
	(MaxNewsMessage): added
* html.h (SCM_NEWS_GROUP): added
* main.c (main): NNTP_server or NNTPSERVER
		NNTP_mode or NNTPMODE
		add SCM_NEWS_GROUP
	(followA): remove news:..@.. check
	(cmd_loadURL): remove news:...@.. check
	(w3m_exit): disconnectNews
* proto.h (openNewsStream): added
	(readNewsgroup): added
	(disconnectNews): added
* rc.c (CMT_NNTP_SERVER): added
	(CMT_NNTP_MODE): added
	(CMT_MAX_NEWS): added
	(params9): add nntpserver, nntpmode, max_news
* url.c (DefaultPort): add 119 for news group
	(parseURL2): news:..@... is SCM_NEWS_GROUP
	(_parsedURL2Str): add news for SCM_NEWS_GROUP
	(openURL): cleanup SCM_NEWS
		add SCM_NEWS_GROUP
* news.c: added
From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
This commit is contained in:
Fumitoshi UKAI
2002-12-27 16:07:44 +00:00
parent ede9936f50
commit 44ee521b14
10 changed files with 612 additions and 122 deletions

7
html.h
View File

@@ -1,4 +1,4 @@
/* $Id: html.h,v 1.16 2002/12/14 15:18:38 ukai Exp $ */
/* $Id: html.h,v 1.17 2002/12/27 16:07:44 ukai Exp $ */
#ifndef _HTML_H
#define _HTML_H
#ifdef USE_SSL
@@ -362,9 +362,10 @@ struct environment {
#define SCM_EXEC 6
#define SCM_NNTP 7
#define SCM_NEWS 8
#define SCM_MAILTO 9
#define SCM_NEWS_GROUP 9
#define SCM_MAILTO 10
#ifdef USE_SSL
#define SCM_HTTPS 10
#define SCM_HTTPS 11
#endif /* USE_SSL */
#endif /* _HTML_H */