1 2/16/81 progs Dave Yost:
2 Fixed folder so that it checks value from m_gmsg and complains
3 if the folder is unreadable. All other commands that call it
4 do this, so it was simply an error of omission.
6 2/16/81 subs Dave Yost:
7 m_gmsg.c was testing return value of malloc against -1.
10 2/16/81 subs Phyllis Kantar
11 trimcpy.c was scanning profile fields from the left and
12 truncating ('\0') at the first newline. It now zaps
13 the trailing newline and replaces embedded NL's with blanks.
16 Fixed annotation so that it annotates only "To:" and "cc:"
19 if(uleq(name, "to") || uleq(name, "cc") == 0) {
21 if(uleq(name, "to") || uleq(name, "cc") ) {
24 Changed /etc/mh/distcomps to read "Distribute*"
25 instead of "Distribution*"
27 Also, fixed bug in annotate.c:
28 fprintf(tmp, "%s: %*s", comp, cp-sp, sp);
30 fprintf(tmp, "%s: %*.*s", comp, cp-sp, cp-sp, sp);
32 Note: none of these fixes affects repl
36 3/23/81 progs jdg/day: changed deliver.c to check for effective uid and gid
37 while it is preventing forgery of mail. Needed for uucp, when
38 uucico is invoked by a real person instead of uucp itself.
40 4/7/81 progs Dave-Yost
41 Fixed scansub.c to check for HOSTNAME instead of "rand-unix".
42 A little portability, please.
44 4/13/81 progs Dave-Yost
45 Changed deliver to put out a date format like
46 Monday, 13 Apr 1981 20:46-PST
48 13 Apr 1981 at 2046-PST
50 4/13/81 subs Dave Yost
51 modified m_edit.c to exec the editor with altmsg as an extra
52 argument, in case the editor can use it as an alt file.
54 5/7/81 progs Dave-Yost
55 Changed conflict.c and conflict.8 to ignore /usr/spool/mail
56 files starting with '.'.
58 5/7/81 progs Dave-Yost
59 conflict isn't smart about the fact that there can be
60 more than one login name on the same uid. This should
64 Changed /usr/news/.mh_receive to grep for
72 However, 'news' will still break when there are multiple news folders
73 in the 'To:' field(s)!
76 Changed inc.c and scansub.c so that mail is not lost when
77 the message number exceeds 999.
80 mh.h has #define MAXFOLDER 999 and hopefully all occurrences
81 of that magic number have been changed to MAXFOLDER.
84 Fixed pick and file so they won't go beyond 999 (MAXFOLDER)
85 into a folder. file.c and pick.c had virtually identical
86 copies of the same routine to file a message. Took it out and
87 put it into subs as m_file(), and changed it to have
88 several arguments so there are no connections via globals.
89 Also created ../folder.h which is included by pick.c, file.c,
93 Changed the message-name parser (../subs/m_convert.c) to
94 limit message number arguments to 999 (MAXFOLDER). Thus if you
95 say 'scan 800-10000', this will be interpreted as 'scan 800-999'
98 Some very minor changes to satisfy lint.
101 Did a make install of all the stuff changed in the last
105 fixed inc so that "inc -nochangecur" doesn't display a spurious '+'
106 on the 1st incorporated msg.
110 Fixed rmail to match graphics. On the Vax, it failed to construct
111 a From: field when the next hop is Arpanet if there was a remote
116 Fixed rmail to block uucp-to-arpanet mail when the originating
117 host is not a Rand sysname. It also returns mail to the sender
118 when this condition occurs.
120 rmail now recognizes "at" as well as "@".
122 rmail no longer compares headers against a list of legal headers;
123 rather it tests for proper form "<63-chars-or-less>:"
125 m_getfld.c now tests for ':' BEFORE it tests for header length
128 8/10/81 progs strings day:
130 remove hostname.c from mh/strings.a. It was used only by
131 deliver.c for constructing a msgid; now it uses
132 HOSTNAME (from <whoami.h>)
135 Put rhosts[] decl in mh.h and added rhosts.c to strings.a
136 rmail is only thing that references it just now.
139 Added rand proprietary notice to all .c, .h, and Makefiles.
140 Ownership and date on all files left unchanged.
143 Combined */Log into this file
146 Added uucp addresses to deliver's debug printout.
150 Fixed adrparse so that it accepts multiple "at"s in an address:
151 a!b!c at d at e at f ==> (a!b!c at d at e) at f
153 Changed deliver to set a new process group when it is called
154 with the -deliver switch--so that if it sends an interrupt to pid
155 0, it's parent (e.g., srvrftp) won't get blown away.
156 Note that deliver now must be loaded with the jobs library (-ljobs),
157 to access setpgrp(). I added "#define VMUNIX" to mh.h,
158 and #ifdef'd the call to setpgrp.
160 Fixed deliver to allow 120 secs (instead of only 30)
161 for a user's .mh_receive to complete.
164 Fixed "folder" so you can now have up to 300 folders.
167 fixed scansub.c to incorporate illegal messages correctly:
168 Bug: If the bad message has the bobo in its last line,
169 then inc says [No mail incorporated]
170 FIX: if (state == BODYEOF || state == FILEEOF)
172 Bug: spurious chars printed in the body of the bad msg.
173 FIX: a) \n after the bad component
174 b) if(scnout && state != FILEEOF)
178 fixed mhl bug; it no longer bombs on "mhl: -option " profile
180 procargs(ap); /* Old */
181 procargs(profargs); /* New */
184 changed scansub to replace '\f' with blank
187 Fixed pick to say '1 hit' instead of `1 hits'.
190 Accidently did a "make" in /usr/src/cmd/mh on Nov 18. Most
191 programs reloaded because the new "#define VMUNIX" in mh.h caused
192 strings.a to be remade. Did not install any of it. err file moved
196 o Added scansub dependencies to Makefile
197 o Added rmail.c and scansub.c to CFILES in Makefile
198 o Alphabetized dependency list in Makefile
199 o ??Are all the Nov 18 binaries suspect? The Aug 18 .o files?
201 Nov 18 prompter had strange behavior (didn't respond to <DEL>,
202 didn't display error messages) which disappeared when
206 o Added cs-rand to rhosts.c.
207 o Re-make all of MH (save old .o files in DOT.o.01072;
208 save old executables in SAVE.01072)
211 Fixed scansub.c to terminate a short message body with ">>"
215 Changed deliver.c, repl.c, send.c to require all 5 characters
221 mh.h: added SELECT_EMPTY flag
224 mh.h change char to extern char for strings in strings/strings.a
225 progs: install my new inc, scan, and scansub with -time and -numdate
226 progs: change show.c so it includes mhl.c and calls it if
227 showproc is mhl, rather than execing it.
230 Changed adrparse to return 0 in case of error, instead of exiting.
231 Changed repl to test for adrparse's return value and do the
232 right thing. It constructs a reply skeleton, omitting the
233 offending addresses from the header. Instead, unparsable
234 addresses are listed in the skeleton body. Note, repl
235 normally takes the sender:'s (or from:'s) host as the default
236 to append to hostless addressees. In the new version,
237 if the sender (or from) field was unparsable, the default
239 Changed deliver to test for adrparse's 0 return value, and exit.
242 Changed the functions msg_convert() and msg_conv() to convert()
243 and conv(), respectively, to maintain 8-char uniqueness.
244 Linked new source into /usr/dist/1.7
247 scansub.c: renamed the structure tag 'zone' to 'tzone'
248 for compatibility with lesser C compilers (?). (Anyway,
249 it wouldn't load on the 11/45 under 2.8bsd without that change.)
250 Delete unused reference to locv().
251 Linked new source into /usr/dist/1.7
254 scansub.c: no longer reads the full message when called
256 Linked new source into /usr/dist/1.7
259 rmail: now tacks on Arpa-style date to dateless uucp mail.
260 Takes date from oldest uucp-From line. Assumes uudate is
264 Fixed bug in deliver that caused mail addresses uuhost1!joe,
265 uuhost2!joe to look like duplicates. Fix: if uuaddress, compare
266 host names instead of host numbers.
271 Until now it couldn't handle "cc: news.topic", or "To: news.topicA,
272 news.topicB", or news topics that aren't explicitly in the message
275 Deliver: fixed it so that aliasing keeps a handle on the
276 1st (local) alias. Now deliver can pass this string to
277 /usr/news/.mh_receive as an argument, rather than have .mh_receive
278 grep through the message for the news topic.
279 Deliver: changed aliasing so that, once it finds a match to an
280 alias whose form is <string>*, it *continues* comparing addresses.
282 Deliver: changed it to fflush(stdout) after every printf() sans '\n'.
285 All references to anoyes were changed from char *
286 to extern struct swit.
288 mh.h: delete hostname, layout; add mailproc; change mypath
289 from extern char * to char *.
291 progs/Makefile: move "chmod 777 MHTMP" down to installroot.
293 Deliver: a bug that caused the temp files in /usr/tmp/mh
294 to hang around whenever there was a local delivery error
297 if(!debug && rmflg > 1) ==> if(!debug && rmflg > 0)
299 m_gmsg.c: WAS FIXED TO USE FREAD INSTEAD OF READ on the mail