<?xml version="1.0"?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN"
"http://www.wapforum.org/DTD/wml_1.1.xml">
<wml>
<card id="index" title="Text File" newcontext="true">
<p>
Received: with ECARTIS (v1.0.0; list gopher);
 Fri, 05 Apr 2002 17:17:12 -0500 (EST)
Return-Path: &lt;jgoerzen@complete.org&gt;
Delivered-To: gopher@complete.org
Received: from christoph.complete.org (pcp947166pcs.cstltn01.in.comcast.net
 [68.58.145.248])
	by pi.glockenspiel.complete.org (Postfix) with ESMTP id EF2973B80B
	for &lt;gopher@complete.org&gt;; Fri,  5 Apr 2002 17:17:11 -0500 (EST)
Received: from localhost (localhost [127.0.0.1])
	by christoph.complete.org (Postfix) with ESMTP id 6FAEA5A408
	for &lt;gopher@complete.org&gt;; Fri,  5 Apr 2002 17:17:14 -0500 (EST)
Date: Fri, 5 Apr 2002 17:17:11 -0500
Subject: [gopher] Re: Pygopherd nearing gopherd replacement
Content-type: text/plain; charset=US-ASCII
Mime-Version: 1.0 (Apple Message framework v481)
From: John Goerzen &lt;jgoerzen@complete.org&gt;
To: gopher@complete.org
Content-Transfer-Encoding: 8bit
In-Reply-To:
 &lt;20020405214239.CHDN4902.tomts24-srv.bellnexxia.net@[209.226.175.18]&gt;
Message-Id: &lt;DFF2BC75-48E2-11D6-857D-0003930BF072@complete.org&gt;
X-Mailer: Apple Mail (2.481)
X-archive-position: 569
X-ecartis-version: Ecartis v1.0.0
Sender: gopher-bounce@complete.org
Errors-to: gopher-bounce@complete.org
X-original-sender: jgoerzen@complete.org
Precedence: bulk
Reply-to: gopher@complete.org
List-help: &lt;mailto:ecartis@complete.org?Subject=help&gt;
List-unsubscribe: &lt;mailto:gopher-request@complete.org?Subject=unsubscribe&gt;
List-software: Ecartis version 1.0.0
List-ID: Gopher &lt;gopher.complete.org&gt;
X-List-ID: Gopher &lt;gopher.complete.org&gt;
List-subscribe: &lt;mailto:gopher-request@complete.org?Subject=subscribe&gt;
List-owner: &lt;mailto:jgoerzen@complete.org&gt;
List-post: &lt;mailto:gopher@complete.org&gt;
List-archive: &lt;http://www.complete.org/mailinglists/archives/&gt;
X-list: gopher
</p>
<p></p>
<p>On Friday, April 5, 2002, at 04:42  PM, Ralph Furmaniak wrote:
</p>
<p>&gt; Looks like that&#x27;s cleared up.
&gt; I still think that the output should be post-processed.  This is
&gt; especially an issue when the server can do http output.  Either way, if
&gt; there is no pos-processing then the executable will have to know the
&gt; hostname, port, the documentroot, whether it should be formatted for
&gt; gopher0,gopher+,http.
</p>
<p>Well, you can just tell it that this directory cannot do gopher+.  I use
this trick with UMN gopherd on quux where I have some
files-acting-as-directories. (Still a problem for HTTP).
</p>
<p>&gt;  For this you would probably need to set environment variables, and
&gt; then make a library that is accessed by the executables (unless you
&gt; want each programmer to remake this on their own).  PLus, this would
&gt; limit the possible languages to those with libraries.
</p>
<p>In pygopherd, there is just such a library.  Each &quot;handler&quot; receives a
protocol object when it is instantiated.  These protocol objects have a
uniform interface for rendering directories in a fashion that is
powerful enough for all gopher protocols and HTTP and is flexible enough
for various types of handlers.  The handler does not care what protocol
is being used.  (It can find out, but there&#x27;s no need to.)
</p>
<p>&gt; Another possibility is for the script to signal back to the server what
&gt; it is printing, but I think that the extra character is enough.
</p>
<p>Yeah, and that&#x27;s icky anyway.
</p>
<p>&gt; How is it better to have the character at the end?
</p>
<p>Because then relative links in documents work for HTML files -- and even
in other files.  It&#x27;s a big problem to try to serve up HTML files with
these files.  The HTML file may live at h/papers/index.html and all its
graphics at g/papers/index.html.  An IMG SRC of &quot;header.gif&quot; will
reference h/papers/header.gif instead of g/papers/header.gif.
Referencing &quot;./&quot; to get the current directory will fail (it&#x27;ll get
h/papers rather than 1/papers), etc.
</p>
<p>Not having this problem is a Good Thing (TM).
</p>
<p>-- John
</p>
<p></p>
</card>
</wml>
