<?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 09:32:26 -0500 (EST)
Return-Path: &lt;jgoerzen@complete.org&gt;
Delivered-To: gopher@complete.org
Received: from christoph.complete.org (unknown [168.215.193.254])
	by pi.glockenspiel.complete.org (Postfix) with ESMTP id D96A83B80B
	for &lt;gopher@complete.org&gt;; Fri,  5 Apr 2002 09:32:23 -0500 (EST)
Received: from localhost (localhost [127.0.0.1])
	by christoph.complete.org (Postfix) with ESMTP id B13A95A40F
	for &lt;gopher@complete.org&gt;; Fri,  5 Apr 2002 09:32:25 -0500 (EST)
Date: Fri, 5 Apr 2002 09:32:19 -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;3CACE3A1.464BE377@sympatico.ca&gt;
Message-Id: &lt;EF40ADB8-48A1-11D6-857D-0003930BF072@complete.org&gt;
X-Mailer: Apple Mail (2.481)
X-archive-position: 560
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 Thursday, April 4, 2002, at 06:37  PM, Ralph Furmaniak wrote:
</p>
<p>&gt;&gt; Pygopherd also does not add
&gt;&gt; an extra (or &quot;second&quot; if you&#x27;re using URLs) type character like UMN
&gt;&gt; gopherd does.  Because it figures all this out itself, that is
&gt;&gt; unnecessary.
&gt;
&gt; This does have its uses.  For example an executable must be able to
&gt; return
&gt; either a plain file or a menu (gophermap format).  If you include the
</p>
<p>Well, unless you pass the character to the executable, how does it
help?  If you pass it to the executable, you might as well just use
something else.
</p>
<p>&gt; character you can also do things such as using type 1 for a file and
&gt; have it
&gt; read as a gophermap menu.
</p>
<p>I&#x27;ve sometimes used this trick with textfiles even :-)
</p>
<p>&gt; This character is also used to signify mail spool files.
</p>
<p>UMN gopherd automatically recognizes the From lines and so really
doesn&#x27;t need the extra type character.  I intend to do that the same.  A
mbox will just be a type 1 object as far as anything is concerned.  The
mbox handler does not need to be told that it&#x27;s getting an mbox, it just
knows :-)
</p>
<p>&gt; Including the type character can make the code somewhat (albeit not
&gt; much)
&gt; simpler and does not cause any problems that I am aware of.
</p>
<p>Actually, I believe that including it makes the code more complex.
Since the client already knows what sort of document it&#x27;s getting,
there&#x27;s no real need for the server to know at that time.  Especially
now that we&#x27;re doing away with \n.\n.
</p>
<p>-- John
</p>
<p></p>
</card>
</wml>
