From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-Status: No, score=-3.9 required=3.0 tests=AWL,BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,SPF_HELO_NONE, SPF_PASS shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from pb-smtp2.pobox.com (pb-smtp2.pobox.com [64.147.108.71]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by dcvr.yhbt.net (Postfix) with ESMTPS id 32B7D1F5AE for ; Sat, 27 Jun 2020 19:06:07 +0000 (UTC) Received: from pb-smtp2.pobox.com (unknown [127.0.0.1]) by pb-smtp2.pobox.com (Postfix) with ESMTP id 1E27067535; Sat, 27 Jun 2020 15:06:06 -0400 (EDT) (envelope-from kyle@kyleam.com) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=pobox.com; h=from:to:cc :subject:in-reply-to:references:date:message-id:mime-version :content-type; s=sasl; bh=gkNuTXEfFS7Sni8qEDpPBWTQw4o=; b=XE86S6 oEf64NeaeYLGSj4U6w7a1hspKkEH/XL1La0Rxt6dAy9mEJqcuPgiQjA9uzs29YHs 129vvgMwkzvU9zbUn2v2vAZuHJ95k5nj4kj3kj/xaRU5OwP0Krahtq61h9Ydw+pZ KcRCZ0U5erunYsxXWgpcxqbWnW2g8/Gv41JnQ= Received: from pb-smtp2.nyi.icgroup.com (unknown [127.0.0.1]) by pb-smtp2.pobox.com (Postfix) with ESMTP id 15E5367533; Sat, 27 Jun 2020 15:06:06 -0400 (EDT) (envelope-from kyle@kyleam.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=kyleam.com; h=from:to:cc:subject:in-reply-to:references:date:message-id:mime-version:content-type; s=mesmtp; bh=+gAdbsosQHxbTyWuLmAiGH+H8znXZYM2D8K+AIfBV8A=; b=srPNFUMi+dYU+U/lO9j7udKZ0xprsM1fEwE2joHEkAcALvezSEIpjP6mC4mCgessGzOByh84ApAKkwTyh5iRj7ZcVppf/JOB9JrtsYWwR03sK+w6TaAs/4IBRVaPGiI+bOR6YmiB0fR2U4fM+1uCi5V/gr3pE83XyOVjj8CJ3iM= Received: from localhost (unknown [45.33.91.115]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pb-smtp2.pobox.com (Postfix) with ESMTPSA id 6DE2F67532; Sat, 27 Jun 2020 15:06:05 -0400 (EDT) (envelope-from kyle@kyleam.com) From: Kyle Meyer To: Eric Wong Cc: meta@public-inbox.org Subject: Re: [PATCH 28/34] watch: add NNTP support In-Reply-To: <20200627100400.9871-29-e@yhbt.net> References: <20200627100400.9871-1-e@yhbt.net> <20200627100400.9871-29-e@yhbt.net> Date: Sat, 27 Jun 2020 15:06:04 -0400 Message-ID: <87sgeg5nxf.fsf@kyleam.com> MIME-Version: 1.0 Content-Type: text/plain X-Pobox-Relay-ID: 4038B8C6-B8A9-11EA-A2C0-D1361DBA3BAF-24757444!pb-smtp2.pobox.com List-Id: Eric Wong writes: > +# flesh out common NNTP-specific data structures > +sub nntp_common_init ($) { > + my ($self) = @_; > + my $cfg = $self->{config}; > + my $nn_args = {}; # scheme://authority => Net::NNTP->new arg > + for my $url (sort keys %{$self->{nntp}}) { > + my $sec = uri_section(URI->new($url)); > + > + # Debug and Timeout are is passed to Net::NNTP->new s/ is// > + my $v = cfg_bool($cfg, 'nntp.Debug', $url); > + $nn_args->{$sec}->{Debug} = $v if defined $v; > + my $to = cfg_intvl($cfg, 'nntp.Timeout', $url); > + $nn_args->{$sec}->{Timeout} = $to if $to;