summaryrefslogtreecommitdiff
path: root/mail/pine
diff options
context:
space:
mode:
authorexplorer <explorer>1999-01-31 10:47:37 +0000
committerexplorer <explorer>1999-01-31 10:47:37 +0000
commitb90d1d3303b28109e2a454016f2d16d8fcdae167 (patch)
tree08998ea9ad1267f9f253d595fb2247a222c4314c /mail/pine
parentddc171e2e7d4af648924ab8b86c8bb6a4c129d0a (diff)
downloadpkgsrc-b90d1d3303b28109e2a454016f2d16d8fcdae167.tar.gz
Teach pine about $MAIL. It will be used if set, so the sysadmin/user
can override where mail is stored.
Diffstat (limited to 'mail/pine')
-rw-r--r--mail/pine/patches/patch-am16
1 files changed, 16 insertions, 0 deletions
diff --git a/mail/pine/patches/patch-am b/mail/pine/patches/patch-am
new file mode 100644
index 00000000000..95839040409
--- /dev/null
+++ b/mail/pine/patches/patch-am
@@ -0,0 +1,16 @@
+--- imap/src/osdep/unix/env_unix.c.sma Sun Jan 31 02:25:32 1999
++++ imap/src/osdep/unix/env_unix.c Sun Jan 31 02:27:14 1999
+@@ -547,6 +547,13 @@
+ char *sysinbox ()
+ {
+ char tmp[MAILTMPLEN];
++ char *t;
++
++ if (!sysInbox) {
++ t = getenv("MAIL");
++ if (t != NULL)
++ sysInbox = cpystr(t);
++ }
+ if (!sysInbox) { /* initialize if first time */
+ sprintf (tmp,"%s/%s",MAILSPOOL,myusername ());
+ sysInbox = cpystr (tmp); /* system inbox is from mail spool */