--- knews-1.0b.1.orig/Imakefile +++ knews-1.0b.1/Imakefile @@ -8,9 +8,9 @@ #define IHaveSubdirs #if HAVE_POSIX_REGEXPS -SUBDIRS = Widgets src +SUBDIRS = Widgets src util/knewsd util/tcp_relay #else -SUBDIRS = Widgets regexp src +SUBDIRS = Widgets regexp src util/knewsd util/tcp_relay #endif #undef PassCDebugFlasg --- knews-1.0b.1.orig/configure.h +++ knews-1.0b.1/configure.h @@ -14,7 +14,7 @@ * * If you don't have sendmail, use /bin/false :-). */ -/* #define MAIL_COMMAND "/usr/sbin/sendmail -t" */ +#define MAIL_COMMAND "/usr/sbin/sendmail -t" /* #define MAIL_COMMAND "/usr/lib/sendmail -t" */ @@ -30,7 +30,7 @@ * (Note: Filenames not beginning with / are relative to $HOME.) */ -/* #define DOMAIN_FILE "/your/file/here" */ +#define DOMAIN_FILE "/etc/mailname" /* #define DOMAIN_NAME "your domain here" */ @@ -51,7 +51,7 @@ * Both %s and %i are optional, although the editor will not be much use * if you don't specify %s... */ -#define DEFAULT_EDIT_COMMAND "xterm -e vi +%i %s" +#define DEFAULT_EDIT_COMMAND "/usr/bin/sensible-editor %s" @@ -63,7 +63,7 @@ /* If both the resource Knews.nntpServer and $NNTPSERVER are * unset, this will be used for nntp server. No need to set it. */ -/* #define DEFAULT_DEFAULT_NNTPSERVER "your.server" */ +#define DEFAULT_NNTPSERVER_FILE "/etc/news/server" /* The path of the standard shell, no need to set this unless you * have no /bin/sh. Don't put a bogus shell here. @@ -84,8 +84,8 @@ * libcompface. */ -#define HAVE_JPEG 0 -#define HAVE_PNG 0 +#define HAVE_JPEG 1 +#define HAVE_PNG 1 #define HAVE_COMPFACE 0 @@ -138,7 +138,7 @@ * * Knews*backgroundPixmap: ~/dir/texture.xpm */ -#define HAVE_XPM 0 +#define HAVE_XPM 1 /* If your system doesn't have the POSIX sigaction() function, defining --- knews-1.0b.1.orig/debian/changelog +++ knews-1.0b.1/debian/changelog @@ -0,0 +1,398 @@ +knews (1.0b.1-34) unstable; urgency=medium + + [ Debian Janitor ] + * Remove constraints unnecessary since stretch: + + knews: Drop versioned constraint on debconf in Depends. + + [ Colin Watson ] + * Convert several debconf translations to UTF-8. + + -- Colin Watson Sun, 26 Dec 2021 01:48:40 +0000 + +knews (1.0b.1-33) unstable; urgency=medium + + [ Colin Watson ] + * Use debhelper-compat instead of debian/compat. + + [ Debian Janitor ] + * Bump debhelper from old 9 to 12. + + -- Colin Watson Mon, 08 Feb 2021 21:47:39 +0000 + +knews (1.0b.1-32) unstable; urgency=medium + + * Move VCS to salsa.debian.org. + * Depend on sensible-utils. + + -- Colin Watson Sat, 27 Oct 2018 21:47:07 +0100 + +knews (1.0b.1-31) unstable; urgency=medium + + * Use HTTPS for Vcs-* URLs. + * Build with all hardening options. + * Upgrade to debhelper v9. + * Policy version 3.9.6: no changes required. + + -- Colin Watson Wed, 27 Jan 2016 12:26:37 +0000 + +knews (1.0b.1-30) unstable; urgency=medium + + * Update Vcs-Browser URL for alioth cgit. + * Simplify debian/rules using /usr/share/dpkg/buildflags.mk. + * Run "xmkmf -a" from override_dh_auto_configure rather than + override_dh_auto_build. + * Add Italian debconf translation (thanks, Beatrice Torracca; closes: + #778382). + * Don't build the compilation date and time into the binary. This made + the build unreproducible. + + -- Colin Watson Sat, 14 Mar 2015 00:23:42 +0000 + +knews (1.0b.1-29) unstable; urgency=medium + + * Switch to git; add Vcs-* fields. + * Policy version 3.9.5: no changes required. + + -- Colin Watson Mon, 27 Jan 2014 22:58:06 +0000 + +knews (1.0b.1-28) unstable; urgency=low + + * Rebuild in a clean unstable chroot to avoid pulling in experimental's + libpng15-15. + + -- Colin Watson Wed, 07 Mar 2012 10:02:21 +0000 + +knews (1.0b.1-27) unstable; urgency=low + + * Build-depend on libpng-dev rather than libpng12-dev (closes: #662389). + + -- Colin Watson Mon, 05 Mar 2012 09:44:00 +0000 + +knews (1.0b.1-26) unstable; urgency=low + + * Adjust debhelper build-dependency to allow for backports. + * Build-Depend on libjpeg-dev rather than libjpeg62-dev. + * Fix undersized args array in action_tree_layout. + * Use strcpy instead of sprintf in fork_editor in the case where neither + %s nor %i is present in editcmd, to avoid an error under + -Werror=format-security. + * Use dpkg-buildflags to set default compiler flags. + + -- Colin Watson Tue, 27 Sep 2011 01:12:04 +0100 + +knews (1.0b.1-25) unstable; urgency=low + + [ Nobuhiro Iwamatsu ] + * Fix build failure with libpng 1.5 (closes: #635949). + + -- Colin Watson Sat, 30 Jul 2011 09:50:01 +0100 + +knews (1.0b.1-24) unstable; urgency=low + + * Add Russian debconf translation (thanks, Yuri Kozlov; closes: #513508). + * Upgrade to debhelper v7. + + -- Colin Watson Fri, 14 Aug 2009 22:17:20 +0100 + +knews (1.0b.1-23) unstable; urgency=low + + * Build-depend on xutils-dev rather than xutils (thanks, Daniel Schepler; + closes: #485206). + * Use \e rather than \\ in man page, partly because that's more correct + anyway and partly to avoid cpp backslash-newline translation. + * Build-depend on x11proto-core-dev rather than x-dev (thanks, Lintian). + * Refer to /usr/share/common-licenses/GPL-2 in debian/copyright rather + than plain GPL. + * Update DEB_BUILD_OPTIONS parsing code from policy 3.8.0. + * Policy version 3.8.0. + + -- Colin Watson Sun, 08 Jun 2008 21:24:21 +0100 + +knews (1.0b.1-22) unstable; urgency=low + + * Add Portuguese debconf translation (thanks, Rui Branco; + closes: #414144). + * Update Spanish debconf translation (thanks, Carlos Galisteo de Cabo; + closes: #424606). + * Drop source-compatibility with woody. + * Replace null characters in articles with spaces (thanks, Dick + Streefland; closes: #227259). + * Update to menu structure from menu 2.1.35. + + -- Colin Watson Mon, 12 Nov 2007 11:02:05 +0000 + +knews (1.0b.1-21) unstable; urgency=low + + * Simplify state machine in config script, avoiding a bashism. + * Add Vietnamese debconf translation (thanks, Clytie Siddall; + closes: #314269). + * Add Swedish debconf translation (thanks, Daniel Nylander; + closes: #333406). + * Update Spanish debconf translation (thanks, Carlos Galisteo de Cabo; + closes: #323382). + * Use debhelper v4. + * Update FSF address in debian/copyright. + * Policy version 3.7.2. + + -- Colin Watson Sat, 28 Oct 2006 08:52:19 +0100 + +knews (1.0b.1-20) unstable; urgency=low + + * Add Czech debconf translation (thanks, Miroslav Kure; closes: #291878). + + -- Colin Watson Mon, 24 Jan 2005 10:40:04 +0000 + +knews (1.0b.1-19) unstable; urgency=low + + * Depend on debconf | debconf-2.0. + + -- Colin Watson Thu, 13 Jan 2005 09:04:55 +0000 + +knews (1.0b.1-18) unstable; urgency=low + + * Build-depend on x-dev, libx11-dev, libxmu-dev, libxpm-dev, libxt-dev, + libice-dev, and libsm-dev rather than the transitional xlibs-dev + package. + + -- Colin Watson Fri, 26 Nov 2004 15:16:02 +0000 + +knews (1.0b.1-17) unstable; urgency=low + + * Add Japanese debconf translation (thanks, Hideki Yamane; + closes: #255061). + * Update Brazilian Portuguese debconf translation (thanks, André Luís + Lopes; closes: #264208). + + -- Colin Watson Sat, 7 Aug 2004 17:55:57 +0100 + +knews (1.0b.1-16) unstable; urgency=low + + * Add Dutch debconf translation (thanks, Frans Pop; closes: #242030). + + -- Colin Watson Sun, 4 Apr 2004 13:57:42 +0100 + +knews (1.0b.1-15) unstable; urgency=low + + * Oops; debian/po/POTFILES.in should list templates.master, not templates. + + -- Colin Watson Sat, 6 Mar 2004 15:15:50 +0000 + +knews (1.0b.1-14) unstable; urgency=low + + * Add French debconf translation (thanks, Eric Madesclair; + closes: #235646). + + -- Colin Watson Mon, 1 Mar 2004 17:42:53 +0000 + +knews (1.0b.1-13) unstable; urgency=low + + * Convert debconf translation support to po-debconf. + * Build-depend on libpng12-dev rather than libpng3-dev. + * Policy version 3.6.1: + - Drop DEB_BUILD_OPTIONS=debug support; add noopt support. + * Remove Emacs local variables from this changelog. + + -- Colin Watson Fri, 20 Feb 2004 11:37:52 +0000 + +knews (1.0b.1-12) unstable; urgency=low + + * Some new Spanish and Brazilian Portuguese templates from the DDTP. + + -- Colin Watson Tue, 26 Nov 2002 23:45:41 +0000 + +knews (1.0b.1-11) unstable; urgency=low + + * Depend on sharutils for uudecode (closes: #158379). + * Mention knewsd in the package description. + + -- Colin Watson Tue, 27 Aug 2002 11:07:04 +0100 + +knews (1.0b.1-10) unstable; urgency=low + + * Make sure XOVER responses always end with CR-LF (thanks, Achim Linder; + closes: #156632). + * Install util/knewsd/README as /usr/share/doc/knews/README.knewsd. + + -- Colin Watson Mon, 26 Aug 2002 12:24:55 +0100 + +knews (1.0b.1-9) unstable; urgency=low + + * libpng-dev has been renamed to libpng3-dev, so track this in the + build-dependencies. + + -- Colin Watson Mon, 29 Jul 2002 11:24:12 +0000 + +knews (1.0b.1-8) unstable; urgency=low + + * Build against libpng3 (we don't use Qt or GNOME libraries, so this is + OK). + * New Danish debconf translation (thanks, Rune B. Broberg; + closes: #131096). + + -- Colin Watson Sun, 27 Jan 2002 12:10:16 +0000 + +knews (1.0b.1-7) unstable; urgency=low + + * New maintainer (closes: #86390). + * Repackage using debhelper rather than yada. + * Ask configuration questions using debconf. I've based this on the trn4 + package, which I know to work and which already has a German + translation. + + -- Colin Watson Sun, 23 Dec 2001 14:20:10 +0000 + +knews (1.0b.1-6) unstable; urgency=low + + * Rebuild with yada >= 0.9.8, which works around a bug in dpkg-shlibdeps + (closes: #92749). + * debian/png.dpatch: libpng seems to have moved several interfaces to + PNG_INTERNAL. I've patched knews' png code as best I can; please report + any bugs that result (closes: #115958). + * Change maintainer address to packages@qa.debian.org. + + -- Colin Watson Wed, 17 Oct 2001 20:41:53 +0100 + +knews (1.0b.1-5) unstable; urgency=medium + + * Use external yada. Closes: #91755. + * Conforms to Standards version 3.5.2: + * Install into /usr rather than /usr/X11R6. + * Support the `debug' and `nostrip' build options. + + -- Matej Vela Tue, 27 Mar 2001 06:53:21 +0200 + +knews (1.0b.1-4) unstable; urgency=medium + + * Make debian/yada executable. (closes: #86551) + * s/xlib6g-dev/xlibs-dev/ in the build dependencies. + + -- Adrian Bunk Thu, 22 Feb 2001 13:28:14 +0100 + +knews (1.0b.1-3) unstable; urgency=low + + * Recompile with last library dependencies (closes: #67933) + * Fixed and moved Build-Depends in debian/packages (closes: #83856) + * Moved Knews in /etc/X11/app-defaults/ (closes: #86276, #78570) + * Moved man page in /usr/X11R6/man/ (closes: #48147) + * Orphaned the package + + -- Christophe Le Bars Sat, 17 Feb 2001 17:49:14 +0100 + +knews (1.0b.1-2.1) unstable; urgency=low + + * NMU by Branden Robinson . + * Recompile against modern xpm4g package to get proper shared library + dependency and permit this package to be installed with forthcoming + XFree86 4.x packages, which include libXpm. + * debian/control: added Build-Depends + + -- Branden Robinson Mon, 23 Oct 2000 12:17:04 -0500 + +knews (1.0b.1-2) unstable; urgency=low + + * Recompiled against libjpeg62 (closes: #43349) + * Switched /usr/doc/ -> /usr/share/doc/ + + -- Christophe Le Bars Mon, 27 Sep 1999 02:05:00 +0200 + +knews (1.0b.1-1) unstable; urgency=low + + * New upstream release with pristine sources + * Converted package management to YADA + * Partially upgraded to standards version 3.0.0: + - FHS-compliance, with the notable exception of the + /usr/doc/ -> /usr/share/doc/ switch. + * Fixed a bashism in postinst (closes: #30856) + + -- Christophe Le Bars Sun, 8 Aug 1999 15:39:53 +0200 + +knews (1.0b.0-3) unstable; urgency=low + + * Recompiled against libpng2 (Fixes: Bug#26925) + * Corrected knews to directly use /etc/news/server + + -- Christophe Le Bars Tue, 29 Sep 1998 01:22:03 +0200 + +knews (1.0b.0-2) frozen unstable; urgency=low + + * Updated standards-version + * Changed FSF address + * Corrected postinst to use /etc/mailname + * Corrected postinst to use tempfile + * Fixed knews to use /usr/bin/sensible-editor + + -- Christophe Le Bars Fri, 10 Apr 1998 18:09:44 +0200 + +knews (1.0b.0-1) unstable; urgency=low + + * New upstream release with pristine sources + * Changed distribution (now GPL) + + -- Christophe Le Bars Mon, 9 Feb 1998 00:40:42 +0000 + +knews (0.9.8-10) unstable; urgency=low + + * Fixed \r\n endline problem when Knews calls inews and sendmail + (Mark Baker patch) (Bug#9317) + + -- Christophe Le Bars Mon, 15 Dec 1997 01:58:52 +0100 + +knews (0.9.8-9) unstable; urgency=low + + * Built with libc6 + + -- Christophe Le Bars Sun, 28 Sep 1997 00:43:36 +0200 + +knews (0.9.8-8) unstable; urgency=low + + * Fixed distribution problem in changelog file + * Fixed postinst problem (Bug#12313) + + -- Christophe Le Bars Wed, 10 Sep 1997 00:06:27 +0200 + +knews (0.9.8-7) stable-non-free non-free; urgency=medium + + * Fixed a security problem in the postinst script (Bug#1177) + * Added a menu entry + * Changed distribution + + -- Christophe Le Bars Sun, 10 Aug 1997 19:27:54 +0200 + +knews (0.9.8-6) unstable; urgency=low + + * Set the domain name with /etc/news/whoami (Bug#10844) (Bug#10369) + + -- Christophe Le Bars Sun, 29 Jun 1997 20:18:10 +0200 + +knews (0.9.8-5) frozen unstable; urgency=medium + + * Included many bugfixes from upstream (Bug#6872) + + -- Christophe Le Bars Tue, 6 May 1997 20:16:42 +0200 + +knews (0.9.8-4) frozen unstable; urgency=low + + * New maintainer + * Updated to new standards + + -- Christophe Le Bars Tue, 8 Apr 1997 23:00:27 +0200 + +knews (0.9.8-3) unstable; urgency=low + + * Corrected maintainer address + + -- Michael Alan Dorman Mon, 23 Sep 1996 12:32:03 -0400 + +knews (0.9.8-2) unstable; urgency=low + + * Accomodate the fact that dpkg-source doesn't properly preserve + permissions on scripts when extracting package. + + -- Michael Alan Dorman Mon, 23 Sep 1996 11:28:37 -0400 + +knews (0.9.8-1) unstable; urgency=low + + * New upstream version + * New packaging format + + -- Michael Alan Dorman Mon, 16 Sep 1996 14:39:40 -0400 --- knews-1.0b.1.orig/debian/config +++ knews-1.0b.1/debian/config @@ -0,0 +1,94 @@ +#! /bin/sh + +set -e + +# Source debconf library. +. /usr/share/debconf/confmodule +db_version 2.0 + +# We can back up. +db_capb backup + +# To make backing up easier, we do a lot of the logic outside the state +# machine. + +question1=no +question2=no + +# Useful system information. +hostname=`hostname --fqdn 2>/dev/null || true` +domainname=`dnsdomainname 2>/dev/null || true` + +# Default news server. +if [ ! -s /etc/news/server ]; then + db_get shared/news/server + nntpserver="$RET" + if [ -z "$nntpserver" ]; then + # Try to guess a good value for the NNTP server. + if [ -n "$domainname" ]; then + nntpserver="news.$domainname" + else + nntpserver="$hostname" + fi + fi + db_set shared/news/server "$nntpserver" + question1=yes +fi + +# Default mail name. +if [ ! -s /etc/mailname ]; then + db_get knews/mail-name + mailname="$RET" + if [ -z "$mailname" ]; then + mailname="$hostname" + fi + db_set knews/mail-name "$mailname" + question2=yes +fi + +# From here on should be fairly generic; copying and pasting this with +# reference to the above should get you a state machine supporting backing +# up and unused questions. + +state=1 +action=forward + +nextstate () +{ + if [ $action = forward ]; then + state=$(($state + 1)) + else + state=$(($state - 1)) + fi +} + +while :; do + case $state in + 1) + # "What news server should be used for reading and posting news?" + if [ "$question1" = no ]; then nextstate; continue; fi + db_input medium shared/news/server || true + ;; + 2) + # "What is your system's mail name?" + if [ "$question2" = no ]; then nextstate; continue; fi + db_input medium knews/mail-name || true + ;; + *) + break + ;; + esac + + if db_go; then + action=forward + else + action=back + fi + nextstate +done + +if [ $state = 0 ]; then + exit 1 +else + exit 0 +fi --- knews-1.0b.1.orig/debian/control +++ knews-1.0b.1/debian/control @@ -0,0 +1,39 @@ +Source: knews +Maintainer: Colin Watson +Section: news +Priority: optional +Standards-Version: 3.9.6 +Build-Depends: bison, + debhelper-compat (= 12), + dpkg-dev (>= 1.16.1~), + libice-dev, + libjpeg-dev, + libpng-dev, + libsm-dev, + libx11-dev, + libxmu-dev, + libxpm-dev, + libxt-dev, + x11proto-core-dev, + xutils-dev, + zlib1g-dev, +Vcs-Git: https://salsa.debian.org/debian/knews.git +Vcs-Browser: https://salsa.debian.org/debian/knews + +Package: knews +Architecture: any +Depends: sensible-utils, + sharutils, + ${misc:Depends}, + ${shlibs:Depends}, +Provides: news-reader, +Description: Graphical threaded news reader + Knews is an X11 based thread-oriented news reader. It is capable of + representing threads as a graphical tree, represents quotations with + different colors and much more. + . + Also included here is knewsd, a tiny NNTP daemon which can read news + from a spool directory or even from a mail folder hierarchy, for use + when you don't have a real server available. There is no guarantee + that it will work with any client other than knews, so it is not + packaged separately. --- knews-1.0b.1.orig/debian/copyright +++ knews-1.0b.1/debian/copyright @@ -0,0 +1,29 @@ +This is the Debian prepackaged version of knews. It was originally packaged +by Michael Alan Dorman, later maintained by Christophe Le Bars, and is now +maintained by Colin Watson . + +The upstream source was downloaded from +. More information +is available from . + +Copyright: + +Copyright (C) 1995,1996 Karl-Johan Johnsson + +This program is free software; you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation; either version 2 of the License, or +(at your option) any later version. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program; if not, write to the Free Software +Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, +USA. + +On any Debian system, you can find the complete text of the GNU General +Public License in the file /usr/share/common-licenses/GPL-2. --- knews-1.0b.1.orig/debian/menu +++ knews-1.0b.1/debian/menu @@ -0,0 +1,5 @@ +?package(knews):\ + needs="x11"\ + command="knews"\ + section="Applications/Network/Communication"\ + title="Knews" --- knews-1.0b.1.orig/debian/po/POTFILES.in +++ knews-1.0b.1/debian/po/POTFILES.in @@ -0,0 +1 @@ +[type: gettext/rfc822deb] templates --- knews-1.0b.1.orig/debian/po/cs.po +++ knews-1.0b.1/debian/po/cs.po @@ -0,0 +1,61 @@ +# +# Translators, if you are not familiar with the PO format, gettext +# documentation is worth reading, especially sections dedicated to +# this format, e.g. by running: +# info -n '(gettext)PO Files' +# info -n '(gettext)Header Entry' +# +# Some information specific to po-debconf are available at +# /usr/share/doc/po-debconf/README-trans +# or http://www.debian.org/intl/l10n/po-debconf/README-trans +# +# Developers do not need to manually edit POT or PO files. +# +msgid "" +msgstr "" +"Project-Id-Version: knews\n" +"Report-Msgid-Bugs-To: knews@packages.debian.org\n" +"POT-Creation-Date: 2007-11-12 10:53+0000\n" +"PO-Revision-Date: 2005-01-23 18:22+0100\n" +"Last-Translator: Miroslav Kure \n" +"Language-Team: Czech \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#. Type: string +#. Description +#: ../templates:1001 +msgid "What news server should be used for reading and posting news?" +msgstr "Který server chcete použít pro čtení a posílání příspěvků?" + +#. Type: string +#. Description +#: ../templates:1001 +msgid "" +"knews is configured to read news via an NNTP connection, and needs to know " +"the fully-qualified host name of the server (such as news.example.com). If " +"you have a local news spool, you should consider installing some NNTP server " +"like inn2; in that case, enter \"localhost\" as your news server." +msgstr "" +"knews je nastaven, že čte příspěvky přes NNTP spojení a potřebuje znát plně " +"kvalifikované doménové jméno serveru (jako je news.proklad.cz). Máte-li " +"lokální spool s příspěvky, měli byste zvážit instalaci NNTP serveru (např. " +"inn2) a zde zadat jako jméno news serveru \"localhost\"." + +#. Type: string +#. Description +#: ../templates:2001 +msgid "What is your system's mail name?" +msgstr "Jaké je poštovní jméno systému?" + +#. Type: string +#. Description +#: ../templates:2001 +msgid "" +"Please enter the 'mail name' of your system. This is the hostname portion of " +"the address to be shown on outgoing news and mail messages, and is used by " +"many packages." +msgstr "" +"Zadejte poštovní jméno svého systému. To je název počítače a zároveň část " +"adresy za zavináčem, která se bude zobrazovat na odchozích zprávách." --- knews-1.0b.1.orig/debian/po/da.po +++ knews-1.0b.1/debian/po/da.po @@ -0,0 +1,63 @@ +# +# Translators, if you are not familiar with the PO format, gettext +# documentation is worth reading, especially sections dedicated to +# this format, e.g. by running: +# info -n '(gettext)PO Files' +# info -n '(gettext)Header Entry' +# +# Some information specific to po-debconf are available at +# /usr/share/doc/po-debconf/README-trans +# or http://www.debian.org/intl/l10n/po-debconf/README-trans +# +# Developers do not need to manually edit POT or PO files. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: PACKAGE VERSION\n" +"Report-Msgid-Bugs-To: knews@packages.debian.org\n" +"POT-Creation-Date: 2007-11-12 10:53+0000\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" +"Language-Team: LANGUAGE \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#. Type: string +#. Description +#: ../templates:1001 +msgid "What news server should be used for reading and posting news?" +msgstr "Hvilken nyheds-server skal bruges til nyhedsgrupper?" + +#. Type: string +#. Description +#: ../templates:1001 +msgid "" +"knews is configured to read news via an NNTP connection, and needs to know " +"the fully-qualified host name of the server (such as news.example.com). If " +"you have a local news spool, you should consider installing some NNTP server " +"like inn2; in that case, enter \"localhost\" as your news server." +msgstr "" +"knews er konfigureret til at læse nyhedsgrupper via en NNTP-forbindelse, og " +"skal bruge den komplette adresse på serveren (såsom news.example.com). Hvis " +"du har en lokal news-spool, bør du overveje at installere en NNTP-server " +"såsom inn2; i så fald skal du skrive \"localhost\" som din nyheds-server." + +#. Type: string +#. Description +#: ../templates:2001 +msgid "What is your system's mail name?" +msgstr "Hvad er dit systems post-navn?" + +#. Type: string +#. Description +#: ../templates:2001 +msgid "" +"Please enter the 'mail name' of your system. This is the hostname portion of " +"the address to be shown on outgoing news and mail messages, and is used by " +"many packages." +msgstr "" +"Venligst, skriv 'post-navnet' på dit system. Det er værtsnavn-delen af " +"adressen som vises på udgående nyhedsgruppe og e-mail beskeder. Denne " +"indstilling bliver brug af mange pakker." --- knews-1.0b.1.orig/debian/po/de.po +++ knews-1.0b.1/debian/po/de.po @@ -0,0 +1,64 @@ +# +# Translators, if you are not familiar with the PO format, gettext +# documentation is worth reading, especially sections dedicated to +# this format, e.g. by running: +# info -n '(gettext)PO Files' +# info -n '(gettext)Header Entry' +# +# Some information specific to po-debconf are available at +# /usr/share/doc/po-debconf/README-trans +# or http://www.debian.org/intl/l10n/po-debconf/README-trans +# +# Developers do not need to manually edit POT or PO files. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: PACKAGE VERSION\n" +"Report-Msgid-Bugs-To: knews@packages.debian.org\n" +"POT-Creation-Date: 2007-11-12 10:53+0000\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" +"Language-Team: LANGUAGE \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#. Type: string +#. Description +#: ../templates:1001 +msgid "What news server should be used for reading and posting news?" +msgstr "Welcher Server soll benutzt werden?" + +#. Type: string +#. Description +#: ../templates:1001 +msgid "" +"knews is configured to read news via an NNTP connection, and needs to know " +"the fully-qualified host name of the server (such as news.example.com). If " +"you have a local news spool, you should consider installing some NNTP server " +"like inn2; in that case, enter \"localhost\" as your news server." +msgstr "" +"knews wird konfiguriert, News über eine NNTP-Verbindung zu lesen und muss " +"den vollständigen Rechnernamen des Servers wissen (zum Beispiel news." +"beispiel.de). Wenn Sie einen lokalen News-Spool haben, sollten Sie " +"wahrscheinlich irgendeinen NNTP-Server wie inn2 installieren. In diesem Fall " +"geben Sie \"localhost\" als Ihren News-Server an." + +#. Type: string +#. Description +#: ../templates:2001 +msgid "What is your system's mail name?" +msgstr "Was ist der Mailname Ihres Systems?" + +#. Type: string +#. Description +#: ../templates:2001 +msgid "" +"Please enter the 'mail name' of your system. This is the hostname portion of " +"the address to be shown on outgoing news and mail messages, and is used by " +"many packages." +msgstr "" +"Bitte geben Sie den 'Mailnamen' Ihres Systems an. Dieser ist der erste Teil " +"des Rechnernamens, die bei abgeschickten News- und Mailmeldungen verwendet " +"werden und wird von mehreren Paketen verwendet." --- knews-1.0b.1.orig/debian/po/es.po +++ knews-1.0b.1/debian/po/es.po @@ -0,0 +1,75 @@ +# knews translation to spanish +# Copyright (C) 2005 Software in the Public Interest +# This file is distributed under the same license as the knews package. +# +# Changes: +# - Initial translation +# Carlos Galisteo de Cabo , 2005 +# +# Traductores, si no conoce el formato PO, merece la pena leer la +# documentación de gettext, especialmente las secciones dedicadas a este +# formato, por ejemplo ejecutando: +# info -n '(gettext)PO Files' +# info -n '(gettext)Header Entry' +# +# Equipo de traducción al español, por favor lean antes de traducir +# los siguientes documentos: +# +# - El proyecto de traducción de Debian al español +# http://www.debian.org/intl/spanish/coordinacion +# especialmente las notas de traducción en +# http://www.debian.org/intl/spanish/notas +# +# - La guía de traducción de po's de debconf: +# /usr/share/doc/po-debconf/README-trans +# o http://www.debian.org/intl/l10n/po-debconf/README-trans +msgid "" +msgstr "" +"Project-Id-Version: knews_1.0b.1-20\n" +"Report-Msgid-Bugs-To: knews@packages.debian.org\n" +"POT-Creation-Date: 2007-11-12 10:53+0000\n" +"PO-Revision-Date: 2005-08-10 18:12+0002\n" +"Last-Translator: Carlos Galisteo de Cabo \n" +"Language-Team: Debian l10n spanish \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#. Type: string +#. Description +#: ../templates:1001 +msgid "What news server should be used for reading and posting news?" +msgstr "¿Qué servidor de noticias debe usarse para leer y publicar noticias?" + +#. Type: string +#. Description +#: ../templates:1001 +msgid "" +"knews is configured to read news via an NNTP connection, and needs to know " +"the fully-qualified host name of the server (such as news.example.com). If " +"you have a local news spool, you should consider installing some NNTP server " +"like inn2; in that case, enter \"localhost\" as your news server." +msgstr "" +"Knews está configurado para leer noticias a través de una conexión NNTP, y " +"necesita saber el nombre de dominio completo del servidor (algo como " +"noticias.ejemplo.com). Si tiene una cola de noticias local debería " +"considerar la instalación de algún servidor NNTP como inn2; en ese caso, " +"introduzca «localhost» como su servidor de noticias." + +#. Type: string +#. Description +#: ../templates:2001 +msgid "What is your system's mail name?" +msgstr "¿Cuál es el nombre de correo de su sistema?" + +#. Type: string +#. Description +#: ../templates:2001 +msgid "" +"Please enter the 'mail name' of your system. This is the hostname portion of " +"the address to be shown on outgoing news and mail messages, and is used by " +"many packages." +msgstr "" +"Por favor, introduzca el nombre de correo de su sistema. Éste será parte de " +"la dirección que se mostrará en las noticias y mensajes de correo salientes " +"y lo usan muchos paquetes." --- knews-1.0b.1.orig/debian/po/fr.po +++ knews-1.0b.1/debian/po/fr.po @@ -0,0 +1,63 @@ +# +# Translators, if you are not familiar with the PO format, gettext +# documentation is worth reading, especially sections dedicated to +# this format, e.g. by running: +# info -n '(gettext)PO Files' +# info -n '(gettext)Header Entry' +# +# Some information specific to po-debconf are available at +# /usr/share/doc/po-debconf/README-trans +# or http://www.debian.org/intl/l10n/po-debconf/README-trans +# +# Developers do not need to manually edit POT or PO files. +# +msgid "" +msgstr "" +"Project-Id-Version: knews\n" +"Report-Msgid-Bugs-To: knews@packages.debian.org\n" +"POT-Creation-Date: 2007-11-12 10:53+0000\n" +"PO-Revision-Date: 2004-02-25 17:13+0100\n" +"Last-Translator: Eric Madesclair \n" +"Language-Team: French \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#. Type: string +#. Description +#: ../templates:1001 +msgid "What news server should be used for reading and posting news?" +msgstr "Nom du serveur de nouvelles utilisé :" + +#. Type: string +#. Description +#: ../templates:1001 +msgid "" +"knews is configured to read news via an NNTP connection, and needs to know " +"the fully-qualified host name of the server (such as news.example.com). If " +"you have a local news spool, you should consider installing some NNTP server " +"like inn2; in that case, enter \"localhost\" as your news server." +msgstr "" +"Knews est configuré pour lire les nouvelles via une connexion NNTP, et doit " +"connaître le nom complètement qualifié du serveur de nouvelles (par exemple " +"news.exemple.com). Si vous avez un répertoire local pour les nouvelles, vous " +"devriez installer un serveur NNTP tel que inn2 ; dans ce cas, indiquez " +"« localhost » comme serveur de nouvelles." + +#. Type: string +#. Description +#: ../templates:2001 +msgid "What is your system's mail name?" +msgstr "Nom de votre système de courrier :" + +#. Type: string +#. Description +#: ../templates:2001 +msgid "" +"Please enter the 'mail name' of your system. This is the hostname portion of " +"the address to be shown on outgoing news and mail messages, and is used by " +"many packages." +msgstr "" +"Veuillez indiquer le nom de courrier de votre système. C'est la partie de " +"l'adresse correspondant au nom d'hôte qui est affichée sur les nouvelles et " +"les courriels envoyés, et elle est utilisée par de nombreux paquets." --- knews-1.0b.1.orig/debian/po/it.po +++ knews-1.0b.1/debian/po/it.po @@ -0,0 +1,58 @@ +# Italian translation of knews debdonf messages. +# Copyright (C) 2014 knews package's copyright holder +# This file is distributed under the same license as the knews package. +# Beatrice Torracca , 2015. +msgid "" +msgstr "" +"Project-Id-Version: knews\n" +"Report-Msgid-Bugs-To: knews@packages.debian.org\n" +"POT-Creation-Date: 2007-11-12 10:53+0000\n" +"PO-Revision-Date: 2015-02-14 13:42+0200\n" +"Last-Translator: Beatrice Torracca \n" +"Language-Team: Italian \n" +"Language: it\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" +"X-Generator: Virtaal 0.7.1\n" + +#. Type: string +#. Description +#: ../templates:1001 +msgid "What news server should be used for reading and posting news?" +msgstr "" +"Quale server di newsgroup deve essere usato per leggere e inviare i messaggi?" + +#. Type: string +#. Description +#: ../templates:1001 +msgid "" +"knews is configured to read news via an NNTP connection, and needs to know " +"the fully-qualified host name of the server (such as news.example.com). If " +"you have a local news spool, you should consider installing some NNTP server " +"like inn2; in that case, enter \"localhost\" as your news server." +msgstr "" +"knews è configurato per leggere i newsgroup attraverso una connessione NNTP " +"e ha bisogno di sapere il nome host pienamente qualificato del server (come " +"news.example.com). Se si ha uno spool di messaggi locale, si dovrebbe " +"considerare l'installazione di un qualche server NNTP come inn2; in quel " +"caso inserire «localhost» come server di newsgroup." + +#. Type: string +#. Description +#: ../templates:2001 +msgid "What is your system's mail name?" +msgstr "Qual è il nome di posta del sistema?" + +#. Type: string +#. Description +#: ../templates:2001 +msgid "" +"Please enter the 'mail name' of your system. This is the hostname portion of " +"the address to be shown on outgoing news and mail messages, and is used by " +"many packages." +msgstr "" +"Inserire il «nome di posta» del sistema. Questa è la porzione del nome host " +"dell'indirizzo che deve essere mostrato nei messaggi in uscita per i " +"newsgroup e per la posta ed è usato da molti pacchetti." --- knews-1.0b.1.orig/debian/po/ja.po +++ knews-1.0b.1/debian/po/ja.po @@ -0,0 +1,64 @@ +# +# Translators, if you are not familiar with the PO format, gettext +# documentation is worth reading, especially sections dedicated to +# this format, e.g. by running: +# info -n '(gettext)PO Files' +# info -n '(gettext)Header Entry' +# +# Some information specific to po-debconf are available at +# /usr/share/doc/po-debconf/README-trans +# or http://www.debian.org/intl/l10n/po-debconf/README-trans +# +# Developers do not need to manually edit POT or PO files. +# +# +msgid "" +msgstr "" +"Project-Id-Version: knews 1.0b.1-16\n" +"Report-Msgid-Bugs-To: knews@packages.debian.org\n" +"POT-Creation-Date: 2007-11-12 10:53+0000\n" +"PO-Revision-Date: 2004-06-13 02:39+0900\n" +"Last-Translator: Hideki Yamane \n" +"Language-Team: Japanese \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#. Type: string +#. Description +#: ../templates:1001 +msgid "What news server should be used for reading and posting news?" +msgstr "どの news サーバを news を読み書きするのに利用しますか?" + +#. Type: string +#. Description +#: ../templates:1001 +msgid "" +"knews is configured to read news via an NNTP connection, and needs to know " +"the fully-qualified host name of the server (such as news.example.com). If " +"you have a local news spool, you should consider installing some NNTP server " +"like inn2; in that case, enter \"localhost\" as your news server." +msgstr "" +"knews は NNTP 接続経由で news を読むように設定されているので、(news.example." +"com のように) サーバの完全修飾ドメイン名 (FQDN) を知る必要があります。ローカ" +"ルに news のスプールを持っている場合は、inn2 のような NNTP サーバをインストー" +"ルしていると考えられます。この場合、news サーバとして \"localhost\" と入力し" +"てください。" + +#. Type: string +#. Description +#: ../templates:2001 +msgid "What is your system's mail name?" +msgstr "システムのメール名は何ですか?" + +#. Type: string +#. Description +#: ../templates:2001 +msgid "" +"Please enter the 'mail name' of your system. This is the hostname portion of " +"the address to be shown on outgoing news and mail messages, and is used by " +"many packages." +msgstr "" +"システムの 'メール名' を入力してください。これは、外部へ送信される news や" +"メールに表示されるアドレスのホスト名部分で、多くのパッケージによって使われて" +"います。" --- knews-1.0b.1.orig/debian/po/nl.po +++ knews-1.0b.1/debian/po/nl.po @@ -0,0 +1,66 @@ +# translation of knews_1.0b.1-14_nl.po to Dutch +# +# Translators, if you are not familiar with the PO format, gettext +# documentation is worth reading, especially sections dedicated to +# this format, e.g. by running: +# info -n '(gettext)PO Files' +# info -n '(gettext)Header Entry' +# Some information specific to po-debconf are available at +# /usr/share/doc/po-debconf/README-trans +# or http://www.debian.org/intl/l10n/po-debconf/README-trans# +# Developers do not need to manually edit POT or PO files. +# Frans Pop , 2004. +# +msgid "" +msgstr "" +"Project-Id-Version: knews_1.0b.1-14_nl\n" +"Report-Msgid-Bugs-To: knews@packages.debian.org\n" +"POT-Creation-Date: 2007-11-12 10:53+0000\n" +"PO-Revision-Date: 2004-03-21 19:12+0100\n" +"Last-Translator: Frans Pop \n" +"Language-Team: Dutch \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Generator: KBabel 1.3\n" + +#. Type: string +#. Description +#: ../templates:1001 +msgid "What news server should be used for reading and posting news?" +msgstr "" +"Welke nieuwsserver wilt u gebruiken voor het lezen en verzenden van " +"nieuwsberichten?" + +#. Type: string +#. Description +#: ../templates:1001 +msgid "" +"knews is configured to read news via an NNTP connection, and needs to know " +"the fully-qualified host name of the server (such as news.example.com). If " +"you have a local news spool, you should consider installing some NNTP server " +"like inn2; in that case, enter \"localhost\" as your news server." +msgstr "" +"knews is geconfigureerd om nieuwsberichten te lezen via een NNTP-verbinding " +"en moet de volledige computernaam van de server kennen (bijvoorbeeld news." +"example.com). Als u beschikt over een lokale nieuws-spool, kunt u overwegen " +"om een NNTP-server zoals inn2 te installeren; in dat geval moet u \"localhost" +"\" als uw nieuwsserver ingeven." + +#. Type: string +#. Description +#: ../templates:2001 +msgid "What is your system's mail name?" +msgstr "Wat is de mail-naam van uw systeem?" + +#. Type: string +#. Description +#: ../templates:2001 +msgid "" +"Please enter the 'mail name' of your system. This is the hostname portion of " +"the address to be shown on outgoing news and mail messages, and is used by " +"many packages." +msgstr "" +"Geef de 'mail-naam' van uw systeem. Dit is het eerste deel (de computernaam) " +"van het adres dat in uitgaande nieuws- en email-berichten getoond moet " +"worden, en wordt gebruikt door een groot aantal pakketten." --- knews-1.0b.1.orig/debian/po/pt.po +++ knews-1.0b.1/debian/po/pt.po @@ -0,0 +1,55 @@ +# Portuguese translation of knews's debconf messages. +# Copyright (C) 2007 +# This file is distributed under the same license as the knews package. +# Ricardo Silva , 2007. +# +msgid "" +msgstr "" +"Project-Id-Version: knews 1.0b.1-21\n" +"Report-Msgid-Bugs-To: knews@packages.debian.org\n" +"POT-Creation-Date: 2007-11-12 10:53+0000\n" +"PO-Revision-Date: 2007-03-09 09:53+0000\n" +"Last-Translator: Ricardo Silva \n" +"Language-Team: Portuguese \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#. Type: string +#. Description +#: ../templates:1001 +msgid "What news server should be used for reading and posting news?" +msgstr "Que servidor de notícias deve ser usado para ler e colocar notícias?" + +#. Type: string +#. Description +#: ../templates:1001 +msgid "" +"knews is configured to read news via an NNTP connection, and needs to know " +"the fully-qualified host name of the server (such as news.example.com). If " +"you have a local news spool, you should consider installing some NNTP server " +"like inn2; in that case, enter \"localhost\" as your news server." +msgstr "" +"O knews está preparado para ler notícias através de uma ligação NNTP, e " +"precisa de saber o nome de domínio completamente qualificado do servidor " +"(por exemplo noticias.exemplo.com). Se tem uma spool local de notícias, " +"devia considerar instalar um servidor de NNTP como o inn2; nesse caso use " +"\"localhost\" como o seu servidor de notícias." + +#. Type: string +#. Description +#: ../templates:2001 +msgid "What is your system's mail name?" +msgstr "Qual é o nome do mail do seu sistema?" + +#. Type: string +#. Description +#: ../templates:2001 +msgid "" +"Please enter the 'mail name' of your system. This is the hostname portion of " +"the address to be shown on outgoing news and mail messages, and is used by " +"many packages." +msgstr "" +"Por favor introduza o 'nome do mail' do seu sistema. Trata-se da parte de " +"host nos endereços email a aparecer em mensagens para fora de notícias ou " +"email, e é usado por muitos pacotes." --- knews-1.0b.1.orig/debian/po/pt_BR.po +++ knews-1.0b.1/debian/po/pt_BR.po @@ -0,0 +1,65 @@ +# +# Translators, if you are not familiar with the PO format, gettext +# documentation is worth reading, especially sections dedicated to +# this format, e.g. by running: +# info -n '(gettext)PO Files' +# info -n '(gettext)Header Entry' +# +# Some information specific to po-debconf are available at +# /usr/share/doc/po-debconf/README-trans +# or http://www.debian.org/intl/l10n/po-debconf/README-trans +# +# Developers do not need to manually edit POT or PO files. +# +msgid "" +msgstr "" +"Project-Id-Version: knews\n" +"Report-Msgid-Bugs-To: knews@packages.debian.org\n" +"POT-Creation-Date: 2007-11-12 10:53+0000\n" +"PO-Revision-Date: 2004-08-07 13:23-0300\n" +"Last-Translator: André Luís Lopes \n" +"Language-Team: Debian-BR Project \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#. Type: string +#. Description +#: ../templates:1001 +msgid "What news server should be used for reading and posting news?" +msgstr "" +"Qual servidor de notícias deve ser usado para leitura e postagem de " +"notícias ?" + +#. Type: string +#. Description +#: ../templates:1001 +msgid "" +"knews is configured to read news via an NNTP connection, and needs to know " +"the fully-qualified host name of the server (such as news.example.com). If " +"you have a local news spool, you should consider installing some NNTP server " +"like inn2; in that case, enter \"localhost\" as your news server." +msgstr "" +" O knews está configurado para ler notícias através de uma conexão NNTP, e " +"precisa conhecer o nome de host totalmente qualificado (como news.exemplo." +"com). Caso você possua um spool de notícias local, você deverá considerar " +"instalar alguns servidores NNTP como o inn2. Nesse caso, informe \"localhost" +"\" como seu servidor de notícias." + +#. Type: string +#. Description +#: ../templates:2001 +msgid "What is your system's mail name?" +msgstr "Qual o nome de mensagens de seu sistema ?" + +#. Type: string +#. Description +#: ../templates:2001 +msgid "" +"Please enter the 'mail name' of your system. This is the hostname portion of " +"the address to be shown on outgoing news and mail messages, and is used by " +"many packages." +msgstr "" +"Por favor, informe o 'nome de mensagens' de seu sistema. O 'nome de " +"mensagens' é a porção nome de máquina do endereço a ser exibido em notícias " +"e mensagens enviadas e é usado por muitos pacotes." --- knews-1.0b.1.orig/debian/po/ru.po +++ knews-1.0b.1/debian/po/ru.po @@ -0,0 +1,58 @@ +# translation of ru.po to Russian +# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER +# This file is distributed under the same license as the PACKAGE package. +# +# Yuri Kozlov , 2009. +msgid "" +msgstr "" +"Project-Id-Version: knews 1.0b.1-23\n" +"Report-Msgid-Bugs-To: knews@packages.debian.org\n" +"POT-Creation-Date: 2007-11-12 10:53+0000\n" +"PO-Revision-Date: 2009-01-29 21:04+0300\n" +"Last-Translator: Yuri Kozlov \n" +"Language-Team: Russian \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Generator: KBabel 1.11.4\n" +"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%" +"10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n" + +#. Type: string +#. Description +#: ../templates:1001 +msgid "What news server should be used for reading and posting news?" +msgstr "Сервер для получения и отправки новостей:" + +#. Type: string +#. Description +#: ../templates:1001 +msgid "" +"knews is configured to read news via an NNTP connection, and needs to know " +"the fully-qualified host name of the server (such as news.example.com). If " +"you have a local news spool, you should consider installing some NNTP server " +"like inn2; in that case, enter \"localhost\" as your news server." +msgstr "" +"knews работает с новостями по протоколу NNTP, для чего требуется знать " +"полностью определённое доменное имя сервера (например, news.example.com). " +"Если у вас почта хранится локально на диске, попробуйте установить один из " +"NNTP-серверов, например, inn2; в этом случае введите \"localhost\" в " +"качестве сервера новостей." + +#. Type: string +#. Description +#: ../templates:2001 +msgid "What is your system's mail name?" +msgstr "Почтовое имя вашей системы:" + +#. Type: string +#. Description +#: ../templates:2001 +msgid "" +"Please enter the 'mail name' of your system. This is the hostname portion of " +"the address to be shown on outgoing news and mail messages, and is used by " +"many packages." +msgstr "" +"Введите 'почтовое имя' вашей системы. Имеется в виду часть имени хоста в " +"адресе, показываемая в исходящих почтовых сообщениях и новостях; " +"используется во многих пакетах." --- knews-1.0b.1.orig/debian/po/sv.po +++ knews-1.0b.1/debian/po/sv.po @@ -0,0 +1,60 @@ +# Translators, if you are not familiar with the PO format, gettext +# documentation is worth reading, especially sections dedicated to +# this format, e.g. by running: +# info -n '(gettext)PO Files' +# info -n '(gettext)Header Entry' +# Some information specific to po-debconf are available at +# /usr/share/doc/po-debconf/README-trans +# or http://www.debian.org/intl/l10n/po-debconf/README-trans +# Developers do not need to manually edit POT or PO files. +# , fuzzy +# +# +msgid "" +msgstr "" +"Project-Id-Version: knews 1.0b.1-20\n" +"Report-Msgid-Bugs-To: knews@packages.debian.org\n" +"POT-Creation-Date: 2007-11-12 10:53+0000\n" +"PO-Revision-Date: 2005-10-12 21:44+0200\n" +"Last-Translator: Daniel Nylander \n" +"Language-Team: Swedish \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#. Type: string +#. Description +#: ../templates:1001 +msgid "What news server should be used for reading and posting news?" +msgstr "Vilken news-server ska användas för att läsa och posta nyheter?" + +#. Type: string +#. Description +#: ../templates:1001 +msgid "" +"knews is configured to read news via an NNTP connection, and needs to know " +"the fully-qualified host name of the server (such as news.example.com). If " +"you have a local news spool, you should consider installing some NNTP server " +"like inn2; in that case, enter \"localhost\" as your news server." +msgstr "" +"knews är konfigurerad att läsa news via en NNTP-anslutning och behöver veta " +"det fullt kvalificerade värdnamnet för servern (såsom news.exampel.se). Om " +"du har en lokal news-spool kan du installera en NNTP-server såsom inn2, i " +"det fallet, ange \"localhost\" som din news-server." + +#. Type: string +#. Description +#: ../templates:2001 +msgid "What is your system's mail name?" +msgstr "Vad är ditt systems e-postnamn?" + +#. Type: string +#. Description +#: ../templates:2001 +msgid "" +"Please enter the 'mail name' of your system. This is the hostname portion of " +"the address to be shown on outgoing news and mail messages, and is used by " +"many packages." +msgstr "" +"Ange 'mail name' för ditt system. Detta är värdnamnet i addressen som visas " +"på utgående nyheter och e-postmeddelanden och användas av många paket." --- knews-1.0b.1.orig/debian/po/templates.pot +++ knews-1.0b.1/debian/po/templates.pot @@ -0,0 +1,48 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER +# This file is distributed under the same license as the PACKAGE package. +# FIRST AUTHOR , YEAR. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: PACKAGE VERSION\n" +"Report-Msgid-Bugs-To: knews@packages.debian.org\n" +"POT-Creation-Date: 2007-11-12 10:53+0000\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" +"Language-Team: LANGUAGE \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=CHARSET\n" +"Content-Transfer-Encoding: 8bit\n" + +#. Type: string +#. Description +#: ../templates:1001 +msgid "What news server should be used for reading and posting news?" +msgstr "" + +#. Type: string +#. Description +#: ../templates:1001 +msgid "" +"knews is configured to read news via an NNTP connection, and needs to know " +"the fully-qualified host name of the server (such as news.example.com). If " +"you have a local news spool, you should consider installing some NNTP server " +"like inn2; in that case, enter \"localhost\" as your news server." +msgstr "" + +#. Type: string +#. Description +#: ../templates:2001 +msgid "What is your system's mail name?" +msgstr "" + +#. Type: string +#. Description +#: ../templates:2001 +msgid "" +"Please enter the 'mail name' of your system. This is the hostname portion of " +"the address to be shown on outgoing news and mail messages, and is used by " +"many packages." +msgstr "" --- knews-1.0b.1.orig/debian/po/vi.po +++ knews-1.0b.1/debian/po/vi.po @@ -0,0 +1,55 @@ +# Vietnamese translation for knews. +# Copyright © 2005 Free Software Foundation, Inc. +# Clytie Siddall , 2005. +# +msgid "" +msgstr "" +"Project-Id-Version: knews 1.0b.1-20\n" +"Report-Msgid-Bugs-To: knews@packages.debian.org\n" +"POT-Creation-Date: 2007-11-12 10:53+0000\n" +"PO-Revision-Date: 2005-06-15 22:41+0930\n" +"Last-Translator: Clytie Siddall \n" +"Language-Team: Vietnamese \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=1; plural=0\n" + +#. Type: string +#. Description +#: ../templates:1001 +msgid "What news server should be used for reading and posting news?" +msgstr "Để đọc và đóng góp tin tức, bạn sẽ sử dụng máy phục vụ tin tức nào?" + +#. Type: string +#. Description +#: ../templates:1001 +msgid "" +"knews is configured to read news via an NNTP connection, and needs to know " +"the fully-qualified host name of the server (such as news.example.com). If " +"you have a local news spool, you should consider installing some NNTP server " +"like inn2; in that case, enter \"localhost\" as your news server." +msgstr "" +"Trình knews được cấu hình để đọc tin tức bằng kết nối NNTP, thì cần biết tên " +"miền khả năng đầy đủ (FQDN) của máy phục vụ ấy (v.d. news.thí_dụ.com). Nếu " +"bạn có một ống chỉ tin tức địa phương, đệ nghị bạn cài đặt một trình phục vụ " +"NNTP như «inn2»: trong trường hợp ấy, hãy nhập «localhost» (máy địa phương) " +"là máy phục vụ tin tức của bạn." + +#. Type: string +#. Description +#: ../templates:2001 +msgid "What is your system's mail name?" +msgstr "Hệ thống bạn có tên thư tín nào?" + +#. Type: string +#. Description +#: ../templates:2001 +msgid "" +"Please enter the 'mail name' of your system. This is the hostname portion of " +"the address to be shown on outgoing news and mail messages, and is used by " +"many packages." +msgstr "" +"Hãy nhập tên thư tín (mail name) của hệ thống bạn. Giá trị này là phần tên " +"máy của địa chỉ sẽ được hiển thị trong cả thông điệp tin tức lẫn thư điện tử " +"đều gởi đi. Hơn nữa, nhiều gói tin dùng nó." --- knews-1.0b.1.orig/debian/postinst +++ knews-1.0b.1/debian/postinst @@ -0,0 +1,28 @@ +#! /bin/sh + +set -e + +. /usr/share/debconf/confmodule + +if [ "$1" = configure ]; then + if [ ! -s /etc/news/server ]; then + if [ ! -d /etc/news ]; then + mkdir -m 755 /etc/news + chown news:news /etc/news + fi + + db_get shared/news/server + echo "$RET" > /etc/news/server + chmod 644 /etc/news/server + fi + + if [ ! -s /etc/mailname ]; then + db_get knews/mail-name + echo "$RET" > /etc/mailname + chmod 644 /etc/mailname + fi +fi + +#DEBHELPER# + +exit 0 --- knews-1.0b.1.orig/debian/rules +++ knews-1.0b.1/debian/rules @@ -0,0 +1,29 @@ +#! /usr/bin/make -f +%: + dh $@ + +dtmp=$(CURDIR)/debian/knews + +export DEB_BUILD_MAINT_OPTIONS := hardening=+all +export DEB_CFLAGS_MAINT_PREPEND := -Wall +include /usr/share/dpkg/buildflags.mk + +override_dh_auto_configure: + xmkmf -a + +override_dh_auto_build: + $(MAKE) CDEBUGFLAGS="$(CFLAGS)" \ + PROJECT_DEFINES="$(CPPFLAGS)" \ + EXTRA_LDOPTIONS="$(LDFLAGS)" + +override_dh_auto_clean: + [ ! -f Makefile ] || $(MAKE) clean squeaky + +override_dh_auto_install: + $(MAKE) DESTDIR=$(dtmp) BINDIR=/usr/bin install + $(MAKE) DESTDIR=$(dtmp) MANPATH=/usr/share/man MANSUFFIX=1 install.man + +override_dh_installdocs: + dh_installdocs + install -m644 util/knewsd/README \ + $(dtmp)/usr/share/doc/knews/README.knewsd --- knews-1.0b.1.orig/debian/templates +++ knews-1.0b.1/debian/templates @@ -0,0 +1,14 @@ +Template: shared/news/server +Type: string +_Description: What news server should be used for reading and posting news? + knews is configured to read news via an NNTP connection, and needs to know + the fully-qualified host name of the server (such as news.example.com). If + you have a local news spool, you should consider installing some NNTP + server like inn2; in that case, enter "localhost" as your news server. + +Template: knews/mail-name +Type: string +_Description: What is your system's mail name? + Please enter the 'mail name' of your system. This is the hostname portion + of the address to be shown on outgoing news and mail messages, and is used + by many packages. --- knews-1.0b.1.orig/src/actions.c +++ knews-1.0b.1/src/actions.c @@ -526,7 +526,7 @@ String *params, Cardinal *no_params) { - Arg args[3]; + Arg args[4]; int n = *no_params; int vertical; --- knews-1.0b.1.orig/src/knews.man +++ knews-1.0b.1/src/knews.man @@ -378,7 +378,7 @@ and output connected to knews. If you use this resource setting: .nf -Knews.#spool: knewsd -spool /var/spool/news \\ +Knews.#spool: knewsd -spool /var/spool/news \e -active /usr/local/news/active .fi @@ -750,7 +750,7 @@ inserted into the newsrc file. The default value is .nf - news.answers:\\nnews.newusers.questions:\\n + news.answers:\ennews.newusers.questions:\en .fi .RE @@ -1011,10 +1011,10 @@ a followup. The default is .nf -In article %m,\\n %f writes: +In article %m,\en %f writes: .fi -where \\n is a newline. The following %'s are expanded: +where \en is a newline. The following %'s are expanded: .nf %% % @@ -1047,7 +1047,7 @@ to show in the article window, and in what order. The default is .nf -Subject:Newsgroups:Followup-To:Reply-To:\\ +Subject:Newsgroups:Followup-To:Reply-To:\e Content-Description:Date:Organization:From: .fi @@ -1071,11 +1071,11 @@ and font. The default is .nf -^[ \\t]*[:>|] +^[ \et]*[:>|] .fi which matches lines beginning with an arbitrary amount of white -space (the \\t denotes a tab, note that \\t won't actually work) +space (the \et denotes a tab, note that \et won't actually work) followed by a >, : or | character. You will probably want to have this expression anchored... --- knews-1.0b.1.orig/src/main.c +++ knews-1.0b.1/src/main.c @@ -514,8 +514,7 @@ int n = strlen(argv[1]); if (strncmp(argv[1], "-version", n) == 0) - fputs("knews: version " KNEWS_VERSION " compiled " - "on " __DATE__ " " __TIME__ ".\n", stderr); + fputs("knews: version " KNEWS_VERSION ".\n", stderr); else fputs("knews: Bad command line arguments, " "see the man-page for usage.\n", stderr); @@ -581,8 +580,31 @@ else global.nntp_server = XtNewString(env_var); else { - global.nntp_server = DEFAULT_DEFAULT_NNTPSERVER; - if (global.nntp_server) +#if defined(DEFAULT_NNTPSERVER_FILE) + char *fn = DEFAULT_NNTPSERVER_FILE; + char buffer[256]; + FILE *fp; + + fp = fopen(fn, "r"); + if (!fp) { + perror(fn); + return; + } + + if (fgets(buffer, sizeof buffer - 1, fp)) { + char *c = strchr(buffer, '\n'); + + if (c) + *c = '\0'; + if (strchr(buffer, '.')) + global.nntp_server = XtNewString(buffer); + } + + fclose(fp); +#else + global.nntp_server = DEFAULT_DEFAULT_NNTPSERVER; +#endif + if (global.nntp_server) global.nntp_server = XtNewString(global.nntp_server); } } --- knews-1.0b.1.orig/src/p_popup.c +++ knews-1.0b.1/src/p_popup.c @@ -940,7 +940,7 @@ else if (p2) sprintf(editcmd, global.edit_command, context->line); else - sprintf(editcmd, global.edit_command); + strcpy(editcmd, global.edit_command); execl(BIN_SH, "sh", "-c", editcmd, (char *)NULL); perror("knews: execl " BIN_SH); --- knews-1.0b.1.orig/src/p_post.c +++ knews-1.0b.1/src/p_post.c @@ -24,10 +24,13 @@ static int do_post(int fd, char **msg) { + FILE *fp; char buffer[16834]; + char *bufptr; char *reply; - long n; int status; + int bol = True; + int ch; set_message("Sending posting request...", False); reply = server_comm(main_server, "POST\r\n", True); @@ -46,22 +49,45 @@ } set_message("Sending article...", False); - while ((n = read(fd, buffer, sizeof buffer - 1)) > 0) { - buffer[n] = '\0'; - if (server_write(main_server, buffer) < 0) { - *msg = - "Connection to server broken while sending\n" - "article. The article may or may not have\n" - "been accepted by the server."; - return -1; - } + + fp = fdopen(fd, "r"); + + bufptr = buffer; + while ((ch = getc(fp)), !feof(fp)) { + if (ch == '\n') + *bufptr++ = '\r'; + else if (bol && ch == '.') + *bufptr++ = '.'; + *bufptr++ = ch; + bol = ch == '\n'; + + if( (bufptr - buffer) > sizeof buffer - 2 ) { + *bufptr = '\0'; + if (server_write(main_server, buffer) < 0) { + *msg = + "Connection to server broken while sending\n" + "article. The article may or may not have\n" + "been accepted by the server."; + return -1; + } + bufptr = buffer; + } } - if (n < 0) { - server_close(main_server); - *msg = "Error with temp file. Post status unknown..."; - return -1; + if( buffer != bufptr ) + { + *bufptr = '\r'; + *bufptr = '\n'; + *bufptr = '\0'; + if (server_write(main_server, buffer) < 0) { + *msg = + "Connection to server broken while sending\n" + "article. The article may or may not have\n" + "been accepted by the server."; + return -1; + } } + server_write(main_server, ".\r\n"); set_message("Article posted, waiting for reply...", False); reply = server_read(main_server); @@ -218,10 +244,8 @@ * rfc1522 encoding of headers would go here (but it sucks). */ while (*c != '\0') { - if (*c != '\n') - putc(*c, fp); - else { - fputs("\r\n", fp); + putc(*c, fp); + if (*c == '\n') { if (!IS_SPACE(*(c+1))) return c + 1; } @@ -240,9 +264,9 @@ const char *cte = NULL; char buf[80], *boundary = NULL; - fputs("Mime-Version: 1.0\r\n", fp); + fputs("Mime-Version: 1.0\n", fp); if (context->flags & NEEDS_SENDER) - fprintf(fp, "Sender: %s@%s\r\n", global.user_id, global.domain_name); + fprintf(fp, "Sender: %s@%s\n", global.user_id, global.domain_name); while (*art != '\0' && *art != '\n') { #define IS_HEADER(h) (case_lstrncmp(art, h, sizeof h - 1) == 0) @@ -270,29 +294,29 @@ if (ct) print_header(fp, ct); else - fprintf(fp, "Content-Type: text/plain; charset=%s\r\n", + fprintf(fp, "Content-Type: text/plain; charset=%s\n", context->has_8bit ? context->charset : "us-ascii"); if (cte) print_header(fp, cte); else if (context->has_8bit) - fputs("Content-Transfer-Encoding: 8bit\r\n", fp); - fprintf(fp, "\r\n"); + fputs("Content-Transfer-Encoding: 8bit\n", fp); + fprintf(fp, "\n"); } else if (*art != '\0' || na != 1) { generate_mime_boundary(buf); boundary = buf; fprintf(fp, - "Content-Transfer-Encoding: 8bit\r\n" - "Content-Type: multipart/mixed;\r\n" - " boundary=\"%s\"\r\n" - "\r\n", + "Content-Transfer-Encoding: 8bit\n" + "Content-Type: multipart/mixed;\n" + " boundary=\"%s\"\n" + "\n", boundary); if (*art != '\0') { - fprintf(fp, "--%s\r\n", boundary); + fprintf(fp, "--%s\n", boundary); if (cte) print_header(fp, cte); if (ct) print_header(fp, ct); - fputs("\r\n", fp); + fputs("\n", fp); } } @@ -300,16 +324,12 @@ int bol = True; while (*art != '\0') { - if (*art == '\n') - putc('\r', fp); - else if (bol && *art == '.') - putc('.', fp); putc(*art, fp); bol = *art == '\n'; art++; } if (!bol) - fputs("\r\n", fp); + fputs("\n", fp); } if (a) { @@ -317,16 +337,14 @@ for (i = 0 ; i < na ; i++) { if (boundary) - fprintf(fp, "--%s\r\n", boundary); + fprintf(fp, "--%s\n", boundary); if (!print_attachment(fp, a[i])) return False; } if (boundary) - fprintf(fp, "--%s--\r\n", boundary); + fprintf(fp, "--%s--\n", boundary); } - fputs(".\r\n", fp); - if (fflush(fp) < 0) { perror("fflush"); return False; --- knews-1.0b.1.orig/src/png.c +++ knews-1.0b.1/src/png.c @@ -78,8 +78,8 @@ Pixmap do_png(char *data, long len, long *wp, long *hp) { - png_struct p_str; - png_info p_info; + png_structp p_str_ptr = NULL; + png_infop p_info_ptr = NULL; Pixmap pixmap; FILE *volatile vol_fp = NULL; void *volatile vol_pic = NULL; @@ -98,68 +98,92 @@ return None; } - if (setjmp(p_str.jmpbuf)) + p_str_ptr = png_create_read_struct(PNG_LIBPNG_VER_STRING, + NULL, NULL, NULL); + if (!p_str_ptr) { ArtTextAddLine(main_widgets.text, "[knews: png error.]", ascii_font->body_font, global.alert_pixel); - else { + return None; + } + + if (setjmp(png_jmpbuf(p_str_ptr))) { + png_destroy_read_struct(p_str_ptr, NULL, NULL); + ArtTextAddLine(main_widgets.text, "[knews: png error.]", + ascii_font->body_font, global.alert_pixel); + } else { unsigned char *pic, *row; long w, h; int did; unsigned int per_line = 0; unsigned int i, j, pass; + png_color_16p background; + png_byte color_type; - png_read_init(&p_str); - png_info_init(&p_info); + p_info_ptr = png_create_info_struct(p_str_ptr); + if (!p_info_ptr) { + ArtTextAddLine(main_widgets.text, "[knews: png error.]", + ascii_font->body_font, global.alert_pixel); + png_destroy_read_struct(&p_str_ptr, NULL, NULL); + return None; + } - png_init_io(&p_str, vol_fp); - png_read_info(&p_str, &p_info); + png_init_io(p_str_ptr, vol_fp); + png_read_info(p_str_ptr, p_info_ptr); - vol_w = w = p_info.width; - vol_h = h = p_info.height; + vol_w = w = png_get_image_width(p_str_ptr, p_info_ptr); + vol_h = h = png_get_image_height(p_str_ptr, p_info_ptr); - if (p_info.bit_depth == 16) - png_set_strip_16(&p_str); - else if (p_info.bit_depth < 8) - png_set_packing(&p_str); + if (png_get_bit_depth(p_str_ptr, p_info_ptr) == 16) + png_set_strip_16(p_str_ptr); + else if (png_get_bit_depth(p_str_ptr, p_info_ptr) < 8) + png_set_packing(p_str_ptr); - if (p_info.valid & PNG_INFO_bKGD) - png_set_background(&p_str, &p_info.background, + if (png_get_bKGD(p_str_ptr, p_info_ptr, &background)) + png_set_background(p_str_ptr, background, PNG_BACKGROUND_GAMMA_FILE, True, 1.0); else { static png_color_16 bg = {0, }; - png_set_background(&p_str, &bg, + png_set_background(p_str_ptr, &bg, PNG_BACKGROUND_GAMMA_SCREEN, False, 1.0); } per_line = w; - if (!(p_info.color_type & PNG_COLOR_MASK_COLOR)) { /* grey image */ + color_type = png_get_color_type(p_str_ptr, p_info_ptr); + if (!(color_type & PNG_COLOR_MASK_COLOR)) { /* grey image */ grey = True; - png_set_expand(&p_str); + png_set_expand(p_str_ptr); } else if (!p_cmap) { /* true color visual */ - if (p_info.color_type == PNG_COLOR_TYPE_PALETTE) - png_set_expand(&p_str); + if (color_type == PNG_COLOR_TYPE_PALETTE) + png_set_expand(p_str_ptr); per_line *= 3; - } else if (p_info.color_type & PNG_COLOR_MASK_PALETTE) { + } else if (color_type & PNG_COLOR_MASK_PALETTE) { CMAP_ENTRY *pal; + png_colorp palette; + int num_palette; int i, pn; - pn = p_info.num_palette; + png_get_PLTE(p_str_ptr, p_info_ptr, &palette, &num_palette); pal = (CMAP_ENTRY *)XtMalloc(pn * sizeof *pal); for (i = 0 ; i < pn ; i++) { - pal[i].r = p_info.palette[i].red; - pal[i].g = p_info.palette[i].green; - pal[i].b = p_info.palette[i].blue; + pal[i].r = palette[i].red; + pal[i].g = palette[i].green; + pal[i].b = palette[i].blue; } vol_pal = pal; vol_pn = pn; } else { - png_set_dither(&p_str, p_cmap, cmap_size, +#if PNG_LIBPNG_VER_MAJOR >= 1 && PNG_LIBPNG_VER_MINOR >= 4 + png_set_quantize(p_str_ptr, p_cmap, cmap_size, + cmap_size, NULL, True); +#else + png_set_dither(p_str_ptr, p_cmap, cmap_size, cmap_size, NULL, True); +#endif } - pass = png_set_interlace_handling(&p_str); - png_start_read_image(&p_str); + pass = png_set_interlace_handling(p_str_ptr); + png_start_read_image(p_str_ptr); vol_pic = pic = (unsigned char *)XtMalloc(h * per_line); @@ -167,14 +191,14 @@ for (i = 0 ; i < pass ; i++) { row = pic; for (j = 0 ; j < h ; j++) { - png_read_row(&p_str, NULL, row); + png_read_row(p_str_ptr, NULL, row); if (!did) vol_did = did = True; row += per_line; } } - png_read_end(&p_str, NULL); + png_read_end(p_str_ptr, NULL); } if (!vol_did) @@ -204,7 +228,10 @@ } } - png_read_destroy(&p_str, &p_info, NULL); + if (p_str_ptr && p_info_ptr) + png_destroy_info_struct(p_str_ptr, &p_info_ptr); + if (p_str_ptr) + png_destroy_read_struct(&p_str_ptr, NULL, NULL); fclose((FILE *)vol_fp); XtFree((char *)vol_pic); XtFree((char *)vol_pal); --- knews-1.0b.1.orig/src/server.c +++ knews-1.0b.1/src/server.c @@ -299,6 +299,7 @@ long server_read_raw(SERVER *server) { long n, len, i; + char *p, *end; n = server->curr_pos + strlen(server->buffer + server->curr_pos); len = server->len - n; @@ -310,8 +311,14 @@ } i = read(server->fd, server->buffer + n, len); - if (i >= 0) - server->buffer[n + i] = '\0'; + if (i >= 0) { + p = server->buffer + n; + end = p + i; + *end = '\0'; + /* replace null characters with spaces */ + for (p += strlen(p); p < end; p += strlen(p)) + *p++ = ' '; + } return i; } --- knews-1.0b.1.orig/util/knewsd/knewsd.c +++ knews-1.0b.1/util/knewsd/knewsd.c @@ -619,6 +619,7 @@ FILE *fp = NULL; long first, last, no; char *c; + char *lfl = NULL; if (!group_path) { printf(CODE_TO_STR(NNTP_ERR_NCING) " Not in a newsgroup.\r\n"); @@ -677,15 +678,18 @@ if (no > last) break; + lfl = strchr(buffer, '\n'); + if (lfl) + lfl[0]=0; fputs(buffer, stdout); - if (!strchr(buffer, '\n')) { + if (!lfl) { int ch; while ((ch = getc(fp)) != EOF && ch != '\n') putchar(ch); - - printf("\r\n"); } + + printf("\r\n"); } fclose(fp);