From owner-freebsd-bugs Mon May 17 3:40: 5 1999 Delivered-To: freebsd-bugs@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (Postfix) with ESMTP id 2F37A14ED2 for ; Mon, 17 May 1999 03:40:02 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id DAA62725; Mon, 17 May 1999 03:40:01 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from alcanet.com.au (border.alcanet.com.au [203.62.196.10]) by hub.freebsd.org (Postfix) with ESMTP id A199415066 for ; 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 Reply-To: peter.jeremy@alcatel.com.au To: FreeBSD-gnats-submit@FreeBSD.ORG X-Send-Pr-Version: 3.2 Subject: bin/11746: Add support for Solaris mailboxes Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >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