update to pine/pico/pilot 4.02; imapd NOT compiled or installed

This commit is contained in:
marc 1998-08-03 04:11:48 +00:00
parent 628f90635a
commit 22ae5b2544
18 changed files with 1005 additions and 1131 deletions

View File

@ -1,30 +1,39 @@
# OpenBSD makefile for: pine
# http://www.washington.edu/pine/
# Version required: 3.96
# Version required: 4.02
# Date created: 10 Nov 1997
# Whom: ejovi
#
# $OpenBSD: Makefile,v 1.4 1998/03/31 05:59:41 marc Exp $
# $OpenBSD: Makefile,v 1.5 1998/08/03 04:11:48 marc Exp $
#
DISTNAME= pine3.96
PKGNAME= pine-3.96
DISTNAME= pine4.02
PKGNAME= pine-4.02
CATEGORIES= mail news
MASTER_SITES= ftp://ftp.cac.washington.edu/pine/
MAINTAINER= ports@OpenBSD.ORG
MAINTAINER= marc@OpenBSD.ORG
post-install:
install -c -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} \
files/pgpencrypt ${PREFIX}/bin/pgpencrypt
install -c -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} \
files/pgpdecode ${PREFIX}/bin/pgpdecode
install -c -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} \
files/pgpsign ${PREFIX}/bin/pgpsign
install -d -o ${SHAREOWN} -g ${SHAREGRP} -m 755 \
${PREFIX}/share/doc/pine
cd ${WRKSRC} && ${INSTALL_DATA} \
doc/tech-notes.txt ${FILESDIR}/dot.pinerc.pgp.sample \
do-install:
@${INSTALL_PROGRAM} \
${WRKSRC}/bin/pico \
${WRKSRC}/bin/pilot \
${WRKSRC}/bin/pine \
${PREFIX}/bin
@${INSTALL_SCRIPT} \
${FILESDIR}/pgpencrypt \
${FILESDIR}/pgpdecode \
${FILESDIR}/pgpsign \
${PREFIX}/bin
@${INSTALL_MAN} \
${WRKSRC}/doc/pico.1 \
${WRKSRC}/doc/pilot.1 \
${WRKSRC}/doc/pine.1 \
${PREFIX}/man/man1
@${MKDIR} ${PREFIX}/share/doc/pine
@${INSTALL_DATA} \
${WRKSRC}/doc/tech-notes.txt \
${FILESDIR}/dot.pinerc.pgp.sample \
${PREFIX}/share/doc/pine
.include <bsd.port.mk>

View File

@ -1,16 +1,3 @@
all:
./build bsf
install:
if [ -s bin/libpico.so.1.3 ]; then \
install -c -o ${LIBOWN} -g ${LIBGRP} -m ${LIBMODE} \
bin/libpico.so.1.3 ${PREFIX}/lib/libpico.so.1.3; \
/sbin/ldconfig -m ${PREFIX}/lib; \
else \
true; \
fi
install -c -s -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} bin/pico ${PREFIX}/bin/pico
install -c -s -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} bin/pilot ${PREFIX}/bin/pilot
install -c -s -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} bin/pine ${PREFIX}/bin/pine
install -c -o ${MANOWN} -g ${MANGRP} -m ${MANMODE} doc/pico.1 ${PREFIX}/man/man1/pico.1
install -c -o ${MANOWN} -g ${MANGRP} -m ${MANMODE} doc/pilot.1 ${PREFIX}/man/man1/pilot.1
install -c -o ${MANOWN} -g ${MANGRP} -m ${MANMODE} doc/pine.1 ${PREFIX}/man/man1/pine.1
./build bso

View File

@ -1 +1 @@
MD5 (pine3.96.tar.gz) = bf32b0bf1296ff2151e1bc7f546d43ab
MD5 (pine4.02.tar.gz) = 688979b5649473169bdbf22ea1c82fe7

View File

@ -1,93 +1,13 @@
*** pico/makefile.bsf.orig Fri Jun 14 00:15:20 1996
--- pico/makefile.bsf Fri Jun 14 00:15:20 1996
***************
*** 0 ****
--- 1,88 ----
+ #
+ # Michael Seibel
+ # Networks and Distributed Computing
+ # Computing and Communications
+ # University of Washington
+ # Administration Builiding, AG-44
+ # Seattle, Washington, 98195, USA
+ # Internet: mikes@cac.washington.edu
+ #
+ # Please address all bugs and comments to "pine-bugs@cac.washington.edu"
+ #
+ #
+ # Pine and Pico are registered trademarks of the University of Washington.
+ # No commercial use of these trademarks may be made without prior written
+ # permission of the University of Washington.
+ #
+ # Pine, Pico, and Pilot software and its included text are Copyright
+ # 1989-1996 by the University of Washington.
+ #
+ # The full text of our legal notices is contained in the file called
+ # CPYRIGHT, included with this distribution.
+ #
diff -ur doc/pine-ports
--- doc/pine-ports Thu Jul 16 11:18:17 1998
+++ doc/pine-ports Sat Aug 1 21:54:10 1998
@@ -80,6 +80,9 @@
NeXT
nxt NeXT 68030's and 68040's Mach 2.0
+ OpenBSD
+ bso OpenBSD with shared-lib
+
+ #
+ # Makefile for the FreeBSD shared-lib version of the PINE composer library and
+ # stand-alone editor pico.
+ #
+
+ #includes symbol info for debugging
+ DASHO= # -g
+ #for normal build
+ #DASHO= -O
+
+ STDCFLAGS= -DBSDI -DBSDI2 -DPOSIX -DJOB_CONTROL -DANSI -DMOUSE
+ CFLAGS+= $(EXTRACFLAGS) $(DASHO) $(STDCFLAGS)
+
+ # switches for library building
+ LIBCMD= ar
+ LIBARGS= ru
+ RANLIB= ranlib
+
+ LIBS= $(EXTRALIBES) -ltermcap
+
+ OFILES= attach.o ansi.o basic.o bind.o browse.o buffer.o \
+ composer.o display.o file.o fileio.o line.o osdep.o \
+ pico.o random.o region.o search.o spell.o tcap.o window.o word.o
+
+ # Lets be elite and not retype in the above
+ SOFILES= ${OFILES:.o=.so}
+
+ CFILES= attach.c ansi.c basic.c bind.c browse.c buffer.c \
+ composer.c display.c file.c fileio.c line.c osdep.c \
+ pico.c random.c region.c search.c spell.c tcap.c window.c word.c
+
+ HFILES= estruct.h edef.h efunc.h ebind.h pico.h osdep.h
+
+
+ #
+ # dependencies for the Unix versions of pico and libpico.a
+ #
+ all: pico pilot
+
+ osdep.c: os_unix.c
+ rm -f osdep.c
+ cp os_unix.c osdep.c
+
+ osdep.h: os_unix.h
+ rm -f osdep.h
+ cp os_unix.h osdep.h
+
+ libpico.a: osdep.c osdep.h $(OFILES)
+ $(LIBCMD) $(LIBARGS) libpico.a $(OFILES)
+ $(RANLIB) libpico.a
+
+ pico: main.c libpico.a
+ $(CC) $(CFLAGS) main.c -L. -lpico $(LIBS) -o pico
+
+ pilot: pilot.c libpico.a
+ $(CC) $(CFLAGS) pilot.c -L. -lpico $(LIBS) -o pilot
+
+ .c.o: ; $(CC) -c $(CFLAGS) $*.c
+
+ $(OFILES): $(HFILES)
+
+ $(SOFILES): $(HFILES)
+
+ clean:
+ rm -f *.a *.so.1.3 *.o *~ osdep.c osdep.h pico pilot
SCO
sc5 SCO Open Server 5.x
sco SCO Unix

View File

@ -1,15 +1,37 @@
*** pico/os_unix.c.orig Wed Jun 12 15:47:21 1996
--- pico/os_unix.c Fri Jun 14 00:15:30 1996
***************
*** 1343,1347 ****
extern int sys_nerr;
--- imap/Makefile.orig Wed Jul 15 23:54:19 1998
+++ imap/Makefile Sun Aug 2 17:12:02 1998
@@ -100,7 +100,7 @@
! return((err >= 0 && err < sys_nerr) ? sys_errlist[err] : NULL);
}
# Make the IMAP Toolkit
--- 1343,1347 ----
extern int sys_nerr;
-all: c-client rebuild bundled
+all: c-client rebuild # bundled
! return(((err >= 0) && (err < sys_nerr)) ? (char*)sys_errlist[err] : NULL);
}
# The following ports are defined. These refer to the *standard* compiler
@@ -125,6 +125,7 @@
# bsd generic BSD
# bsf FreeBSD
# bsi BSD/i386
+# bso OpenBSD
# cvx Convex
# d-g Data General DG/UX prior to 5.4 (d41 port no longer exists)
# d54 Data General DG/UX 5.4
@@ -180,7 +181,7 @@
# Note on SCO you may have to set LN to "ln".
-a32 a41 aix bs3 bsf bsi d-g d54 drs epx gas gh9 ghp gso gsu gul hpp hpx lnx lyn mct mnt neb nxt osf os4 ptx qnx sc5 sco sgi shp sl5 slx snx sol sos uw2: an
+a32 a41 aix bs3 bsf bsi bso d-g d54 drs epx gas gh9 ghp gso gsu gul hpp hpx lnx lyn mct mnt neb nxt osf os4 ptx qnx sc5 sco sgi shp sl5 slx snx sol sos uw2: an
$(BUILD) OS=$@
# If you use sv4, you may find that it works to move it to use the an process.
@@ -255,7 +256,7 @@
$(TOOLS)/$@ "$(LN)" src/imapd imapd
$(LN) $(TOOLS)/$@ .
-build: OSTYPE rebuild rebuildclean bundled
+build: OSTYPE rebuild rebuildclean # bundled
OSTYPE:
@echo Building c-client for $(OS)...

View File

