Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 17 May 1999 20:35:32 +1000
From:      Peter Jeremy <jeremyp@gsmx07.alcatel.com.au>
To:        FreeBSD-gnats-submit@FreeBSD.ORG
Subject:   bin/11746: Add support for Solaris mailboxes
Message-ID:  <99May17.202032est.40342@border.alcanet.com.au>

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

>Number:         11746
>Category:       bin
>Synopsis:       Add support for Solaris mailboxes
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Mon May 17 03:40:01 PDT 1999
>Closed-Date:
>Last-Modified:
>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:
>Unformatted:


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?99May17.202032est.40342>