From jeremyp@gsmx07.alcatel.com.au Mon May 17 03:35:52 1999
Return-Path: <jeremyp@gsmx07.alcatel.com.au>
Received: from alcanet.com.au (border.alcanet.com.au [203.62.196.10])
	by hub.freebsd.org (Postfix) with ESMTP id A199415066
	for <FreeBSD-gnats-submit@FreeBSD.ORG>; Mon, 17 May 1999 03:35:49 -0700 (PDT)
	(envelope-from jeremyp@gsmx07.alcatel.com.au)
Received: by border.alcanet.com.au id <40342>; Mon, 17 May 1999 20:20:32 +1000
Message-Id: <99May17.202032est.40342@border.alcanet.com.au>
Date: Mon, 17 May 1999 20:35:32 +1000
From: Peter Jeremy <jeremyp@gsmx07.alcatel.com.au>
Reply-To: peter.jeremy@alcatel.com.au
To: FreeBSD-gnats-submit@FreeBSD.ORG
Subject: Add support for Solaris mailboxes
X-Send-Pr-Version: 3.2

>Number:         11746
>Category:       bin
>Synopsis:       Add support for Solaris mailboxes
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    mikeh
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Mon May 17 03:40:01 PDT 1999
>Closed-Date:    Sun Jul 1 06:28:44 PDT 2001
>Last-Modified:  Sun Jul 01 06:29:04 PDT 2001
>Originator:     Peter Jeremy
>Release:        FreeBSD 4.0-CURRENT i386
>Organization:
Alcatel Australian Limited
>Environment:

	FreeBSD 2.x and 4.x (and hence presumably 3.x), together
	with Solaris 2.x

>Description:

	Solaris 2.x mailboxes are similar in format to FreeBSD, with the
	exception that the timestamp in the `From ' line does not include
	a seconds field eg:
From owner-freebsd-current@FreeBSD.ORG Fri May 14 13:47 EST 1999
	as a result the FreeBSD mail(1) does not recognize the mailbox
	entry as a valid mail item.  A slight change to head.c allows
	mail(1) to recognize both.  The Solaris mailx(1) recognizes
	both formats.

>How-To-Repeat:

	Use FreeBSD mail(1) to access a mailbox created on a Solaris
	box.

>Fix:
	
--- head.c	Fri May 27 22:32:06 1994
+++ /tmp/head.c	Mon May 17 20:04:01 1999
@@ -162,15 +162,18 @@
  * ':'	A colon
  * 'N'	A new line
  */
-char ctype[] = "Aaa Aaa O0 00:00:00 0000";
-char tmztype[] = "Aaa Aaa O0 00:00:00 AAA 0000";
+static char ctype[] = "Aaa Aaa O0 00:00:00 0000";
+static char tmztype[] = "Aaa Aaa O0 00:00:00 AAA 0000";
+static char ctype1[] = "Aaa Aaa O0 00:00 0000";
+static char tmztype1[] = "Aaa Aaa O0 00:00 AAA 0000";
 
 int
 isdate(date)
 	char date[];
 {
 
-	return cmatch(date, ctype) || cmatch(date, tmztype);
+	return (cmatch(date, ctype) || cmatch(date, tmztype) ||
+		cmatch(date, ctype1) || cmatch(date, tmztype1));
 }
 
 /*

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->mikeh 
Responsible-Changed-By: mikeh 
Responsible-Changed-When: Sun Jun 3 21:40:05 PDT 2001 
Responsible-Changed-Why:  
I'll take a look at this. 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=11746 
State-Changed-From-To: open->analyzed 
State-Changed-By: mikeh 
State-Changed-When: Mon Jun 18 20:49:01 PDT 2001 
State-Changed-Why:  
Fix applied to current, MFC in 2 weeks. 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=11746 
State-Changed-From-To: analyzed->closed 
State-Changed-By: mikeh 
State-Changed-When: Sun Jul 1 06:28:44 PDT 2001 
State-Changed-Why:  
Fix MFC'd. 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=11746 
>Unformatted:
