From xemacs-m  Wed Feb  5 21:09:51 1997
Received: from mail.uni-muenster.de (MAIL.UNI-MUENSTER.DE [128.176.6.47])
	by xemacs.org (8.8.5/8.8.5) with ESMTP id VAA12473
	for <xemacs-beta@xemacs.org>; Wed, 5 Feb 1997 21:09:49 -0600 (CST)
Received: from cortex.corpus.uni-muenster.de (PPPE011.UNI-MUENSTER.DE [128.176.20.11]) by mail.uni-muenster.de (8.7.5/8.7.5) with ESMTP id EAA63276 for <xemacs-beta@xemacs.org>; Thu, 6 Feb 1997 04:09:39 +0100
Received: (from gutschk@localhost) by cortex.corpus.uni-muenster.de (8.8.2/8.8.2) id KAA21060; Wed, 5 Feb 1997 10:21:56 +0100
To: xemacs-beta@xemacs.org
Subject: Bug in TMs handling of enriched text
X-Face: +.[`xCMz]E6GW}5ECgY#C"Er6&v$q7:oe+zPlPtOh>/US;9B>;)ro_lpLx9/]q_{u-\YR>r
 P&)Da0gS,PW{@BWSG,PIV)3#J<$Ft_t]qa!xF~'*wuwg-CJj*0:EUr3z}y
Mime-Version: 1.0 (generated by tm-edit 7.100)
Content-Type: multipart/mixed;
 boundary="Multipart_Wed_Feb__5_10:21:55_1997-1"
Content-Transfer-Encoding: 7bit
From: Markus Gutschke <gutschk@uni-muenster.de>
Date: 05 Feb 1997 10:21:55 +0100
Message-ID: <m391537glo.fsf@cortex.corpus.uni-muenster.de>
Lines: 186
X-Mailer: Gnus v5.2.40/XEmacs 20.0

--Multipart_Wed_Feb__5_10:21:55_1997-1
Content-Type: text/plain; charset=US-ASCII

Jamie sent me message complaining about one of my posts to
comp.emacs.xemacs. He states that the MIME format generated by TM was
malformed. The message was written with XEmacs 20.0beta91 and the
version of TM that came with this release (7.100). I attached both
Jamie's message and my original posting.

TM displays my message just the way that it wanted it to be formated,
but apparently this is not in conformance with the standards.


Markus


--Multipart_Wed_Feb__5_10:21:55_1997-1
Content-Type: message/rfc822

Return-Path: <jwz@netscape.com>
Message-ID: <32F7AB29.6113@netscape.com>
X-UIDL: 855111964.008
Organization: Netscape Communications Corporation, Mozilla Division
X-Mailer: Mozilla 3.0 (X11; U; IRIX 6.2 IP22)
MIME-Version: 1.0
References: <qlybd6xwh1.fsf@mcm.com> <m3k9oqnn91.fsfcorpus@uni-muenster.de>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Status: U
From: Jamie Zawinski <jwz@netscape.com>
Sender: jwz@netscape.com (Jamie Zawinski)
To: Markus Gutschke <gutschk@uni-muenster.de>
Subject: Re: POP3 client keeps reading mailbox
Date: Tue, 04 Feb 1997 13:33:29 -0800

Markus Gutschke wrote:
> 
> Content-Type: text/enriched; charset=US-ASCII
> 
> <nofill>[gutschk@cortex gutschk]$ <bold><x-color><param>red</param>echo test message|Mail -s test gutschk</x-color></bold>
> [gutschk@cortex gutschk]$ <bold><x-color><param>red</param>telnet localhost pop</x-color></bold>
> Trying 127.0.0.1...
> Connected to localhost.
> Escape character is '^]'.

Whatever you used to generate this is busted.  Lone newlines in
text/enriched are linear whitespace, not linebreaks.  A single
linebreak is \n\n.  A blank line is \n\n\n.  And so on.

And also, draft-resnick-text-enriched-00 defines <FontFamily> 
and <Color> tags, so you should use that instead of <x-color>.

If you didn't write the code in question, you might want to forward
this along to whoever did.

	== Jamie


--Multipart_Wed_Feb__5_10:21:55_1997-1
Content-Type: message/rfc822

Path: cortex.corpus.uni-muenster.de!news
From: Markus Gutschke <gutschk@uni-muenster.de>
Newsgroups: comp.emacs.xemacs
Subject: Re: POP3 client keeps reading mailbox
Date: 3 Feb 1997 12:27:23 +0100
Organization: Markus Gutschke, Schlage 5a, 48268 Greven-Gimbte, Germany
Lines: 92
Sender: gutschk@cortex.corpus.uni-muenster.de
Message-ID: <m3k9oqnn91.fsfcorpus@uni-muenster.de>
References: <qlybd6xwh1.fsf@mcm.com>
NNTP-Posting-Host: localhost.uni-muenster.de
Mime-Version: 1.0 (generated by tm-edit 7.100)
Content-Type: multipart/mixed;
 boundary="Multipart_Mon_Feb__3_12:27:05_1997-1"
Content-Transfer-Encoding: 7bit
To: Justin Gordon <justin@mcm.com>
In-Reply-To: <qlybd6xwh1.fsf@mcm.com>
X-Face: +.[`xCMz]E6GW}5ECgY#C"Er6&v$q7:oe+zPlPtOh>/US;9B>;)ro_lpLx9/]q_{u-\YR>r
 P&)Da0gS,PW{@BWSG,PIV)3#J<$Ft_t]qa!xF~'*wuwg-CJj*0:EUr3z}y
