From owner-ntemacs-users@trout  Mon Mar 24 18:14:34 1997
X-VM-v5-Data: ([nil nil nil nil nil nil nil nil nil]
	[nil "Mon" "24" "March" "1997" "17:13:25" "-0800" "Don Erway" "derway@ndc.com" nil "45" "Sharing RMAIL files between unix & nt" "^From:" nil nil "3" nil nil nil nil]
	nil)
Received: from joker.cs.washington.edu (joker.cs.washington.edu [128.95.1.42]) by june.cs.washington.edu (8.8.5+CS/7.2ju) with SMTP id SAA07329 for <voelker@june.cs.washington.edu>; Mon, 24 Mar 1997 18:14:34 -0800
Received: from trout.cs.washington.edu (trout.cs.washington.edu [128.95.1.178]) by joker.cs.washington.edu (8.6.12/7.2ws+) with ESMTP id SAA18833 for <voelker@joker.cs.washington.edu>; Mon, 24 Mar 1997 18:14:33 -0800
Received: from june.cs.washington.edu (june.cs.washington.edu [128.95.1.4]) by trout.cs.washington.edu (8.8.5+CS/7.2ws+) with ESMTP id RAA06493 for <ntemacs-users@trout.cs.washington.edu>; Mon, 24 Mar 1997 17:13:30 -0800 (PST)
Received: from maya.ndc.com (maya.ndc.com [192.101.92.41]) by june.cs.washington.edu (8.8.5+CS/7.2ju) with ESMTP id RAA03997 for <ntemacs-users@cs.washington.edu>; Mon, 24 Mar 1997 17:13:27 -0800
Received: from heidi.ndc-new.com (heidi [192.101.92.15]) by maya.ndc.com (8.7.5/8.7.3) with SMTP id RAA09010 for <ntemacs-users@cs.washington.edu>; Mon, 24 Mar 1997 17:11:52 -0800 (PST)
Received: from HAL.ndc.com by heidi.ndc-new.com (SMI-8.6/SMI-SVR4) 	id RAA17386; Mon, 24 Mar 1997 17:13:25 -0800
Message-Id: <199703250113.RAA17386@heidi.ndc-new.com>
In-reply-to: <199703241934.LAA10013@heidi.ndc-new.com> (message from Don Erway 	on Mon, 24 Mar 1997 11:34:30 -0800)
Mime-Version: 1.0 (generated by tm-edit 7.92)
Content-Type: text/plain; charset=US-ASCII
From: Don Erway <derway@ndc.com>
To: ntemacs-users@cs.washington.edu
Subject: Sharing RMAIL files between unix & nt
Date: Mon, 24 Mar 1997 17:13:25 -0800


In order to share large RMAIL files between unix & nt, it is preferable to
keep them all in binary mode.  To accomplish this currently requires a hack to
rmail.el on the nt side, to strip the carriage-returns from the incoming new
messages:

----------------------------------------------------------------------
*** l:/emacs-19.32/lisp/rmail.el	Thu Aug 08 14:03:40 1996
--- rmail.el	Thu Mar 06 17:33:02 1997
***************
*** 928,933 ****
--- 928,936 ----
  	    (goto-char (point-min))
  	    (unwind-protect
  		(save-excursion
+ 		  (while (search-forward "\r" nil t)
+ 		    (replace-match "" nil t)))
+ 		(save-excursion
  		  (setq new-messages (rmail-convert-to-babyl-format)
  			success t))
  	      ;; If we could not convert the file's inboxes,
----------------------------------------------------------------------

It would be preferable to provide a version of popmail that delivered unix
format messsages.

It is also necessary to keep the RMAIL files in an untranslated file system,
because each time you get new mail, it tried to change back to text mode,
(probably due to the insert-buffer mode change bug).

      (add-untranslated-filesystem "~/MAIL") ;force to stay in binary mode

Finally, it is necessary to make virgin buffers be binary mode, so that new
outgoing mail buffers will stay binary.  Otherwise Fcc: files will get
contaminated.

      (setq default-buffer-file-type t)

Don

	Don Erway			derway@ndc.com
	NDC Systems			818-939-3847
	5314 N. Irwindale Ave		Fax:939-3870
	Irwindale, CA, 91706


