nntp::Session object method refresh (public)

 nntp::Session[i] refresh [ -server server ] [ -port port ] \
    [ -group group ]

Defined in packages/xowiki/tcl/nntp-procs.tcl

Refresh articles in the database with messages from the NNTP news server. ns_section ns/server/${server}/acs/nntp { ns_param NttpUser gustafn ns_param NttpPassword isxqsomzp } ad_schedule_proc -thread t 5m ::nntp::Session refresh

Switches:
-server (optional, defaults to "news.eternal-september.org")
-port (optional, defaults to "119")
-group (optional, defaults to "comp.lang.tcl")

Testcases:
No testcase defined.
Source code:
set nntp_user [ns_config "ns/server/[ns_info server]/acs/nntp" NttpUser]
if {$nntp_user eq ""} {
    error "NntpUser is not configured"
}

set s [nntp::Session new -server $server -port $port]
try {
    $s login $nntp_user [ns_config "ns/server/[ns_info server]/acs/nntp" NttpPassword]
    $s group $group
} finally {
    $s destroy
}
XQL Not present:
Generic, PostgreSQL, Oracle
[ hide source ] | [ make this the default ]
Show another procedure: