Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!watmath!clyde!cbatt!cbosgd!soma!usenet From: usenet@soma.UUCP Newsgroups: net.sources.bugs,comp.mail.uucp Subject: uumail 4.1 patch #1 Message-ID: <2898@soma.bcm.tmc.edu> Date: Mon, 2-Feb-87 17:08:45 EST Article-I.D.: soma.2898 Posted: Mon Feb 2 17:08:45 1987 Date-Received: Tue, 3-Feb-87 06:37:10 EST Reply-To: sob@soma.UUCP (Stan Barber) Distribution: world Organization: Neurology, Baylor College of Medicine, Houston, Tx Lines: 352 Keywords: uumail 4.1 patch Configure REQUIRED Xref: watmath net.sources.bugs:1170 comp.mail.uucp:217 System: uumail version 4.1 Patch #: 1 Priority: REQUIRED Subject: First line of message folloing From_ line eaten; Configure fixes. From: gnu@hoptoad.UUCP Description: Bug 1: Putfrom() reads the From_ lines and build a single From_ line from them until it runs into something that is not a From_line. It throws this line away. Bug 2: Configure did not allow you to specify flags on the LOCALMAIL program. Repeat by: Bug 1: Take any message and run it though uumail with debugging. Then look at the UUMAIL.TEST file. Notice that the first line following the From_ line is missing. Bug 2: Configure does not ask for local flags. Fix: Bug 1: Reset the file pointer to the point it was after the last From_ line was detected. Bug 2: Update Configure to ask about flags for the local mailer. From rn, say "| patch -d DIR", where DIR is your rn source directory. Outside of rn, say "cd DIR; patch _file,buf,strlen(buf)); ! fflush(outto); } --- 764,775 ----- strcat(buf,"\n"); /* if there is no output file (no headers), exit */ if (outto == NULL) return; ! (void) write(outto->_file,buf,strlen(buf)); ! /* now reset the input file to the beginning of the header ! * following the "From " lines ! */ ! (void) fseek(into,offset,0); ! (void) fflush(outto); } Index: Configure Prereq: 1.11 *** /tmp/,RCSt1009257 Mon Feb 2 15:44:59 1987 --- /tmp/,RCSt2009257 Mon Feb 2 15:45:01 1987 *************** *** 3,9 # If these # comments don't work, trim them. Don't worry about the other # shell scripts, Configure will trim # comments from them for you. # ! # $Header: Configure,v 1.11 86/12/15 13:27:39 sob Exp $ # # $Log: Configure,v $ # Revision 1.11 86/12/15 13:27:39 sob --- 3,9 ----- # If these # comments don't work, trim them. Don't worry about the other # shell scripts, Configure will trim # comments from them for you. # ! # $Header: Configure,v 1.12 87/02/02 15:44:21 sob Exp $ # # $Log: Configure,v $ # Revision 1.12 87/02/02 15:44:21 sob *************** *** 6,11 # $Header: Configure,v 1.11 86/12/15 13:27:39 sob Exp $ # # $Log: Configure,v $ # Revision 1.11 86/12/15 13:27:39 sob # Fixed useknownhosts bug # --- 6,14 ----- # $Header: Configure,v 1.12 87/02/02 15:44:21 sob Exp $ # # $Log: Configure,v $ + # Revision 1.12 87/02/02 15:44:21 sob + # Added localflags option + # # Revision 1.11 86/12/15 13:27:39 sob # Fixed useknownhosts bug # *************** *** 78,83 resolve='' mailer='' localmail='' internet='' returnmail='' bindir='' --- 81,87 ----- resolve='' mailer='' localmail='' + localflags='' internet='' returnmail='' bindir='' *************** *** 1018,1023 esac done : determine where manual pages go --- 1022,1032 ----- esac done + : Do we need any special flags when calling the localmailer + case "$localflags" in + '') dflt=none;; + *) dflt=$localflags;; + esac $echo $n "Please enter any special flags needed when calling $localmail: [$dflt] $c" . myread *************** *** 1019,1024 done : determine where manual pages go case "$mansrc" in --- 1028,1042 ----- *) dflt=$localflags;; esac + $echo $n "Please enter any special flags needed when calling $localmail: [$dflt] $c" + . myread + case "$ans" in + '') ans='';; + esac + case $ans in + -*)localflags=$ans;; + *)localflags='';; + esac *************** *** 1020,1025 : determine where manual pages go case "$mansrc" in '') --- 1038,1046 ----- *)localflags='';; esac + + + : determine where manual pages go case "$mansrc" in '') *************** *** 1586,1591 ndiro='$ndiro' mailer='$mailer' localmail='$localmail' internet='$internet' returnmail='$returnmail' bindir='$bindir' --- 1607,1613 ----- ndiro='$ndiro' mailer='$mailer' localmail='$localmail' + localflags='$localflags' internet='$internet' returnmail='$returnmail' bindir='$bindir' *************** *** 1730,1736 #define MAILER "$mailer" /* local mail delivery program */ ! #define LOCALMAIL "$localmail %s" /* local mail directory */ #define MAILDIR "$maildir" --- 1752,1758 ----- #define MAILER "$mailer" /* local mail delivery program */ ! #define LOCALMAIL "$localmail $localflags %s" /* local mail directory */ #define MAILDIR "$maildir" Stan uucp:{shell,rice,cuae2}!soma!sob Opinions expressed here Olan domain:sob@rice.edu or sob@soma.bcm.tmc.edu are ONLY mine & Barber CIS:71565,623 BBS:(713)790-9004 noone else's.