From djb-qmail-return-12571-nelson-l-6ca615d95fcb76f5bb3afdc1a6ef9814=crynwr.com@koobera.math.uic.edu Fri Jan 30 10:32:01 1998 X-VM-v5-Data: ([nil nil nil nil nil nil nil nil nil] [nil nil nil nil nil nil nil nil nil nil nil nil "^From:" nil nil nil nil nil nil nil nil] nil) Return-Path: Delivered-To: nelson-l-6ca615d95fcb76f5bb3afdc1a6ef9814@desk.crynwr.com Received: (qmail 22877 invoked from network); 30 Jan 1998 10:32:01 -0000 Received: from ns.crynwr.com (192.203.178.14) by desk.crynwr.com with SMTP; 30 Jan 1998 10:32:01 -0000 Received: (qmail 13749 invoked by uid 500); 30 Jan 1998 10:31:38 -0000 Delivered-To: nelson-l-6ca615d95fcb76f5bb3afdc1a6ef9814@crynwr.com Received: (qmail 13745 invoked by uid 0); 30 Jan 1998 10:31:37 -0000 Received: from cruncher.math.uic.edu (131.193.178.241) by pdam.crynwr.com with SMTP; 30 Jan 1998 10:31:37 -0000 Received: (qmail 21407 invoked by uid 1001); 30 Jan 1998 10:25:17 -0000 Mailing-List: contact djb-qmail-help@koobera.math.uic.edu; run by ezmlm Precedence: bulk Delivered-To: mailing list djb-qmail@koobera.math.uic.edu Received: (qmail 21402 invoked from network); 30 Jan 1998 10:25:17 -0000 Received: from koobera.math.uic.edu (qmailr@131.193.178.247) by cruncher.math.uic.edu with SMTP; 30 Jan 1998 10:25:17 -0000 Received: (qmail 16271 invoked by uid 666); 30 Jan 1998 10:31:44 -0000 Delivered-To: djb-qmail@koobera.math.uic.edu Received: (qmail 16267 invoked from network); 30 Jan 1998 10:31:41 -0000 Received: from rucus.ru.ac.za (qmailr@146.231.29.2) by koobera.math.uic.edu with SMTP; 30 Jan 1998 10:31:41 -0000 Received: (qmail 359 invoked by uid 283); 30 Jan 1998 02:28:08 -0000 Message-ID: <19980130022808.358.qmail@rucus.ru.ac.za> X-Mailer: ELM [version 2.4ME+ PL38 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit From: keith@rucus.ru.ac.za To: djb-qmail@koobera.math.uic.edu Subject: Elm patches Date: Fri, 30 Jan 1998 04:28:08 +0200 (SAT) Hi there I've made some patches for elm2.4.ME+.38 that change the default mail directory from spooldirectory/username to homedir/Mailbox. The first patch needs to be applied in the src directory, and the second in the filter directory. This one doesn't really help too much, since the MAIL environment variable can be set. This second patch helped to get filter working on our system without having symbolic links from /var/mail to a whole bunch of home directories. I noticed something odd about this version of elm. The line in the Makefile where the stuff in the filter directory gets compiled is commented out, so you have to go into the filter directory and type "make all" yourself. I hope these are useful to someone. - Keith Patch1: ----------------- cut here ----------------------------------- *** init.c Sun Oct 5 14:56:17 1997 --- /home/keith/qmail/mutt/elm2.4.ME+.38/src/init.c Fri Jan 30 03:31:13 1998 *************** *** 336,342 **** * use then mailhome if it is not found */ if ((cp = getenv("MAIL")) == NULL) ! sprintf(defaultfile, "%s%s", mailhome, username); else strfcpy(defaultfile, cp, sizeof defaultfile); --- 336,342 ---- * use then mailhome if it is not found */ if ((cp = getenv("MAIL")) == NULL) ! sprintf(defaultfile, "%s%s", home, "/Mailbox"); else strfcpy(defaultfile, cp, sizeof defaultfile); ----------------- cut here ----------------------------------- Patch2: ----------------- cut here ----------------------------------- *** actions.c Sun Oct 5 14:56:06 1997 --- /home/keith/qmail/mutt/elm2.4.ME+.38/filter/actions.c Fri Jan 30 01:02:07 1998 *************** *** 179,185 **** /** OTHERWISE it is to the current user... **/ ! sprintf(mailbox, "%s%s", mailhome, username); if (!lock()) { if (outfd != NULL) { --- 179,185 ---- /** OTHERWISE it is to the current user... **/ ! sprintf(mailbox, "%s%s", home, "/Mailbox"); if (!lock()) { if (outfd != NULL) { *** lock.c Sun Oct 5 14:56:16 1997 --- /home/keith/qmail/mutt/elm2.4.ME+.38/filter/lock.c Fri Jan 30 02:36:12 1998 *************** *** 153,160 **** int attempts = 0, ret; #ifdef USE_DOTLOCK_LOCKING /* { USE_DOTLOCK_LOCKING */ ! strfcpy(dotlock_name,mailhome, sizeof dotlock_name); ! strfcat(dotlock_name,username, sizeof dotlock_name); lockfile = mk_lockname(dotlock_name); #ifdef PIDCHECK /** first, try to read the lock file, and if possible, check the pid. --- 153,160 ---- int attempts = 0, ret; #ifdef USE_DOTLOCK_LOCKING /* { USE_DOTLOCK_LOCKING */ ! strfcpy(dotlock_name,home, sizeof dotlock_name); ! strfcat(dotlock_name,"/Mailbox", sizeof dotlock_name); lockfile = mk_lockname(dotlock_name); #ifdef PIDCHECK /** first, try to read the lock file, and if possible, check the pid. ----------------- cut here ----------------------------------- -- Keith Burdis - BSc Honours (Com Sci) - Rhodes University, South Africa Email : keith@rucus.ru.ac.za WWW : http://www.rucus.ru.ac.za/~keith/ IRC : Panthras JAPH Standard disclaimer. ---