@ -1,411 +1,18 @@
*** pine/osdep/os-bsf.h.orig Tue Dec 3 16:36:18 1996
--- pine/osdep/os-bsf.h Tue Dec 3 17:46:48 1996
***************
*** 0 ****
--- 1,406 ----
+ /*----------------------------------------------------------------------
+
+ T H E P I N E M A I L S Y S T E M
+
+ Laurence Lundblade and Mike Seibel
+ Networks and Distributed Computing
+ Computing and Communications
+ University of Washington
+ Administration Builiding, AG-44
+ Seattle, Washington, 98195, USA
+ Internet: lgl@CAC.Washington.EDU
+ mikes@CAC.Washington.EDU
+
+ Please address all bugs and comments to "pine-bugs@cac.washington.edu"
+
+
+ Pine and Pico are registered trademarks of the University of Washington.
+ No commercial use of these trademarks may be made without prior written
+ permission of the University of Washington.
+
+ Pine, Pico, and Pilot software and its included text are Copyright
+ 1989-1996 by the University of Washington.
+
+ The full text of our legal notices is contained in the file called
+ CPYRIGHT, included with this distribution.
+
+
+ Pine is in part based on The Elm Mail System:
+ ***********************************************************************
+ * The Elm Mail System - Revision: 2.13 *
+ * *
+ * Copyright (c) 1986, 1987 Dave Taylor *
+ * Copyright (c) 1988, 1989 USENET Community Trust *
+ ***********************************************************************
+
+
+ ----------------------------------------------------------------------*/
+
+ #ifndef _OS_INCLUDED
+ #define _OS_INCLUDED
+
+
+ /*----------------------------------------------------------------------
+
+ This first section has some constants that you may want to change
+ for your configuration. This is the BSD/386 Gamma 4.1 version of the
+ os.h file.
+ Further down in the file are os-dependent things that need to be set up
+ correctly for each os. They aren't interesting, they just have to be
+ right. There are also a few constants down there that may be of
+ interest to some.
+
+ ----*/
+
+ /*----------------------------------------------------------------------
+ Define this if you want the disk quota to be checked on startup.
+ Of course, this only makes sense if your system has quotas. If it doesn't,
+ there should be a dummy disk_quota() routine in os-xxx.c so that defining
+ this won't be harmful anyway.
+ ----*/
+ /* #define USE_QUOTAS /* comment out if you never want quotas checked */
+
+
+
+ /*----------------------------------------------------------------------
+ Define this if you want to allow the users to change their From header
+ line when they send out mail. The users will still have to configure
+ either default-composer-hdrs or customized-hdrs to get at the From
+ header, even if this is set.
+ ----*/
+ #define ALLOW_CHANGING_FROM /* comment out to not allow changing From */
+
+
+
+ /*----------------------------------------------------------------------
+ Define this if you want to allow users to turn on the feature that
+ enables sending to take place in a fork()'d child. This may reduce
+ the time on the user's wall clock it takes to post mail.
+ NOTE: You'll also have to make sure the appropriate osdep/postreap.*
+ file is included in the os-*.ic file for your system.
+ ----*/
+ #define BACKGROUND_POST /* comment out to disable posting from child */
+
+
+
+ /*----------------------------------------------------------------------
+ Turn this on if you want to disable the keyboard lock function.
+ ----*/
+ /* #define NO_KEYBOARD_LOCK */
+
+
+
+ /*----------------------------------------------------------------------
+ Turn this on to trigger QP encoding of sent message text if it contains
+ "From " at the beginning of a line or "." on a line by itself.
+ ----*/
+ /* #define ENCODE_FROMS */
+
+
+
+ /*----------------------------------------------------------------------
+ Timeouts (seconds)
+ ----*/
+ #define DF_MAILCHECK "150" /* How often to check for new mail, by
+ default. There's some expense in doing
+ this so it shouldn't be done too
+ frequently. (Can be set in config
+ file now.) */
+
+ /*----------------------------------------------------------------------
+ Check pointing (seconds)
+ ----*/
+ #define CHECK_POINT_TIME (7*60) /* Check point the mail file (write changes
+ to disk) if more than CHECK_POINT_TIME
+ seconds have passed since the first
+ change was made. Depending on what is
+ happening, we may wait up to three times
+ this long, since we don't want to do the
+ slow check pointing and irritate the user. */
+
+ #define CHECK_POINT_FREQ (12) /* Check point the mail file if there have been
+ at least this many (status) changes to the
+ current mail file. We may wait longer if
+ it isn't a good time to do the checkpoint. */
+
+
+
+ /*----------------------------------------------------------------------
+ In scrolling through text, the number of lines from the previous
+ screen to overlap when showing the next screen. Usually set to two.
+ ----*/
+ #define DF_OVERLAP "2"
+
+
+
+ /*----------------------------------------------------------------------
+ When scrolling screens, the number of lines from top and bottom of
+ the screen to initiate single-line scrolling.
+ ----*/
+ #define DF_MARGIN "0"
+
+
+
+ /*----------------------------------------------------------------------
+ Default fill column for pine composer and maximum fill column. The max
+ is used to stop people from setting their custom fill column higher than
+ that number. Note that DF_FILLCOL is a string but MAX_FILLCOL is an integer.
+ ----*/
+ #define DF_FILLCOL "74"
+ #define MAX_FILLCOL 80
+
+
+
+ /*----- System-wide config file ----------------------------------------*/
+ #define SYSTEM_PINERC "/usr/local/etc/pine.conf"
+ #define SYSTEM_PINERC_FIXED "/usr/local/etc/pine.conf.fixed"
+
+
+
+ /*----------------------------------------------------------------------
+ The default folder names and folder directories (some for backwards
+ compatibility). Think hard before changing any of these.
+ ----*/
+ #define DF_DEFAULT_FCC "sent-mail"
+ #define DEFAULT_SAVE "saved-messages"
+ #define POSTPONED_MAIL "postponed-mail"
+ #define POSTPONED_MSGS "postponed-msgs"
+ #define INTERRUPTED_MAIL ".pine-interrupted-mail"
+ #define DEADLETTER "dead.letter"
+ #define DF_MAIL_DIRECTORY "mail"
+ #define INBOX_NAME "INBOX"
+ #define DF_SIGNATURE_FILE ".signature"
+ #define DF_ELM_STYLE_SAVE "no"
+ #define DF_HEADER_IN_REPLY "no"
+ #define DF_OLD_STYLE_REPLY "no"
+ #define DF_USE_ONLY_DOMAIN_NAME "no"
+ #define DF_FEATURE_LEVEL "sapling"
+ #define DF_SAVE_BY_SENDER "no"
+ #define DF_SORT_KEY "arrival"
+ #define DF_AB_SORT_RULE "fullname-with-lists-last"
+ #define DF_SAVED_MSG_NAME_RULE "default-folder"
+ #define DF_FCC_RULE "default-fcc"
+ #define DF_STANDARD_PRINTER "lpr"
+ #define ANSI_PRINTER "attached-to-ansi"
+ #define DF_ADDRESSBOOK ".addressbook"
+ #define DF_BUGS_FULLNAME "Pine Developers"
+ #define DF_BUGS_ADDRESS "pine-bugs@cac.washington.edu"
+ #define DF_SUGGEST_FULLNAME "Pine Developers"
+ #define DF_SUGGEST_ADDRESS "pine-suggestions@cac.washington.edu"
+ #define DF_PINEINFO_FULLNAME "Pine-Info News Group"
+ #define DF_PINEINFO_ADDRESS "pine-info@cac.washington.edu"
+ #define DF_LOCAL_FULLNAME "Local Support"
+ #define DF_LOCAL_ADDRESS "postmaster"
+ #define DF_KBLOCK_PASSWD_COUNT "1"
+
+ /*----------------------------------------------------------------------
+ The default printer when pine starts up for the first time with no printer
+ ----*/
+ #define DF_DEFAULT_PRINTER ANSI_PRINTER
+
+
+
+ /*----------------------------------------------------------------------
+
+ OS dependencies, BSD/386 Gamma 4.1 version. See also the os-bsi.c files.
+ The following stuff may need to be changed for a new port, but once
+ the port is done, it won't change. At the bottom of the file are a few
+ constants that you may want to configure differently than they
+ are configured, but probably not.
+
+ ----*/
+
+
+
+ /*----------------- Are we ANSI? ---------------------------------------*/
+ #define ANSI /* this is an ANSI compiler */
+
+ /*------ If our compiler doesn't understand type void ------------------*/
+ /* #define void char /* no void in compiler */
+
+
+
+ /*------- Some more includes that should usually be correct ------------*/
+ #include <pwd.h>
+ #include <sys/wait.h>
+ #include <sys/stat.h>
+ #include <fcntl.h>
+ #include <netdb.h>
+
+
+
+ /*----------------- locale.h -------------------------------------------*/
+ #include <locale.h> /* To make matching and sorting work right */
+
+
+
+ /*----------------- time.h ---------------------------------------------*/
+ #include <time.h>
+ /* plain time.h isn't enough on some systems */
+ /* #include <sys/time.h> /* For struct timeval usually in time.h */
+
+
+
+ /*--------------- signal.h ---------------------------------------------*/
+ #include <signal.h> /* sometimes both required, sometimes */
+ /* #include <sys/signal.h> /* only one or the other */
+
+ #define SigType void /* value returned by sig handlers is void */
+ /* #define SigType int /* value returned by sig handlers is int */
+
+ #define POSIX_SIGNALS /* use POSIX signal semantics (ttyin.c) */
+ /* #define SYSV_SIGNALS /* use System-V signal semantics (ttyin.c) */
+
+
+
+
+ /*-------------- A couple typedef's for integer sizes ------------------*/
+ typedef unsigned int usign32_t;
+ typedef unsigned short usign16_t;
+
+
+
+ /*-------------- qsort argument type -----------------------------------*/
+ #define QSType void /* qsort arg is of type void * */
+ /* #define QSType char /* qsort arg is of type char * */
+
+
+
+ /*-------------- fcntl flag to set non-blocking IO ---------------------*/
+ #define NON_BLOCKING_IO O_NONBLOCK /* POSIX style */
+ /* #define NON_BLOCKING_IO FNDELAY /* good ol' bsd style */
+
+
+
+ /*------ how help text is referenced (always char ** on Unix) ----------*/
+ #define HelpType char **
+ #define NO_HELP (char **)NULL
+
+
+
+ /*
+ * Choose one of the following three terminal drivers
+ */
+
+ /*--------- Good 'ol BSD -----------------------------------------------*/
+ /* #include <sgtty.h> /* BSD-based systems */
+
+ /*--------- System V terminal driver -----------------------------------*/
+ /* #define HAVE_TERMIO /* this is for pure System V */
+ /* #include <termio.h> /* Sys V */
+
+ /*--------- POSIX terminal driver --------------------------------------*/
+ #define HAVE_TERMIOS /* this is an alternative */
+ #include <termios.h> /* POSIX */
+
+
+
+ /*-------- Use poll system call instead of select ----------------------*/
+ /* #define USE_POLL /* use the poll() system call instead of select() */
+
+
+
+ /*-------- Use terminfo database instead of termcap --------------------*/
+ /* #define USE_TERMINFO /* use terminfo instead of termcap */
+
+
+
+ /*-- What argument does wait(2) take? Define this if it is a union -----*/
+ /* #define HAVE_WAIT_UNION /* the arg to wait is a union wait * */
+
+
+
+ /*-------- Is window resizing available? -------------------------------*/
+ #if defined(TIOCGWINSZ) && defined(SIGWINCH)
+ #define RESIZING /* SIGWINCH and friends */
+ #endif
+
+
+
+ /*-------- If no vfork, use regular fork -------------------------------*/
+ /* #define vfork fork /* vfork is just a lightweight fork, so can use fork */
+
+
+
+ /*----- The usual sendmail configuration for sending mail on Unix ------*/
+ #define SENDMAIL "/usr/sbin/sendmail"
+ #define SENDMAILFLAGS "-bs -odb -oem" /* send via smtp with backgroud
+ delivery and mail back errors */
+
+
+ /*----------------------------------------------------------------------
+ If no nntp-servers are defined, this program will be used to post news.
+ ----*/
+ #define SENDNEWS "/usr/local/news/lib/inews -h" /* news posting cmd */
+
+
+ /*--------- Program employed by users to change their password ---------*/
+ #define PASSWD_PROG "/usr/bin/passwd"
+
+
+ /*-------------- A couple constants used to size arrays ----------------*/
+ #include <sys/param.h> /* Get it from param.h if available */
+ #undef MAXPATH /* Sometimes defined in param.h differently */
+ #define MAXPATH MAXPATHLEN /* Longest pathname we ever expect */
+ /* #define MAXPATH (512) /* Longest pathname we ever expect */
+ #define MAXFOLDER (64) /* Longest foldername we ever expect */
+
+
+ /*-- Max screen pine will display on. Used to define some array sizes --*/
+ #define MAX_SCREEN_COLS (170)
+ #define MAX_SCREEN_ROWS (200)
+
+
+ /*---- When no screen size can be discovered this is the size used -----*/
+ #define DEFAULT_LINES_ON_TERMINAL (24)
+ #define DEFAULT_COLUMNS_ON_TERMINAL (80)
+
+
+ /*----------------------------------------------------------------------
+ Where to put the output of pine in debug mode. Files are created
+ in the user's home directory and have a number appended to them when
+ there is more than one.
+ ----*/
+ #define DEBUGFILE ".pine-debug"
+
+ /*----------------------------------------------------------------------
+ The number of debug files to save in the user's home diretory. The files
+ are useful for figuring out what a user did when he complains that something
+ went wrong. It's important to keep a bunch around, usually 4, so that the
+ debug file in question will still be around when the problem gets
+ investigated. Users tend to go in and out of Pine a few times and there
+ is one file for each pine invocation
+ ----*/
+ #define NUMDEBUGFILES 4
+
+ /*----------------------------------------------------------------------
+ The default debug level to set (approximate meanings):
+ 1 logs only highest level events and errors
+ 2 logs events like file writes
+ 3
+ 4 logs each command
+ 5
+ 6
+ 7 logs details of command execution (7 is highest to run any production)
+ 8
+ 9 logs gross details of command execution
+ ----*/
+ #define DEFAULT_DEBUG 0
+
+
+
+ /*----------------------------------------------------------------------
+ Various maximum field lengths, probably shouldn't be changed.
+ ----*/
+ #define MAX_FULLNAME (100)
+ #define MAX_NICKNAME (40)
+ #define MAX_ADDRESS (200)
+ #define MAX_NEW_LIST (500) /* Max addrs to be added when creating list */
+ #define MAX_SEARCH (100) /* Longest string to search for */
+ #define MAX_ADDR_EXPN (1000) /* Longest expanded addr */
+ #define MAX_ADDR_FIELD (10000) /* Longest fully-expanded addr field */
+
+
+ #endif /* _OS_INCLUDED */
+
+
diff -ur imap/src/osdep/unix/Makefile
--- imap/src/osdep/unix/Makefile Thu Jul 16 12:12:53 1998
+++ imap/src/osdep/unix/Makefile Sat Aug 1 18:01:04 1998
@@ -186,6 +186,14 @@
BASECFLAGS="-g -O -pipe -DNFSKLUDGE" \
BASELDFLAGS="-lcrypt"
+bso: # OpenBSD
+ $(BUILD) OS=bsi SIGTYPE=psx \
+ SPOOLDIR=/var \
+ ACTIVEFILE=/usr/local/news/lib/active \
+ RSHPATH=/usr/bin/rsh \
+ BASECFLAGS="-O2 -pipe -DNFSKLUDGE" \
+ BASELDFLAGS=
+
bsi: # BSD/i386
$(BUILD) OS=$@ \
MAILSPOOL=/var/mail NEWSSPOOL=/var/news/spool \

View File

@ -1,138 +1,12 @@
*** pine/osdep/os-bsf.ic.orig Fri Jun 14 00:15:47 1996
--- pine/osdep/os-bsf.ic Fri Jun 14 00:57:02 1996
***************
*** 0 ****
--- 1,133 ----
+ ;
+ ; FreeBSD os-fbs.ic file for building os-fbs.c.
+ ;
+ ; Boilerplate header.
+ include(header)
+
+ ; Can_access function. Just calls access. Only one version available.
+ include(canacces)
+
+ ; File_size function. Only one version available.
+ include(filesize)
+
+ ; Is_writable_dir function. Only one version available.
+ include(writ_dir)
+
+ ; Create_mail_dir function. All Unixes use creatdir and DOS
+ ; uses creatdir.dos.
+ include(creatdir)
+
+ ; Rename_file function. All Unixes use rename and DOS uses
+ ; rename.dos. There is also one called rename.hom which
+ ; is currently unused. Hom stands for homemade.
+ include(rename)
+
+ ; Build_path function. All Unixes use bld_path and DOS
+ ; uses bld_path.dos.
+ include(bld_path)
+
+ ; Last_cmpnt function. All Unixes use lstcmpnt and DOS
+ ; uses lstcmpnt.dos.
+ include(lstcmpnt)
+
+ ; Expand_foldername function. All Unixes use expnfldr and DOS
+ ; uses expnfldr.dos.
+ include(expnfldr)
+
+ ; Fnexpand function. All Unixes use fnexpand and DOS
+ ; uses fnexpand.dos.
+ include(fnexpand)
+
+ ; Filter_filename function. All Unixes use fltrname and DOS
+ ; uses fltrname.dos.
+ include(fltrname)
+
+ ; There are several versions of disk quotas. Standard BSD-style quotas
+ ; (Australian) include diskquot. Systems which don't have quotas use
+ ; diskquot.non. Systems which use Sun-style quotas are slightly more
+ ; complicated. They usually require different include files. They are
+ ; set up to include the file sunquota and prepend include file info to
+ ; that. See diskquot.*.
+ include(diskquot.non)
+
+ ; Read_file function. All Unixes use readfile and DOS
+ ; uses readfile.dos.
+ include(readfile)
+
+ ; Create_tmpfile function. This usually just calls the ANSI standard
+ ; tmpfile function if there is one. That is the version in the file tempfile.
+ ; There is also a tempfile.non for Unix systems which don't have a tmpfile
+ ; function already.
+ include(tempfile)
+
+ ; Temp_nam function. This usually just calls the "standard"
+ ; tmpnam function if there is one. That is the version in the file tempnam.
+ include(tempnam)
+
+ ; Coredump function. Version called coredump just calls abort, coredump.fpe
+ ; uses a floating point exception to cause the coredump on some systems.
+ include(coredump)
+
+ ; This is usually a call to gethostname. That version is in the file hostname.
+ ; There is also a version called hostname.una which uses the uname system
+ ; call commonly found in SysV systems. An unused version called
+ ; hostname.hom also exists.
+ include(hostname)
+
+ ; Getdomainnames function. All Unixes use domnames and DOS
+ ; uses domnames.dos.
+ include(domnames)
+
+ ; Canonical_name function. All Unixes use canonicl and DOS
+ ; uses canonicl.dos.
+ include(canonicl)
+
+ ; This file includes two functions, have_job_control and stop_process.
+ ; The Unix version is called jobcntrl and the slightly-different DOS
+ ; version is jobcntrl.dos.
+ include(jobcntrl)
+
+ ; Error_desciption function. All Unixes use err_desc. The version
+ ; called err_desc.dos is the same except that it doesn't declare the
+ ; variable sys_errlist[], which is already declared. There
+ ; is also a version called err_desc.hom which is unused.
+ include(err_desc.dos)
+
+ ; There are six functions in this include. They are get_system_login,
+ ; get_system_fullname, get_system_homedir, get_system_passwd, gcos_name,
+ ; and local_name_lookup. The Unix version is pw_stuff and the dos version
+ ; is pw_stuff.dos. There is also a pw_stuff.fun. Fun stands for funny
+ ; GCOS field. It's currently unused.
+ include(pw_stuff)
+
+ ; Change_passwd function. Unixes use chnge_pw.
+ ; There is also a DOS version.
+ include(chnge_pw)
+
+ ; Mime_can_display function. Only a single version of this now.
+ include(mimedisp)
+
+ ; Most systems have the ANSI fgetpos and fsetpos functions. For those,
+ ; use fgetpos. If a system doesn't have it use fgetpos.non.
+ include(fgetpos)
+
+ ; These functions are similar to popen(), but allow both an input stream
+ ; and an output buffer.
+ include(pipe)
+
+ ; These functions are used to wait on a fork'd child doing our posting
+ include(postreap.wtp)
+
+ ; These functions are used to hand messages off to local mail transport
+ ; and posting agents (typically, "sendmail").
+ include(sendmail)
+
+ ; This function is used to actually spawn the given command (usually dredged
+ ; from mailcap) on the given data file (usually on /tmp).
+ include(execview)
+
+ ; This includes the various routines to support printing
+ include(print)
+
+ ; Debug file maintenance.
+ include(debuging)
diff -ur pine/osdep/makefile.bas
--- pine/osdep/makefile.bas Mon Nov 3 13:11:17 1997
+++ pine/osdep/makefile.bas Sat Aug 1 22:01:37 1998
@@ -4,7 +4,7 @@
RM= rm -f
ALL= os-a32.c os-a41.c os-aix.c os-asv.c \
- os-aux.c os-bs2.c os-bsd.c os-bsi.c \
+ os-aux.c os-bs2.c os-bsd.c os-bsf.c os-bsi.c os-bso.c \
os-cvx.c os-dos.c os-dpx.c os-dyn.c \
os-gen.c os-hpp.c os-isc.c os-lnx.c \
os-lyn.c os-mnt.c os-neb.c os-nxt.c \

View File

@ -1,149 +1,92 @@
*** pine/makefile.bsf.orig Fri Jun 14 00:15:35 1996
--- pine/makefile.bsf Fri Jun 14 00:15:35 1996
***************
*** 0 ****
--- 1,144 ----
+ #
+ # T H E P I N E M A I L S Y S T E M
+ #
+ # Laurence Lundblade and Mike Seibel
+ # Networks and Distributed Computing
+ # Computing and Communications
+ # University of Washington
+ # Administration Building, AG-44
+ # Seattle, Washington, 98195, USA
+ # Internet: lgl@CAC.Washington.EDU
+ # mikes@CAC.Washington.EDU
+ #
+ # Please address all bugs and comments to "pine-bugs@cac.washington.edu"
+ #
diff -urN pico/makefile.bso pico/makefile.bso
--- pico/makefile.bso Wed Dec 31 16:00:00 1969
+++ pico/makefile.bso Sat Aug 1 21:57:52 1998
@@ -0,0 +1,88 @@
+# $Id: patch-ae,v 1.2 1998/08/03 04:11:57 marc Exp $
+#
+# Pine and Pico are registered trademarks of the University of Washington.
+# No commercial use of these trademarks may be made without prior written
+# permission of the University of Washington.
+#
+# Pine, Pico, and Pilot software and its included text are Copyright
+ # 1989-1996 by the University of Washington.
+# 1989-1998 by the University of Washington.
+#
+# The full text of our legal notices is contained in the file called
+# CPYRIGHT, included with this distribution.
+#
+ #
+ # Pine is in part based on The Elm Mail System:
+ # ***********************************************************************
+ # * The Elm Mail System - Revision: 2.13 *
+ # * *
+ # * Copyright (c) 1986, 1987 Dave Taylor *
+ # * Copyright (c) 1988, 1989 USENET Community Trust *
+ # ***********************************************************************
+ #
+ #
+
+
+#
+ # Make file for the Pine mail system for FreeBSD
+ #
+ #
+ # Most commonly fiddled flags for compiler.
+ # Uncomment the setttings desired here
+ #
+# Makefile for OpenBSD shared-lib version of the PINE composer library and
+# stand-alone editor pico. Copied from Makefile.bsf and modified
+
+RM= rm -f
+LN= ln -s
+MAKE= make
+ #OPTIMIZE= -O
+OPTIMIZE= # -O
+PROFILE= # -pg
+DEBUG= -DDEBUG # -g
+
+ IMAPDIR= ../c-client
+ PICODIR= ../pico
+
+ STDLIBES= -ltermlib
+ #LOCLIBES= $(PICODIR)/libpico.a $(IMAPDIR)/c-client.a
+ LOCLIBES= -lpico $(IMAPDIR)/c-client.a
+ LOCLIBDIR= -L$(PICODIR)
+ LIBES= $(EXTRALIBES) $(LOCLIBDIR) $(LOCLIBES) $(STDLIBES)
+
+ STDCFLAGS= -DBSDI -DSYSTYPE=\"BSF\" -DMOUSE
+STDCFLAGS= -DBSDI -DBSDI2 -DPOSIX -DJOB_CONTROL -DMOUSE
+CFLAGS+= $(OPTIMIZE) $(PROFILE) $(DEBUG) $(EXTRACFLAGS) $(STDCFLAGS)
+
+ obj= addrbook.o adrbklib.o args.o context.o filter.o \
+ folder.o help.o helptext.o imap.o init.o mailcap.o mailcmd.o \
+ mailindx.o mailpart.o mailview.o newmail.o other.o pine.o \
+ reply.o screen.o send.o signals.o status.o strings.o ttyin.o \
+ ttyout.o os.o
+# switches for library building
+LIBCMD= ar
+LIBARGS= ru
+RANLIB= ranlib
+
+ cfiles= addrbook.c adrbklib.c args.c context.c filter.c \
+ folder.c help.c helptext.c imap.c init.c mailcap.c mailcmd.c \
+ mailindx.c mailpart.c mailview.c newmail.c other.c pine.c \
+ reply.c screen.c send.c signals.c status.c strings.c ttyin.c \
+ ttyout.c os.c
+LIBS= $(EXTRALIBES) -ltermcap
+
+ pine: $(obj) $(LOCLIBES)
+ echo "char datestamp[]="\"`LC_TIME=C date`\"";" > date.c
+ echo "char hoststamp[]="\"`hostname`\"";" >> date.c
+ $(CC) $(LDFLAGS) $(CFLAGS) -o pine $(obj) date.c $(LIBES)
+OFILES= attach.o basic.o bind.o browse.o buffer.o \
+ composer.o display.o file.o fileio.o line.o pico_os.o \
+ pico.o random.o region.o search.o \
+ window.o word.o
+
+ # this is not part of pine
+ pine-use: pine-use.c
+ $(CC) -o pine-use pine-use.c
+SOFILES= ${OFILES:.o=.so}
+
+HFILES= headers.h estruct.h edef.h efunc.h pico.h os.h
+
+# Need this for the shared library rule to work correctly
+.SUFFIXES: .o .so
+
+#
+# dependencies for the Unix versions of pico and libpico.a
+#
+all: pico pilot
+pico pilot: libpico.a
+
+pico: main.o
+ $(CC) $(CFLAGS) main.o -L. -lpico $(LIBS) -o pico
+
+pilot: pilot.o
+ $(CC) $(CFLAGS) pilot.o -L. -lpico $(LIBS) -o pilot
+
+.c.so: ; $(CC) -fpic -DPIC -c $(CFLAGS) ${@:.so=.c} -o $@
+
+.c.o: ; $(CC) -c $(CFLAGS) $*.c
+
+libpico.a: $(OFILES)
+ $(LIBCMD) $(LIBARGS) libpico.a $(OFILES)
+ $(RANLIB) libpico.a
+
+libpico.so.1.3: $(SOFILES)
+ ld -Bshareable -x -o libpico.so.1.3 $(SOFILES)
+
+clean:
+ $(RM) *.o os.h os.c helptext.c helptext.h
+ cd osdep; make clean; cd ..
+ rm -f *.a *.so.1.3 *.o *.so *~ pico_os.c os.h pico pilot
+ cd osdep; $(MAKE) clean; cd ..
+
+
+ HEADERS= headers.h pine.h os.h helptext.h context.h \
+ $(IMAPDIR)/mail.h $(IMAPDIR)/osdep.h
+
+ addrbook.o: addrbook.c $(HEADERS) adrbklib.h $(PICODIR)/pico.h
+ adrbklib.o: adrbklib.c $(HEADERS) adrbklib.h
+ args.o: args.c $(HEADERS)
+ context.o: context.c $(HEADERS) $(IMAPDIR)/misc.h
+ filter.o: filter.c $(HEADERS) $(PICODIR)/pico.h
+ folder.o: folder.c $(HEADERS)
+ help.o: help.c $(HEADERS)
+ helptext.o: helptext.c
+ imap.o: imap.c $(HEADERS)
+ init.o: init.c $(HEADERS)
+ mailcap.o: mailcap.c $(HEADERS)
+ mailcmd.o: mailcmd.c $(HEADERS) $(PICODIR)/pico.h
+ mailindx.o: mailindx.c $(HEADERS)
+ mailpart.o: mailpart.c $(HEADERS)
+ mailview.o: mailview.c $(HEADERS)
+ newmail.o: newmail.c $(HEADERS)
+ os.o: os.c $(HEADERS)
+ other.o: other.c $(HEADERS) $(PICODIR)/pico.h
+ pine.o: pine.c $(HEADERS)
+ reply.o: reply.c $(HEADERS)
+ screen.o: screen.c $(HEADERS)
+ send.o: send.c $(HEADERS) $(IMAPDIR)/smtp.h $(PICODIR)/pico.h
+ signals.o: signals.c $(HEADERS)
+ status.o: status.c $(HEADERS)
+ strings.o: strings.c $(HEADERS)
+ ttyin.o: ttyin.c $(HEADERS)
+ ttyout.o: ttyout.c $(HEADERS)
+
+ os.h: osdep/os-bsf.h
+os.h: osdep/os-bso.h
+ $(RM) os.h
+ $(LN) osdep/os-bsf.h os.h
+ $(LN) osdep/os-bso.h os.h
+
+ helptext.c: pine.hlp
+ ./cmplhelp.sh < pine.hlp > helptext.c
+pico_os.c: osdep/os-bso.c
+ $(RM) pico_os.c
+ $(LN) osdep/os-bso.c pico_os.c
+
+ helptext.h: pine.hlp
+ ./cmplhlp2.sh < pine.hlp > helptext.h
+$(SOFILES) $(OFILES) main.o pilot.o: $(HFILES)
+pico.o: ebind.h
+
+ os.c: osdep/os-bsf.c
+ $(RM) os.c
+ $(LN) osdep/os-bsf.c os.c
+
+ osdep/os-bsf.c: osdep/bld_path osdep/canacces osdep/canonicl \
+ osdep/chnge_pw osdep/coredump osdep/creatdir \
+ osdep/diskquot.non osdep/domnames osdep/err_desc.dos \
+ osdep/expnfldr osdep/fgetpos osdep/filesize osdep/fltrname \
+ osdep/fnexpand osdep/header osdep/hostname \
+ osdep/jobcntrl osdep/lstcmpnt osdep/mimedisp osdep/pipe \
+ osdep/print osdep/pw_stuff osdep/readfile osdep/debuging \
+ osdep/rename osdep/tempfile osdep/tempnam osdep/writ_dir \
+ osdep/sendmail osdep/execview osdep/os-bsf.ic
+ cd osdep; $(MAKE) includer os-bsf.c; cd ..
+osdep/os-bso.c: osdep/header osdep/unix osdep/read.sel osdep/raw.ios \
+ osdep/spell.unx osdep/term.cap \
+ osdep/os-bso.ic
+ cd osdep; $(MAKE) includer os-bso.c; cd ..

View File

@ -1,37 +1,183 @@
*** imap/ANSI/c-client/Makefile.orig Sat Jun 22 01:25:45 1996
--- imap/ANSI/c-client/Makefile Sun Jan 12 19:41:38 1997
***************
*** 36,43 ****
BINARIES=mail.o bezerk.o mtx.o tenex2.o mbox.o mh.o mmdf.o imap2.o pop3.o \
news.o nntpcunx.o phile.o dummy.o smtp.o nntp.o rfc822.o misc.o \
osdep.o sm_unix.o newsrc.o
! CC=cc
! CFLAGS=$(EXTRACFLAGS)
DEFAULTDRIVERS=imap nntp pop3 mh tenex mtx mmdf bezerk news phile dummy
LN=ln -s
MAKE=make
--- 36,43 ----
BINARIES=mail.o bezerk.o mtx.o tenex2.o mbox.o mh.o mmdf.o imap2.o pop3.o \
news.o nntpcunx.o phile.o dummy.o smtp.o nntp.o rfc822.o misc.o \
osdep.o sm_unix.o newsrc.o
! #CC=cc
! #CFLAGS=$(EXTRACFLAGS)
DEFAULTDRIVERS=imap nntp pop3 mh tenex mtx mmdf bezerk news phile dummy
LN=ln -s
MAKE=make
***************
*** 118,123 ****
--- 118,130 ----
STDPROTO=bezerkproto MAILSPOOL=/var/mail \
ACTIVEFILE=/usr/lib/news/active NEWSSPOOL=/usr/spool/news \
RSHPATH=/usr/bin/rsh CFLAGS="-g -O -pipe -DNFSKLUDGE $(EXTRACFLAGS)"
--- pico/osdep/os-bso.h Wed Dec 31 16:00:00 1969
+++ pico/osdep/os-bso.h Sat Aug 1 18:15:34 1998
@@ -0,0 +1,180 @@
+#ifndef _PICO_OS_INCLUDED
+#define _PICO_OS_INCLUDED
+
+ bsf: # FreeBSD
+ $(MAKE) $(ARCHIVE) OS=bsi EXTRADRIVERS="$(EXTRADRIVERS)" \
+ STDPROTO=bezerkproto MAILSPOOL=/var/mail \
+ ACTIVEFILE=/usr/local/news/lib/active NEWSSPOOL=/var/news \
+ RSHPATH=/usr/bin/rsh CFLAGS="${CFLAGS} -DNFSKLUDGE $(EXTRACFLAGS)" \
+ LDFLAGS=""
cvx: # Convex
$(MAKE) mtest OS=$@ EXTRADRIVERS="$(EXTRADRIVERS)" \
+
+/*----------------------------------------------------------------------
+
+ OS dependencies, OpenBSD version. See also the os-bso.c file.
+ The following stuff may need to be changed for a new port, but once
+ the port is done, it won't change. At the bottom of the file are a few
+ constants that you may want to configure differently than they
+ are configured, but probably not.
+
+ ----*/
+
+
+
+/*----------------- Are we ANSI? ---------------------------------------*/
+#define ANSI /* this is an ANSI compiler */
+
+/*------ If our compiler doesn't understand type void ------------------*/
+/* #define void char /* no void in compiler */
+
+
+#define USE_DIRENT
+#include <sys/types.h>
+#include <sys/dir.h>
+#include <stdlib.h>
+#include <string.h>
+
+
+/*------- Some more includes that should usually be correct ------------*/
+#include <pwd.h>
+#include <sys/wait.h>
+#include <sys/stat.h>
+#include <fcntl.h>
+#include <netdb.h>
+
+
+
+/*----------------- locale.h -------------------------------------------*/
+#include <locale.h> /* To make matching and sorting work right */
+#define collator strucmp
+
+
+
+/*----------------- time.h ---------------------------------------------*/
+#include <time.h>
+/* plain time.h isn't enough on some systems */
+/* #include <sys/time.h> /* For struct timeval usually in time.h */
+
+
+
+/*--------------- signal.h ---------------------------------------------*/
+#include <signal.h> /* sometimes both required, sometimes */
+/* #include <sys/signal.h> /* only one or the other */
+
+#define SigType void /* value returned by sig handlers is void */
+/* #define SigType int /* value returned by sig handlers is int */
+
+#define POSIX_SIGNALS /* use POSIX signal semantics (ttyin.c) */
+/* #define SYSV_SIGNALS /* use System-V signal semantics (ttyin.c) */
+
+#define SIG_PROTO(args) ()
+
+
+
+/*-------------- A couple typedef's for integer sizes ------------------*/
+typedef unsigned int usign32_t;
+typedef unsigned short usign16_t;
+
+
+
+/*-------------- qsort argument type -----------------------------------*/
+#define QSType void /* qsort arg is of type void * */
+/* #define QSType char /* qsort arg is of type char * */
+
+
+
+/*-------------- fcntl flag to set non-blocking IO ---------------------*/
+#define NON_BLOCKING_IO O_NONBLOCK /* POSIX style */
+/* #define NON_BLOCKING_IO FNDELAY /* good ol' bsd style */
+
+
+
+/*
+ * Choose one of the following three terminal drivers
+ */
+
+/*--------- Good 'ol BSD -----------------------------------------------*/
+/* #include <sgtty.h> /* BSD-based systems */
+
+/*--------- System V terminal driver -----------------------------------*/
+/* #define HAVE_TERMIO /* this is for pure System V */
+/* #include <termio.h> /* Sys V */
+
+/*--------- POSIX terminal driver --------------------------------------*/
+#define HAVE_TERMIOS /* this is an alternative */
+#include <termios.h> /* POSIX */
+
+
+
+/* Don't need to define this but do need to use either read.sel or read.pol
+ * in osdep. */
+/*-------- Use poll system call instead of select ----------------------*/
+/* #define USE_POLL /* use the poll() system call instead of select() */
+
+
+
+/*-------- Use terminfo database instead of termcap --------------------*/
+/* #define USE_TERMINFO /* use terminfo instead of termcap */
+#define USE_TERMCAP /* use termcap */
+
+
+
+/*-- What argument does wait(2) take? Define this if it is a union -----*/
+/* #define HAVE_WAIT_UNION /* the arg to wait is a union wait * */
+
+
+
+/*-------- Is window resizing available? -------------------------------*/
+#if defined(TIOCGWINSZ) && defined(SIGWINCH)
+#define RESIZING /* SIGWINCH and friends */
+#endif
+
+
+
+/*-------- If no vfork, use regular fork -------------------------------*/
+/* #define vfork fork /* vfork is just a lightweight fork, so can use fork */
+
+
+
+/*---- When no screen size can be discovered this is the size used -----*/
+#define DEFAULT_LINES_ON_TERMINAL (24)
+#define DEFAULT_COLUMNS_ON_TERMINAL (80)
+#define NROW DEFAULT_LINES_ON_TERMINAL
+#define NCOL DEFAULT_COLUMNS_ON_TERMINAL
+
+
+/*----------------------------------------------------------------------
+
+ Pico OS dependencies.
+
+ ----*/
+
+
+/*
+ * File name separator, as a char and string
+ */
+#define C_FILESEP '/'
+#define S_FILESEP "/"
+
+/*
+ * Place where mail gets delivered (for pico's new mail checking)
+ */
+#define MAILDIR "/var//mail"
+
+/*
+ * What and where the tool that checks spelling is located. If this is
+ * undefined, then the spelling checker is not compiled into pico.
+ */
+#define SPELLER "/usr/local/bin/ispell"
+
+#ifdef MOUSE
+#define XTERM_MOUSE_ON "\033[?1000h" /* DECSET with parm 1000 */
+#define XTERM_MOUSE_OFF "\033[?1000l" /* DECRST with parm 1000 */
+#endif
+
+/*
+ * Mode passed chmod() to make tmp files exclusively user read/write-able
+ */
+#define MODE_READONLY (0600)
+
+/*
+ * Make sys_errlist visible
+ */
+/* extern char *sys_errlist[]; */
+/* extern int sys_nerr; */
+
+
+#endif /* _PICO_OS_INCLUDED */

View File

@ -1,28 +1,18 @@
*** imap/ANSI/c-client/mh.c.orig Wed May 15 13:49:54 1996
--- imap/ANSI/c-client/mh.c Fri Jun 14 00:12:23 1996
***************
*** 808,812 ****
if (sbuf.st_ctime != LOCAL->scantime) {
struct direct **names = NIL;
! long nfiles = scandir (LOCAL->dir,&names,mh_select,mh_numsort);
old = nmsgs ? mail_elt (stream,nmsgs)->data1 : 0;
/* note scanned now */
--- 808,812 ----
if (sbuf.st_ctime != LOCAL->scantime) {
struct direct **names = NIL;
! long nfiles = scandir (LOCAL->dir,&names,mh_select,(void*)mh_numsort);
old = nmsgs ? mail_elt (stream,nmsgs)->data1 : 0;
/* note scanned now */
***************
*** 1050,1054 ****
}
mh_file (tmp,mailbox); /* build file name we will use */
! if (nfiles = scandir (tmp,&names,mh_select,mh_numsort)) {
/* largest number */
last = atoi (names[nfiles-1]->d_name);
--- 1050,1054 ----
}
mh_file (tmp,mailbox); /* build file name we will use */
! if (nfiles = scandir (tmp,&names,mh_select,(void*)mh_numsort)) {
/* largest number */
last = atoi (names[nfiles-1]->d_name);
--- pico/osdep/os-bso.ic Wed Dec 31 16:00:00 1969
+++ pico/osdep/os-bso.ic Sat Aug 1 18:18:55 1998
@@ -0,0 +1,15 @@
+;
+; OpenBSD os-bso.ic file for building os-bso.c.
+;
+; Boilerplate header.
+include(header)
+
+include(unix)
+
+include(spell.unx)
+
+include(read.sel)
+
+include(raw.ios)
+
+include(term.cap)

View File

@ -1,15 +1,139 @@
*** imap/ANSI/c-client/news.c.orig Wed May 15 13:50:02 1996
--- imap/ANSI/c-client/news.c Fri Jun 14 00:12:49 1996
***************
*** 310,314 ****
while (s = strchr (s,'.')) *s = '/';
/* scan directory */
! if ((nmsgs = scandir (tmp,&names,news_select,news_numsort)) >= 0) {
stream->local = fs_get (sizeof (NEWSLOCAL));
LOCAL->dirty = NIL; /* no update to .newsrc needed yet */
--- 310,314 ----
while (s = strchr (s,'.')) *s = '/';
/* scan directory */
! if ((nmsgs = scandir (tmp,&names,news_select,(void*)news_numsort)) >= 0) {
stream->local = fs_get (sizeof (NEWSLOCAL));
LOCAL->dirty = NIL; /* no update to .newsrc needed yet */
--- pine/makefile.bso Wed Dec 31 16:00:00 1969
+++ pine/makefile.bso Sat Aug 1 22:04:07 1998
@@ -0,0 +1,136 @@
+# $Id: patch-ah,v 1.2 1998/08/03 04:12:00 marc Exp $
+#
+# T H E P I N E M A I L S Y S T E M
+#
+# Laurence Lundblade and Mike Seibel
+# Networks and Distributed Computing
+# Computing and Communications
+# University of Washington
+# Administration Building, AG-44
+# Seattle, Washington, 98195, USA
+# Internet: lgl@CAC.Washington.EDU
+# mikes@CAC.Washington.EDU
+#
+# Please address all bugs and comments to "pine-bugs@cac.washington.edu"
+#
+#
+# Pine and Pico are registered trademarks of the University of Washington.
+# No commercial use of these trademarks may be made without prior written
+# permission of the University of Washington.
+#
+# Pine, Pico, and Pilot software and its included text are Copyright
+# 1989-1998 by the University of Washington.
+#
+# The full text of our legal notices is contained in the file called
+# CPYRIGHT, included with this distribution.
+#
+#
+# Pine is in part based on The Elm Mail System:
+# ***********************************************************************
+# * The Elm Mail System - Revision: 2.13 *
+# * *
+# * Copyright (c) 1986, 1987 Dave Taylor *
+# * Copyright (c) 1988, 1989 USENET Community Trust *
+# ***********************************************************************
+#
+#
+
+
+#
+# Make file for the Pine mail system for OpenBSD
+# Copied from makefile.bsf and then modified
+#
+# Most commonly fiddled flags for compiler.
+# Uncomment the setttings desired here
+#
+RM= rm -f
+LN= ln -s
+MAKE= make
+OPTIMIZE= # -O
+PROFILE= # -pg
+DEBUG= -DDEBUG # -g
+
+CCLIENTDIR= ../c-client
+PICODIR= ../pico
+
+# Only need to uncomment next two lines if you run make from this directory
+# and you don't want to supply them as arguments to the make.
+#LDAPLIBS= ../ldap/libraries/libldap.a ../ldap/libraries/liblber.a
+#LDAPCFLAGS= -DENABLE_LDAP -I../ldap/include
+# Object files that need to be rebuilt if ENABLE_LDAP gets defined.
+LDAPOFILES= addrbook.o adrbkcmd.o args.o bldaddr.o init.o \
+ other.o pine.o takeaddr.o
+
+STDLIBS= -ltermlib
+#LOCLIBS= $(PICODIR)/libpico.a $(CCLIENTDIR)/c-client.a
+LOCLIBS= -lpico $(CCLIENTDIR)/c-client.a
+LOCLIBDIR= -L$(PICODIR)
+LIBS= $(EXTRALIBS) $(LOCLIBDIR) $(LOCLIBS) $(LDAPLIBS) $(STDLIBS) \
+ `cat $(CCLIENTDIR)/LDFLAGS`
+
+STDCFLAGS= -DBSDI -DSYSTYPE=\"BSF\" -DMOUSE
+CFLAGS+= $(OPTIMIZE) $(PROFILE) $(DEBUG) $(EXTRACFLAGS) $(LDAPCFLAGS) \
+ $(STDCFLAGS)
+
+OFILES= addrbook.o adrbkcmd.o adrbklib.o args.o bldaddr.o context.o filter.o \
+ folder.o help.o helptext.o imap.o init.o mailcap.o mailcmd.o \
+ mailindx.o mailpart.o mailview.o newmail.o other.o pine.o \
+ reply.o screen.o send.o signals.o status.o strings.o takeaddr.o \
+ os.o
+
+HFILES= headers.h os.h pine.h context.h helptext.h \
+ $(PICODIR)/headers.h $(PICODIR)/estruct.h \
+ $(PICODIR)/edef.h $(PICODIR)/efunc.h \
+ $(PICODIR)/pico.h $(PICODIR)/os.h \
+ $(CCLIENTDIR)/mail.h $(CCLIENTDIR)/osdep.h \
+ $(CCLIENTDIR)/rfc822.h $(CCLIENTDIR)/misc.h
+
+pine: $(OFILES) $(LOCLIBS)
+ echo "char datestamp[]="\"`LC_TIME=C date`\"";" > date.c
+ echo "char hoststamp[]="\"`hostname`\"";" >> date.c
+ $(CC) $(LDFLAGS) $(CFLAGS) -o pine $(OFILES) date.c $(LIBS)
+
+abookcpy: abookcpy.o $(LOCLIBES)
+ $(CC) $(LDFLAGS) $(CFLAGS) -o abookcpy abookcpy.o $(LIBS)
+
+pine-use: pine-use.c
+ $(CC) -o pine-use pine-use.c
+
+clean:
+ $(RM) *.o os.h os.c helptext.c helptext.h pine
+ cd osdep; make clean; cd ..
+
+os.h: osdep/os-bso.h
+ $(RM) os.h
+ $(LN) osdep/os-bso.h os.h
+
+os.c: osdep/os-bso.c
+ $(RM) os.c
+ $(LN) osdep/os-bso.c os.c
+
+$(OFILES): $(HFILES)
+addrbook.o adrbkcmd.o adrbklib.o bldaddr.o takeaddr.o: adrbklib.h
+context.o: $(CCLIENTDIR)/misc.h
+send.o: $(CCLIENTDIR)/smtp.h
+$(LDAPOFILES): $(LDAPLIBS)
+
+helptext.c: pine.hlp
+ ./cmplhelp.sh < pine.hlp > helptext.c
+
+helptext.h: pine.hlp
+ ./cmplhlp2.sh < pine.hlp > helptext.h
+
+osdep/os-bso.c: osdep/bld_path osdep/canacces osdep/canonicl \
+ osdep/chnge_pw osdep/coredump osdep/creatdir \
+ osdep/diskquot.non osdep/domnames osdep/err_desc \
+ osdep/expnfldr osdep/fgetpos osdep/filesize osdep/fltrname \
+ osdep/fnexpand osdep/header osdep/hostname \
+ osdep/jobcntrl osdep/lstcmpnt osdep/mimedisp osdep/pipe \
+ osdep/print osdep/pw_stuff osdep/readfile osdep/debuging.tim \
+ osdep/rename osdep/tempfile osdep/writ_dir \
+ osdep/termin.unx osdep/termout.unx \
+ osdep/termin.gen osdep/termout.gen \
+ osdep/sendmail osdep/execview \
+ osdep/postreap.wtp \
+ osdep/os-bso.ic
+ cd osdep; $(MAKE) includer os-bso.c; cd ..

View File

@ -1,69 +1,292 @@
*** pine/send.c.orig Tue Feb 25 00:57:38 1997
--- pine/send.c Sun Jul 20 02:50:31 1997
***************
*** 5352,5364 ****
body->subtype = cpystr("octet-stream");
}
/*
* Apply maximal encoding regardless of previous
* setting. This segment's either not text, or is
* unlikely to be readable with > 30% of the
* text encoded anyway, so we might as well save space...
*/
! new_encoding = ENCBINARY; /* > 30% 8 bit chars */
}
}
--- 5352,5367 ----
body->subtype = cpystr("octet-stream");
}
+ if(body->type == TYPETEXT)
+ new_encoding = ENC8BIT;
+ else
/*
* Apply maximal encoding regardless of previous
* setting. This segment's either not text, or is
* unlikely to be readable with > 30% of the
* text encoded anyway, so we might as well save space...
*/
! new_encoding = ENCBINARY; /* > 30% 8 bit chars */
}
}
***************
*** 6113,6119 ****
switch (body->encoding) { /* all else needs filtering */
case ENC8BIT: /* encode 8BIT into QUOTED-PRINTABLE */
! gf_link_filter(gf_8bit_qp);
break;
case ENCBINARY: /* encode binary into BASE64 */
--- 6116,6123 ----
switch (body->encoding) { /* all else needs filtering */
case ENC8BIT: /* encode 8BIT into QUOTED-PRINTABLE */
! if(F_OFF(F_ENABLE_8BIT, ps_global))
! gf_link_filter(gf_8bit_qp);
break;
case ENCBINARY: /* encode binary into BASE64 */
***************
*** 6172,6178 ****
sprintf (*dst += strlen (*dst), "Content-Transfer-Encoding: %s\015\012",
body_encodings[(body->encoding == ENCBINARY)
? ENCBASE64
! : (body->encoding == ENC8BIT)
? ENCQUOTEDPRINTABLE
: (body->encoding <= ENCMAX)
? body->encoding : ENCOTHER]);
--- 6176,6182 ----
sprintf (*dst += strlen (*dst), "Content-Transfer-Encoding: %s\015\012",
body_encodings[(body->encoding == ENCBINARY)
? ENCBASE64
! : (body->encoding == ENC8BIT && F_OFF(F_ENABLE_8BIT, ps_global))
? ENCQUOTEDPRINTABLE
: (body->encoding <= ENCMAX)
? body->encoding : ENCOTHER]);
--- pine/osdep/os-bso.h Wed Dec 31 16:00:00 1969
+++ pine/osdep/os-bso.h Sat Aug 1 22:02:35 1998
@@ -0,0 +1,289 @@
+/*----------------------------------------------------------------------
+ $Id: patch-ai,v 1.2 1998/08/03 04:12:01 marc Exp $
+
+ T H E P I N E M A I L S Y S T E M
+
+ Laurence Lundblade and Mike Seibel
+ Networks and Distributed Computing
+ Computing and Communications
+ University of Washington
+ Administration Builiding, AG-44
+ Seattle, Washington, 98195, USA
+ Internet: lgl@CAC.Washington.EDU
+ mikes@CAC.Washington.EDU
+
+ Please address all bugs and comments to "pine-bugs@cac.washington.edu"
+
+
+ Pine and Pico are registered trademarks of the University of Washington.
+ No commercial use of these trademarks may be made without prior written
+ permission of the University of Washington.
+
+ Pine, Pico, and Pilot software and its included text are Copyright
+ 1989-1998 by the University of Washington.
+
+ The full text of our legal notices is contained in the file called
+ CPYRIGHT, included with this distribution.
+
+
+ Pine is in part based on The Elm Mail System:
+ ***********************************************************************
+ * The Elm Mail System - Revision: 2.13 *
+ * *
+ * Copyright (c) 1986, 1987 Dave Taylor *
+ * Copyright (c) 1988, 1989 USENET Community Trust *
+ ***********************************************************************
+
+
+ ----------------------------------------------------------------------*/
+
+#ifndef _OS_INCLUDED
+#define _OS_INCLUDED
+
+#include "../c-client/osdep.h"
+
+
+/*----------------------------------------------------------------------
+
+ This first section has some constants that you may want to change
+ for your configuration. This is the OpenBSD version of the os.h file.
+ Further down in the file are os-dependent things that need to be set up
+ correctly for each os. They aren't interesting, they just have to be
+ right. There are also a few constants down there that may be of
+ interest to some.
+
+ ----*/
+
+/*----------------------------------------------------------------------
+ Define this if you want the disk quota to be checked on startup.
+ Of course, this only makes sense if your system has quotas. If it doesn't,
+ there should be a dummy disk_quota() routine in os-xxx.c so that defining
+ this won't be harmful anyway.
+ ----*/
+#define USE_QUOTAS /* comment out if you never want quotas checked */
+
+
+
+/*----------------------------------------------------------------------
+ Define this if you want to be sure to not allow users to change their
+ From header line when they send out mail. Even if you don't define
+ this the default is to not allow From to be changed. The user would have
+ to edit (by hand) "allow-changing-from" into their .pinerc feature list
+ or the sys-admin would have to include it in the default feature-list.
+ Even after that, the user still has to include it in either their
+ default-composer-hdrs or customized-hdrs to get at it. Instead of
+ defining NEVER_ALLOW_CHANGING_FROM, an easier way of preventing From
+ changing is to put the feature "no-allow-changing-from" in the
+ /usr/local/lib/pine.conf.fixed file.
+ ----*/
+/* #define NEVER_ALLOW_CHANGING_FROM /* probably not needed */
+
+
+
+/*----------------------------------------------------------------------
+ Define this if you want to allow users to turn on the feature that
+ enables sending to take place in a fork()'d child. This may reduce
+ the time on the user's wall clock it takes to post mail.
+ NOTE: You'll also have to make sure the appropriate osdep/postreap.*
+ file is included in the os-*.ic file for your system.
+ ----*/
+/* #define BACKGROUND_POST /* comment out to disable posting from child */
+
+
+
+/*----------------------------------------------------------------------
+ Turn this on if you want to disable the keyboard lock function.
+ ----*/
+/* #define NO_KEYBOARD_LOCK */
+
+
+
+/*----------------------------------------------------------------------
+ Turn this on to trigger QP encoding of sent message text if it contains
+ "From " at the beginning of a line or "." on a line by itself.
+ ----*/
+/* #define ENCODE_FROMS */
+
+
+
+/*----------------------------------------------------------------------
+ Timeouts (seconds)
+ ----*/
+#define DF_MAILCHECK "150" /* How often to check for new mail, by
+ default. There's some expense in doing
+ this so it shouldn't be done too
+ frequently. (Can be set in config
+ file now.) */
+
+/*----------------------------------------------------------------------
+ Check pointing (seconds)
+ ----*/
+#define CHECK_POINT_TIME (7*60) /* Check point the mail file (write changes
+ to disk) if more than CHECK_POINT_TIME
+ seconds have passed since the first
+ change was made. Depending on what is
+ happening, we may wait up to three times
+ this long, since we don't want to do the
+ slow check pointing and irritate the user. */
+
+#define CHECK_POINT_FREQ (12) /* Check point the mail file if there have been
+ at least this many (status) changes to the
+ current mail file. We may wait longer if
+ it isn't a good time to do the checkpoint. */
+
+
+
+/*----------------------------------------------------------------------
+ In scrolling through text, the number of lines from the previous
+ screen to overlap when showing the next screen. Usually set to two.
+ ----*/
+#define DF_OVERLAP "2"
+
+
+
+/*----------------------------------------------------------------------
+ When scrolling screens, the number of lines from top and bottom of
+ the screen to initiate single-line scrolling.
+ ----*/
+#define DF_MARGIN "0"
+
+
+
+/*----------------------------------------------------------------------
+ Default fill column for pine composer and maximum fill column. The max
+ is used to stop people from setting their custom fill column higher than
+ that number. Note that DF_FILLCOL is a string but MAX_FILLCOL is an integer.
+ ----*/
+#define DF_FILLCOL "74"
+#define MAX_FILLCOL 80
+
+
+
+/*----- System-wide config file ----------------------------------------*/
+#define SYSTEM_PINERC "/etc/pine.conf"
+#define SYSTEM_PINERC_FIXED "/etc/pine.conf.fixed"
+
+
+
+/*----------------------------------------------------------------------
+ The default folder names and folder directories (some for backwards
+ compatibility). Think hard before changing any of these.
+ ----*/
+#define DF_DEFAULT_FCC "sent-mail"
+#define DEFAULT_SAVE "saved-messages"
+#define POSTPONED_MAIL "postponed-mail"
+#define POSTPONED_MSGS "postponed-msgs"
+#define INTERRUPTED_MAIL ".pine-interrupted-mail"
+#define DEADLETTER "dead.letter"
+#define DF_MAIL_DIRECTORY "mail"
+#define INBOX_NAME "INBOX"
+#define DF_SIGNATURE_FILE ".signature"
+#define DF_ELM_STYLE_SAVE "no"
+#define DF_HEADER_IN_REPLY "no"
+#define DF_OLD_STYLE_REPLY "no"
+#define DF_USE_ONLY_DOMAIN_NAME "no"
+#define DF_FEATURE_LEVEL "sapling"
+#define DF_SAVE_BY_SENDER "no"
+#define DF_SORT_KEY "arrival"
+#define DF_AB_SORT_RULE "fullname-with-lists-last"
+#define DF_FLD_SORT_RULE "alphabetical"
+#define DF_SAVED_MSG_NAME_RULE "default-folder"
+#define DF_FCC_RULE "default-fcc"
+#define DF_STANDARD_PRINTER "lpr"
+#define ANSI_PRINTER "attached-to-ansi"
+#define DF_ADDRESSBOOK ".addressbook"
+#define DF_BUGS_FULLNAME "Pine Developers"
+#define DF_BUGS_ADDRESS "pine-bugs@cac.washington.edu"
+#define DF_SUGGEST_FULLNAME "Pine Developers"
+#define DF_SUGGEST_ADDRESS "pine-suggestions@cac.washington.edu"
+#define DF_PINEINFO_FULLNAME "Pine-Info News Group"
+#define DF_PINEINFO_ADDRESS "pine-info@cac.washington.edu"
+#define DF_LOCAL_FULLNAME "Local Support"
+#define DF_LOCAL_ADDRESS "postmaster"
+#define DF_KBLOCK_PASSWD_COUNT "1"
+#define DF_REMOTE_ABOOK_HISTORY "3"
+
+/*----------------------------------------------------------------------
+ The default printer when pine starts up for the first time with no printer
+ ----*/
+#define DF_DEFAULT_PRINTER ANSI_PRINTER
+
+
+
+/*----- The usual sendmail configuration for sending mail on Unix ------*/
+#define SENDMAIL "/usr/sbin/sendmail"
+#define SENDMAILFLAGS "-bs -odb -oem" /* send via smtp with backgroud
+ delivery and mail back errors */
+
+
+/*----------------------------------------------------------------------
+ If no nntp-servers are defined, this program will be used to post news.
+ ----*/
+#define SENDNEWS "/usr/local/news/inews -h" /* news posting cmd */
+
+
+/*--------- Program employed by users to change their password ---------*/
+#define PASSWD_PROG "/usr/bin/passwd"
+
+
+/*-------------- A couple constants used to size arrays ----------------*/
+#include <sys/param.h> /* Get it from param.h if available */
+#undef MAXPATH /* Sometimes defined in param.h differently */
+#define MAXPATH MAXPATHLEN /* Longest pathname we ever expect */
+/* #define MAXPATH (512) /* Longest pathname we ever expect */
+#define MAXFOLDER (64) /* Longest foldername we ever expect */
+
+
+/*-- Max screen pine will display on. Used to define some array sizes --*/
+#define MAX_SCREEN_COLS (170)
+#define MAX_SCREEN_ROWS (200)
+
+
+/*----------------------------------------------------------------------
+ Where to put the output of pine in debug mode. Files are created
+ in the user's home directory and have a number appended to them when
+ there is more than one.
+ ----*/
+#define DEBUGFILE ".pine-debug"
+
+/*----------------------------------------------------------------------
+ The number of debug files to save in the user's home diretory. The files
+ are useful for figuring out what a user did when he complains that something
+ went wrong. It's important to keep a bunch around, usually 4, so that the
+ debug file in question will still be around when the problem gets
+ investigated. Users tend to go in and out of Pine a few times and there
+ is one file for each pine invocation
+ ----*/
+#define NUMDEBUGFILES 4
+
+/*----------------------------------------------------------------------
+ The default debug level to set (approximate meanings):
+ 1 logs only highest level events and errors
+ 2 logs events like file writes
+ 3
+ 4 logs each command
+ 5
+ 6
+ 7 logs details of command execution (7 is highest to run any production)
+ 8
+ 9 logs gross details of command execution
+ ----*/
+#define DEFAULT_DEBUG 2
+
+
+
+/*----------------------------------------------------------------------
+ Various maximum field lengths, probably shouldn't be changed.
+ ----*/
+#define MAX_FULLNAME (100)
+#define MAX_NICKNAME (40)
+#define MAX_ADDRESS (500)
+#define MAX_NEW_LIST (500) /* Max addrs to be added when creating list */
+#define MAX_SEARCH (100) /* Longest string to search for */
+#define MAX_ADDR_EXPN (1000) /* Longest expanded addr */
+#define MAX_ADDR_FIELD (10000) /* Longest fully-expanded addr field */
+
+
+#endif /* _OS_INCLUDED */
+
+

View File

@ -1,17 +1,138 @@
*** imap/ANSI/c-client/os_bsi.h.bak Wed Feb 7 12:01:07 1996
--- imap/ANSI/c-client/os_bsi.h Sun Jul 20 01:47:23 1997
***************
*** 36,42 ****
--- 36,47 ----
#include <stdlib.h>
#include <string.h>
#include <sys/types.h>
+ #ifdef __FreeBSD__
+ #include <dirent.h>
+ #define direct dirent
+ #else
#include <sys/dir.h>
+ #endif
#include <sys/uio.h> /* needed for writev() prototypes */
#include <fcntl.h>
#include <syslog.h>
--- pine/osdep/os-bso.ic Wed Dec 31 16:00:00 1969
+++ pine/osdep/os-bso.ic Sat Aug 1 18:18:26 1998
@@ -0,0 +1,135 @@
+;
+; OpenBSD os-bso.ic file for building os-bso.c.
+;
+; Boilerplate header.
+include(header)
+
+; Can_access function. Just calls access. Only one version available.
+include(canacces)
+
+; File_size function. Only one version available.
+include(filesize)
+
+; Is_writable_dir function. Only one version available.
+include(writ_dir)
+
+; Create_mail_dir function. All Unixes use creatdir and DOS
+; uses creatdir.dos.
+include(creatdir)
+
+; Rename_file function. All Unixes use rename and DOS uses
+; rename.dos. There is also one called rename.hom which
+; is currently unused. Hom stands for homemade.
+include(rename)
+
+; Build_path function. All Unixes use bld_path and DOS
+; uses bld_path.dos.
+include(bld_path)
+
+; Last_cmpnt function. All Unixes use lstcmpnt and DOS
+; uses lstcmpnt.dos.
+include(lstcmpnt)
+
+; Expand_foldername function. All Unixes use expnfldr and DOS
+; uses expnfldr.dos.
+include(expnfldr)
+
+; Fnexpand function. All Unixes use fnexpand and DOS
+; uses fnexpand.dos.
+include(fnexpand)
+
+; Filter_filename function. All Unixes use fltrname and DOS
+; uses fltrname.dos.
+include(fltrname)
+
+; There are several versions of disk quotas. Standard BSD-style quotas
+; (Australian) include diskquot. Systems which don't have quotas use
+; diskquot.non. Systems which use Sun-style quotas are slightly more
+; complicated. They usually require different include files. They are
+; set up to include the file sunquota and prepend include file info to
+; that. See diskquot.*.
+include(diskquot.non)
+
+; Read_file function. All Unixes use readfile and DOS
+; uses readfile.dos.
+include(readfile)
+
+; Create_tmpfile function. This usually just calls the ANSI standard
+; tmpfile function if there is one. That is the version in the file tempfile.
+; There is also a tempfile.non for Unix systems which don't have a tmpfile
+; function already.
+include(tempfile)
+
+; Coredump function. Version called coredump just calls abort, coredump.fpe
+; uses a floating point exception to cause the coredump on some systems.
+include(coredump)
+
+; This is usually a call to gethostname. That version is in the file hostname.
+; There is also a version called hostname.una which uses the uname system
+; call commonly found in SysV systems. An unused version called
+; hostname.hom also exists.
+include(hostname)
+
+; Getdomainnames function. All Unixes use domnames and DOS
+; uses domnames.dos.
+include(domnames)
+
+; Canonical_name function. All Unixes use canonicl and DOS
+; uses canonicl.dos.
+include(canonicl)
+
+; This file includes two functions, have_job_control and stop_process.
+; The Unix version is called jobcntrl and the slightly-different DOS
+; version is jobcntrl.dos.
+include(jobcntrl)
+
+; Error_desciption function. All Unixes use err_desc. There
+; is also a version called err_desc.hom which is unused.
+include(err_desc)
+
+; There are six functions in this include. They are get_system_login,
+; get_system_fullname, get_system_homedir, get_system_passwd, gcos_name,
+; and local_name_lookup. The Unix version is pw_stuff and the dos version
+; is pw_stuff.dos. There is also a pw_stuff.fun. Fun stands for funny
+; GCOS field. It's currently unused.
+include(pw_stuff)
+
+; Change_passwd function. Unixes use chnge_pw.
+; There is also a DOS version.
+include(chnge_pw)
+
+; Mime_can_display function. Only a single version of this now.
+include(mimedisp)
+
+; Most systems have the ANSI fgetpos and fsetpos functions. For those,
+; use fgetpos. If a system doesn't have it use fgetpos.non.
+include(fgetpos)
+
+; These functions are similar to popen(), but allow both an input stream
+; and an output buffer.
+include(pipe)
+
+; These functions are used to wait on a fork'd child doing our posting
+include(postreap.wtp)
+
+; These functions are used to hand messages off to local mail transport
+; and posting agents (typically, "sendmail").
+include(sendmail)
+
+; This function is used to actually spawn the given command (usually dredged
+; from mailcap) on the given data file (usually on /tmp).
+include(execview)
+
+; This includes the various routines to support printing
+include(print)
+
+; Debug file maintenance.
+include(debuging.tim)
+
+; Input.
+include(termin.unx)
+include(termin.gen)
+
+; Output.
+include(termout.unx)
+include(termout.gen)

View File

@ -1,50 +1,11 @@
*** imap/Makefile.orig Thu May 30 07:33:10 1996
--- imap/Makefile Sun Jan 12 17:05:17 1997
***************
*** 47,53 ****
--- pico/osdep/makefile.bas.~1~ Wed May 21 14:01:16 1997
+++ pico/osdep/makefile.bas Sun Aug 2 19:21:40 1998
@@ -4,7 +4,7 @@
RM= rm -f
# ANSI compiler ports. Note for SCO you may have to set LN to "copy -rom"
! a32 a41 aix bsi d-g drs lnx lyn mct mnt neb nxt osf sc5 sco sgi slx sos:
$(MAKE) build SYSTYPE=ANSI OS=$@
# Non-ANSI compiler ports.
--- 47,53 ----
# ANSI compiler ports. Note for SCO you may have to set LN to "copy -rom"
! a32 a41 aix bsi bsf d-g drs lnx lyn mct mnt neb nxt osf sc5 sco sgi slx sos:
$(MAKE) build SYSTYPE=ANSI OS=$@
# Non-ANSI compiler ports.
***************
*** 82,87 ****
--- 82,90 ----
bs2:
$(MAKE) build SYSTYPE=ANSI OS=bsi
+ bsf:
+ $(MAKE) build OS=bsf PROCESS=an
+
pt1:
$(MAKE) build SYSTYPE=non-ANSI OS=ptx
***************
*** 92,99 ****
$(LN) $(SYSTYPE) systype
cd $(SYSTYPE)/c-client; $(MAKE) $(OS)
cd $(SYSTYPE)/ms;$(MAKE)
! cd $(SYSTYPE)/ipopd;$(MAKE)
! cd $(SYSTYPE)/imapd;$(MAKE)
clean:
$(RM) systype
--- 95,102 ----
$(LN) $(SYSTYPE) systype
cd $(SYSTYPE)/c-client; $(MAKE) $(OS)
cd $(SYSTYPE)/ms;$(MAKE)
! # cd $(SYSTYPE)/ipopd;$(MAKE)
! # cd $(SYSTYPE)/imapd;$(MAKE)
clean:
$(RM) systype
ALL= os-a32.c os-a41.c os-aix.c os-asv.c \
- os-aux.c os-bsd.c os-bsi.c \
+ os-aux.c os-bs2.c os-bsd.c os-bsf.c os-bsi.c os-bso.c \
os-cvx.c os-dos.c os-dpx.c os-dyn.c \
os-gen.c os-hpp.c os-isc.c os-lnx.c \
os-lyn.c os-mnt.c os-neb.c os-nxt.c \

View File

@ -1,55 +1,15 @@
*** build.orig Tue May 14 23:22:47 1996
--- build Sun Jan 12 20:18:50 1997
***************
*** 167,180 ****
cd $PHOME/bin
rm -f pine mtest imapd pico pilot
if [ -s ../pine/pine ] ; then ln ../pine/pine pine ; fi
- if [ -s ../c-client/mtest ] ; then ln ../c-client/mtest mtest ; fi
- if [ -s ../imapd/imapd ] ; then ln ../imapd/imapd imapd ; fi
if [ -s ../pico/pico ] ; then ln ../pico/pico pico ; fi
if [ -s ../pico/pilot ] ; then ln ../pico/pilot pilot ; fi
cd $PHOME
echo ''
echo "Links to executables are in bin directory:"
- size bin/pine bin/mtest bin/imapd bin/pico bin/pilot
echo "Done"
;;
--- pine/pine.hlp.~1~ Tue Jul 21 15:04:04 1998
+++ pine/pine.hlp Sun Aug 2 20:01:24 1998
@@ -750,9 +750,9 @@
--- 167,179 ----
cd $PHOME/bin
rm -f pine mtest imapd pico pilot
if [ -s ../pine/pine ] ; then ln ../pine/pine pine ; fi
if [ -s ../pico/pico ] ; then ln ../pico/pico pico ; fi
if [ -s ../pico/pilot ] ; then ln ../pico/pilot pilot ; fi
+ if [ -s ../pico/libpico.so.1.3 ] ;
+ then ln ../pico/libpico.so.1.3 libpico.so.1.3 ; fi
cd $PHOME
echo ''
echo "Links to executables are in bin directory:"
echo "Done"
;;
executable &lt;Unix search path&gt;/pine
persnl cfg ~/.pinerc
- global cfg /usr/local/lib/pine.conf
- fixed cfg /usr/local/lib/pine.conf.fixed
- local help /usr/local/lib/pine.info
+ global cfg /etc/pine.conf
+ fixed cfg /etc/pine.conf.fixed
+ local help /usr/local/share/doc/pine/
***************
*** 185,194 ****
make clean
echo "Cleaning Pine"
cd $PHOME/pine
! make -f makefile.ult clean
echo "Cleaning pico"
cd $PHOME/pico
! make $makeargs -f makefile.ult clean
echo "Done"
cd $PHOME
;;
--- 184,193 ----
make clean
echo "Cleaning Pine"
cd $PHOME/pine
! make -f makefile.bsf clean
echo "Cleaning pico"
cd $PHOME/pico
! make $makeargs -f makefile.bsf clean
echo "Done"
cd $PHOME
;;
interrupted ~/.pine-interrupted-mail
debug ~/.pine-debugN

View File

@ -1,19 +0,0 @@
*** pine/pine.h.bak Thu Jul 11 22:15:44 1996
--- pine/pine.h Tue Dec 3 20:52:56 1996
***************
*** 2085,2091 ****
} ATABLE_S;
! #define TAG_EMBED '\377' /* Announces embedded data in text string */
#define TAG_INVON '\001' /* Supported character attributes */
#define TAG_INVOFF '\002'
#define TAG_BOLDON '\003'
--- 2085,2091 ----
} ATABLE_S;
! #define TAG_EMBED '\001' /* Announces embedded data in text string */
#define TAG_INVON '\001' /* Supported character attributes */
#define TAG_INVOFF '\002'
#define TAG_BOLDON '\003'

View File

@ -9,7 +9,7 @@ and a POP3 server.
If you want to use the spell checking feature of pine, set the
environment variable SPELL to "/usr/local/bin/ispell -l".
An optional configuration file "pine.conf" can be put into /usr/local/etc
An optional configuration file "pine.conf" can be put into /etc
to set system wide defaults. The format of this file is identical to the
.pinerc file that is auto-generated by pine in your home directory.

View File

@ -1,3 +1,5 @@
@cwd /usr/local
@name pine-4.02
bin/pico
bin/pilot
bin/pine
@ -7,7 +9,11 @@ bin/pgpsign
man/man1/pico.1
man/man1/pilot.1
man/man1/pine.1
@exec mkdir -p %D/share/doc/pine
share/doc/pine/tech-notes.txt
share/doc/pine/dot.pinerc.pgp.sample
@dirrm share/doc/pine
@unexec echo ""
@unexec echo "*** to completly delete this package issue the command:"
@unexec echo "*** rm -f /etc/pine.conf /etc/pine.conf.fixed"
@unexec echo "*** when logged in as root"
@unexec echo ""