[gnu.emacs.bug] VM problem in splitting folders

kamat@uceng.UC.EDU (Govind N. Kamat) (10/06/89)

On occasion, I receive a message that has the word "From" starting off
a paragraph.  The VM mail program incorrectly assumes that this is the
UNIX From_ line beginning a new message.

The following small change to VM 4.41 makes it a little smarter about
where to split folders into messages:

*** vm.el.OLD	Fri Oct  6 10:15:19 1989
--- vm.el	Fri Oct  6 10:12:08 1989
***************
*** 604,610 ****
  		separator-string "\n\001\001\001\001\n\001\001\001\001"
  		trailer-length 6)
  	(setq start-regexp "^From "
! 	      separator-string "\n\nFrom "
  	      trailer-length 2))
        (if vm-message-list
  	  (let ((mp vm-message-list)
--- 604,610 ----
  		separator-string "\n\001\001\001\001\n\001\001\001\001"
  		trailer-length 6)
  	(setq start-regexp "^From "
! 	      separator-string "\n\nFrom .+\n[^\000-\037\177: ]*:"
  	      trailer-length 2))
        (if vm-message-list
  	  (let ((mp vm-message-list)
***************
*** 623,629 ****
  	      (vm-set-start-of message (vm-marker (match-beginning 0)))
  	      (setq vm-message-list (list message)
  		    tail-cons vm-message-list))))
!       (while (search-forward separator-string nil t)
  	(setq marker (vm-marker (+ trailer-length (match-beginning 0)))
  	      message (vm-make-message))
  	(vm-set-start-of message marker)
--- 623,629 ----
  	      (vm-set-start-of message (vm-marker (match-beginning 0)))
  	      (setq vm-message-list (list message)
  		    tail-cons vm-message-list))))
!       (while (re-search-forward separator-string nil t)
  	(setq marker (vm-marker (+ trailer-length (match-beginning 0)))
  	      message (vm-make-message))
  	(vm-set-start-of message marker)


--
Govind N. Kamat 			College of Engineering
kamat@uceng.UC.EDU			University of Cincinnati
					Cincinnati, OH 45221, USA

kjones@talos.uucp (Kyle Jones) (10/10/89)

Govind N. Kamat writes:
 > On occasion, I receive a message that has the word "From" starting off
 > a paragraph.  The VM mail program incorrectly assumes that this is the
 > UNIX From_ line beginning a new message.

Hmmm, I thought /bin/mail on most systems quoted lines beginning with
"From ".  Whatever your delivery agent is, it should be doing some sort
of quoting.

kayvan@mrspoc.transact.com (Kayvan Sylvan) (10/10/89)

>>>>> "Kyle" == Kyle Jones <apple!uakari.primate.wisc.edu!xanth!talos!kjones> writes:

Govind> On occasion, I receive a message that has the word "From"
Govind> starting off a paragraph.  The VM mail program incorrectly
Govind> assumes that this is the UNIX From_ line beginning a new
Govind> message.

Kyle> Hmmm, I thought /bin/mail on most systems quoted lines beginning
Kyle> with "From ".  Whatever your delivery agent is, it should be
Kyle> doing some sort of quoting.

Yp. It's supposed to.

From the user mail agent to the delivery agent, somone is supposed to
quote "From" to ">From" or something...

			---Kayvan

kamat@uceng.UC.EDU (Govind N. Kamat) (10/11/89)

In article <1989Oct9.195200.11250@talos.uucp> kjones@talos.uucp (Kyle
Jones) writes:

   Govind N. Kamat writes:
    > On occasion, I receive a message that has the word "From" starting off
    > a paragraph.  The VM mail program incorrectly assumes that this is the
    > UNIX From_ line beginning a new message.

   Hmmm, I thought /bin/mail on most systems quoted lines beginning with
   "From ".  Whatever your delivery agent is, it should be doing some sort
   of quoting.

Yes, you are right.  It was a local problem, and has been fixed.
Sorry about the confusion.

--
Govind N. Kamat 			College of Engineering
kamat@uceng.UC.EDU			University of Cincinnati
					Cincinnati, OH 45221, USA