diff options
author | Fumitoshi UKAI <ukai@debian.or.jp> | 2002-12-27 16:07:44 +0000 |
---|---|---|
committer | Fumitoshi UKAI <ukai@debian.or.jp> | 2002-12-27 16:07:44 +0000 |
commit | 44ee521b14c164a2d0886a35b19f6a1a3377ff5c (patch) | |
tree | 76499044298687cc70fb8328de16b38ca10fe182 /rc.c | |
parent | [w3m-dev 03607] mymktime: time zone support (diff) | |
download | w3m-44ee521b14c164a2d0886a35b19f6a1a3377ff5c.tar.gz w3m-44ee521b14c164a2d0886a35b19f6a1a3377ff5c.zip |
[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>
Diffstat (limited to '')
-rw-r--r-- | rc.c | 18 |
1 files changed, 17 insertions, 1 deletions
@@ -1,4 +1,4 @@ -/* $Id: rc.c,v 1.73 2002/12/24 17:20:48 ukai Exp $ */ +/* $Id: rc.c,v 1.74 2002/12/27 16:07:44 ukai Exp $ */ /* * Initialization file etc. */ @@ -106,6 +106,11 @@ static char *config_file = NULL; #define CMT_NO_PROXY "プロキシから除外するドメイン" #define CMT_NOPROXY_NETADDR "ネットワークアドレスでプロキシ除外のチェック" #define CMT_NO_CACHE "Cache を使わない" +#ifdef USE_NNTP +#define CMT_NNTP_SERVER "News サーバ" +#define CMT_NNTP_MODE "News サーバのモード" +#define CMT_MAX_NEWS "News を一覧表示する時の数" +#endif #define CMT_DNS_ORDER "名前解決の順序" #define CMT_DROOT "/ で表されるディレクトリ(document root)" #define CMT_PDROOT "/~user で表されるディレクトリ" @@ -264,6 +269,11 @@ static char *config_file = NULL; #define CMT_NO_PROXY "Domains to be accessed directly (no proxy)" #define CMT_NOPROXY_NETADDR "Check noproxy by network address" #define CMT_NO_CACHE "Disable cache" +#ifdef USE_NNTP +#define CMT_NNTP_SERVER "News server" +#define CMT_NNTP_MODE "Mode of news server" +#define CMT_MAX_NEWS "Number of news messages" +#endif #define CMT_DNS_ORDER "Order of name resolution" #define CMT_DROOT "Directory corresponding to / (document root)" #define CMT_PDROOT "Directory corresponding to /~user" @@ -783,6 +793,12 @@ struct param_ptr params9[] = { {"dns_order", P_INT, PI_SEL_C, (void *)&DNS_order, CMT_DNS_ORDER, dnsorders}, #endif /* INET6 */ +#ifdef USE_NNTP + {"nntpserver", P_STRING, PI_TEXT, (void *)&NNTP_server, CMT_NNTP_SERVER, + NULL}, + {"nntpmode", P_STRING, PI_TEXT, (void *)&NNTP_mode, CMT_NNTP_MODE, NULL}, + {"max_news", P_INT, PI_TEXT, (void *)&MaxNewsMessage, CMT_MAX_NEWS, NULL}, +#endif {NULL, 0, 0, NULL, NULL, NULL}, }; |