Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 22 Nov 1996 20:12:14 -0600 (CST)
From:      Dave Marquardt <marquard@Zilker.NET>
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   ports/2088: MH `comp -nowhatnowproc' creates the wrong draft file
Message-ID:  <199611230212.UAA16464@localhost.my.domain>
Resent-Message-ID: <199611230230.SAA04515@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         2088
>Category:       ports
>Synopsis:       MH `comp -nowhatnowproc' creates the wrong draft files
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports
>State:          open
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Nov 22 18:30:02 PST 1996
>Last-Modified:
>Originator:     Dave Marquardt
>Organization:
None
>Release:        FreeBSD 2.1.5-RELEASE
>Environment:

	Packard Bell Pentium 75 MHz running FreeBSD 2.1.5.

>Description:

	When running `exmh', the command `comp -nowhatnowproc
-draftfolder +drafts' treats files whose name looks like the regular
expression [0-9]+~ (all digits followed by a tilde) (GNU Emacs
"backup" files) as an existing draft message (normally files whose
names match the regular expression [0-9]+).


>How-To-Repeat:

	Run `comp -draftfolder +drafts -editor emacs', edit the draft,
save, and send the draft.  Run again and notice that rather than
getting draft 1, you have draft 2.  This is unlike past MH behavior
and uses extra files.

>Fix:
	
	There are two choices for fixing this.  One is to change the
configuration file conf/FreeBSD to not specify LOCALE (doesn't seem
acceptable).  The other is to fix the code in the #ifdef LOCALE
section of m_atoi() to more closely follow the code inside the #else
area.  Here's a context diff:

*** m_atoi.c	1996/11/23 01:14:55	1.1
--- m_atoi.c	1996/11/23 01:16:23
***************
*** 19,24 ****
--- 19,27 ----
  	i *= 10;
  	i += *cp++ - '0';
      }
+     if (*cp) { /* non-digit ended string -- return 0. */
+ 	return 0;
+     }
  #else
      while (*cp) {
  	if (*cp < '0' || *cp > '9')


>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199611230212.UAA16464>