X-Newsreader: Gnus v5.2.40/XEmacs 20.0

--Multipart_Mon_Feb__3_12:27:05_1997-1
Content-Type: text/plain; charset=US-ASCII

Hi Justin,

 > I have a POP3 server that works fine with Netscape mail. However, if I
 > set up XEmacs to use the server, it keeps retrieving the same
 > messages. So, within few minutes, 100 messages has turned into a
 > thousand messages. Does anybody know why this might happen?

This is quite unusual. The only problem that I know of, is from people
complaining that XEmacs does not leave the messages on the POP server
after it retrieved new messages.

POP3 (as described in RFC1939) is a rather limited protocol. While
there have been a couple of proposed extensions, that try to add
support for leaving messages at the POP server and for sending new
messages thru the POP server, none of these have been standardized.

I just had a look at my copy of "lisp/vm/vm-pop.el" and it seems that
Kyle did not implement anything other than the original protocol
(c.f. RFC1939). This means that messages are automatically deleted
from the POP server after they have been retrieved.

I guess, the easiest way for testing if there is a problem with your
POP server, is to manually initiate a POP conversation.


--Multipart_Mon_Feb__3_12:27:05_1997-1
Content-Type: text/enriched; charset=US-ASCII

<nofill>[gutschk@cortex gutschk]$ <bold><x-color><param>red</param>echo test message|Mail -s test gutschk</x-color></bold>
[gutschk@cortex gutschk]$ <bold><x-color><param>red</param>telnet localhost pop</x-color></bold>
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
<x-color><param>blue</param>+OK cortex.corpus.uni-muenster.de POP3 3.3(20) w/IMAP2 client (Comments to MRC@CAC.Washington.EDU) at Mon, 3 Feb 1997 11:52:56 +0100 (MET)</x-color>
<bold><x-color><param>red</param>USER gutschk</x-color></bold>
<x-color><param>blue</param>+OK User name accepted, password please</x-color>
<bold><x-color><param>red</param>PASS mypasswd</x-color></bold>
<x-color><param>blue</param>+OK Mailbox open, 1 messages</x-color>
<bold><x-color><param>red</param>STAT</x-color></bold>
<x-color><param>blue</param>+OK 1 417</x-color>
<bold><x-color><param>red</param>RETR 1</x-color></bold>
<x-color><param>blue</param>+OK 417 octets</x-color>
Return-Path: <<gutschk>
Received: (from gutschk@localhost) by cortex.corpus.uni-muenster.de (8.8.2/8.8.2) id LAA09113 for gutschk; Mon, 3 Feb 1997 11:52:48 +0100
Date: Mon, 3 Feb 1997 11:52:48 +0100
From: Markus Gutschke <<gutschk@cortex.corpus.uni-muenster.de>
Message-Id: <<199702031052.LAA09113@cortex.corpus.uni-muenster.de>
To: gutschk@cortex.corpus.uni-muenster.de
Subject: test
Status:   

test message
.
<bold><x-color><param>red</param>DELE 1</x-color></bold>
<x-color><param>blue</param>+OK Message deleted</x-color>
<bold><x-color><param>red</param>QUIT</x-color></bold>
<x-color><param>blue</param>+OK Sayonara</x-color>
Connection closed by foreign host.
[gutschk@cortex gutschk]$ 
</nofill>
--Multipart_Mon_Feb__3_12:27:05_1997-1
Content-Type: text/plain; charset=US-ASCII


This should retrieve and delete the first message from the server. If
that does not work, then you know that there is something wrong with
the POP server. If it does work, then the problem is somewhere in
"lisp/vm/vm-pop.el".

It seems that "vm-pop.el" will leave a buffer around, that is named
"trace of POP session to ...". You should probably have a look at this
buffer. For doing this, if might be neccessary to remove the
"delete-process" call from "vm-pop.el", though.

Actually, your problem looks as if the POP server never sees the final
"QUIT" command, although I would not know, why this is happening.

Good luck and let me know if you could find the problem,


Markus

-- 
Markus Gutschke          Internet:       gutschk@math.uni-muenster.de
Schlage 5a               PGP public key: finger -l gutschk@math.uni-muenster.de
D-48268 Greven-Gimbte
Germany                            >>> I prefer encrypted e-mail <<<

--Multipart_Mon_Feb__3_12:27:05_1997-1--

--Multipart_Wed_Feb__5_10:21:55_1997-1
Content-Type: text/plain; charset=US-ASCII


-- 
Markus Gutschke          Internet:       gutschk@math.uni-muenster.de
Schlage 5a               PGP public key: finger -l gutschk@math.uni-muenster.de
D-48268 Greven-Gimbte
Germany                            >>> I prefer encrypted e-mail <<<

--Multipart_Wed_Feb__5_10:21:55_1997-1--

