From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/18952 Path: main.gmane.org!not-for-mail From: Shenghuo ZHU Newsgroups: gmane.emacs.gnus.general Subject: Re: pgnus on a Windows box Date: 19 Nov 1998 15:29:47 -0500 Organization: Computer Dept of U Rochester Sender: owner-ding@hpc.uh.edu Message-ID: <5b67cbs9xg.fsf@ripple.cs.rochester.edu> References: <5bbtm3sf17.fsf@ripple.cs.rochester.edu> NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 X-Trace: main.gmane.org 1035157389 8978 80.91.224.250 (20 Oct 2002 23:43:09 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sun, 20 Oct 2002 23:43:09 +0000 (UTC) Return-Path: Original-Received: from karazm.math.uh.edu (karazm.math.uh.edu [129.7.128.1]) by sclp3.sclp.com (8.8.5/8.8.5) with ESMTP id PAA17018 for ; Thu, 19 Nov 1998 15:31:49 -0500 (EST) Original-Received: from sina.hpc.uh.edu (lists@Sina.HPC.UH.EDU [129.7.3.5]) by karazm.math.uh.edu (8.9.1/8.9.1) with ESMTP id OAB29474; Thu, 19 Nov 1998 14:30:39 -0600 (CST) Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Thu, 19 Nov 1998 14:30:32 -0600 (CST) Original-Received: from sclp3.sclp.com (root@sclp3.sclp.com [204.252.123.139]) by sina.hpc.uh.edu (8.7.3/8.7.3) with ESMTP id OAA05303 for ; Thu, 19 Nov 1998 14:30:17 -0600 (CST) Original-Received: from cayuga.cs.rochester.edu (cayuga.cs.rochester.edu [192.5.53.209]) by sclp3.sclp.com (8.8.5/8.8.5) with SMTP id PAA16982 for ; Thu, 19 Nov 1998 15:29:49 -0500 (EST) Original-Received: from slate.cs.rochester.edu (slate.cs.rochester.edu [192.5.53.101]) by cayuga.cs.rochester.edu (8.6.9/O) with ESMTP id PAA08763 for ; Thu, 19 Nov 1998 15:29:49 -0500 Original-Received: from ripple.cs.rochester.edu (ripple.cs.rochester.edu [192.5.53.193]) by slate.cs.rochester.edu (8.6.9/O) with ESMTP id PAA00725 for ; Thu, 19 Nov 1998 15:29:48 -0500 Original-Received: (from zsh@localhost) by ripple.cs.rochester.edu (SMI-8.6/N++) id PAA15508; Thu, 19 Nov 1998 15:29:48 -0500 Original-To: ding@gnus.org X-Attribution: ZSH X-Face: 'IF:e51ib'Qbl^(}l^&4-J`'P!@[4~O|&k#:@Gld#b/]oMq&`&FVY._3+b`mzp~Jeve~/#/ ERD!OTe<86UhyN=l`mrPY)M7_}`Ktt\K+58Z!hu7>qU,i.N7TotU[FYE(f1;}`g2xj!u*l`^&=Q!g{ *q|ddto|nkt"$r,K$[)"|6,elPH= GJ6Q In-Reply-To: Jack Vinson's message of "19 Nov 1998 13:25:20 -0600" Original-Lines: 82 User-Agent: Gnus/5.070051 (Pterodactyl Gnus v0.51) Emacs/20.3 Precedence: list X-Majordomo: 1.94.jlt7 Xref: main.gmane.org gmane.emacs.gnus.general:18952 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:18952 >>>>> "Jack" == Jack Vinson writes: >>>>> "ZSH" == Shenghuo ZHU writes: >>>>> "Jack" == Jack Vinson writes: Jack> [snip] Jack> When I open my old archives (from Gnus 5.6.55) pgnus complains. If I Jack> look at the file (nnfolder+archive) each line has a Ctrl-M appended Jack> to the end. Jack> [snip] ZSH> Try (setq nnmail-file-coding-system 'raw-text). ZSH> But it may lead other errors. Jack> Yes, it does. I am not including the backtrace this time, but a different Jack> error occurs when I use this coding system. Drat. Jack> I've also noticed that old mail messages (nnml) that were saved before the Jack> transition to Emacs 20.3 are a little strange. Pgnus is not able to parse Jack> the header information out of the file. Actually, it only seems to be the Jack> code associated with Message. The summary buffer looks right, but replying Jack> or following up to a message gives me a message buffer with an empty Jack> Subject and no To line. It has no problems with messages that have been Jack> stored since the arrival of 20.3. Try this patch and (setq nnmail-file-coding-system 'raw-text). Please report whether it works or not. -- Shenghuo :- cut --------------- --- ChangeLog 1998/11/19 20:22:24 1.1 +++ ChangeLog 1998/11/19 20:26:57 @@ -1,3 +1,9 @@ +Thu Nov 19 15:26:02 1998 Shenghuo ZHU + + * nnmail.el (nnmail-nov-file-coding-system): New variable. + * nnml.el (nnml-open-nov): Use nnmail-nov-file-coding-system. + (nnml-save-nov): Use nnmail-nov-file-coding-system. + Thu Nov 19 04:48:42 1998 Lars Magne Ingebrigtsen * gnus.el: Pterodactyl Gnus v0.51 is released. --- nnmail.el 1998/11/19 20:19:49 1.1 +++ nnmail.el 1998/11/19 20:20:20 @@ -496,6 +496,9 @@ (defvar nnmail-file-coding-system 'binary "Coding system used in nnmail.") +(defvar nnmail-nov-file-coding-system 'binary + "Coding system used in nov file.") + (defun nnmail-find-file (file) "Insert FILE in server buffer safely." (set-buffer nntp-server-buffer) --- nnml.el 1998/11/19 20:16:43 1.1 +++ nnml.el 1998/11/19 20:21:06 @@ -686,7 +686,8 @@ nnml-nov-file-name)) (erase-buffer) (when (file-exists-p nnml-nov-buffer-file-name) - (nnheader-insert-file-contents nnml-nov-buffer-file-name))) + (let ((nnheader-file-coding-system nnmail-nov-file-coding-system)) + (nnheader-insert-file-contents nnml-nov-buffer-file-name)))) (push (cons group buffer) nnml-nov-buffer-alist) buffer))) @@ -696,8 +697,9 @@ (when (buffer-name (cdar nnml-nov-buffer-alist)) (set-buffer (cdar nnml-nov-buffer-alist)) (when (buffer-modified-p) - (nnmail-write-region 1 (point-max) nnml-nov-buffer-file-name - nil 'nomesg)) + (let ((nnmail-file-coding-system nnmail-nov-file-coding-system)) + (nnmail-write-region 1 (point-max) nnml-nov-buffer-file-name + nil 'nomesg))) (set-buffer-modified-p nil) (kill-buffer (current-buffer))) (setq nnml-nov-buffer-alist (cdr nnml-nov-buffer-alist)))))