1: /*
   2: **  Sendmail
   3: **  Copyright (c) 1983  Eric P. Allman
   4: **  Berkeley, California
   5: **
   6: **  Copyright (c) 1983 Regents of the University of California.
   7: **  All rights reserved.  The Berkeley software License Agreement
   8: **  specifies the terms and conditions for redistribution.
   9: */
  10: 
  11: #ifndef lint
  12: static char SccsId[] = "@(#)version.c	5.51 (Berkeley) 5/2/86";
  13: #endif not lint
  14: 
  15: char    Version[] = "5.51";
  16: 
  17: # ifdef COMMENT
  18: 
  19: SCCS/s.version.c:
  20: 
  21: D 5.51  86/05/02 16:28:28   bloom   473 472 00000/00000/00015
  22: statistics structure moved to its own header file so it may be used by
  23: aux/mailstats
  24: 
  25: D 5.50  86/04/17 20:18:12   eric    472 471 00000/00000/00015
  26: don't ignore aliasing during queue runs in conjunction with -bd
  27: 
  28: D 5.49  86/04/02 16:02:31   eric    471 470 00000/00000/00015
  29: don't run around clearing EF_FATALERRS -- this often applies to another
  30: address.  Drop uid/gid check in sameaddr -- it causes more problems
  31: than it fixes.
  32: 
  33: D 5.48  86/03/08 14:12:07   eric    470 469 00000/00000/00015
  34: improve debugging in queue routines; don't output error addresses that
  35: are duplicates or otherwise marked as "don't send"
  36: 
  37: D 5.47  86/03/08 09:28:15   eric    469 468 00000/00000/00015
  38: do dbminit in a reasonable place
  39: 
  40: D 5.46  86/03/02 14:07:11   eric    468 467 00000/00000/00015
  41: always ignore SIGCHLD in openmailer; get SccsId correct in alias.c
  42: 
  43: D 5.45  86/01/30 11:02:58   eric    467 466 00000/00000/00015
  44: fix .forward files that include yourself; this was a bug in sameaddr
  45: that may have caused some other problems
  46: 
  47: D 5.44  86/01/11 00:18:27   eric    466 465 00000/00000/00015
  48: only check the RHS of aliases during newalias if the "n" option is set;
  49: this option should probably be set if you are not running the nameserver
  50: 
  51: D 5.43  86/01/10 16:34:08   eric    465 464 00000/00000/00015
  52: adjust WkTimeFact so that -q1h will lower relative priorities of
  53: jobs over long periods, rather than leave them toward the top of the queue
  54: 
  55: D 5.42  86/01/10 15:49:40   eric    464 463 00000/00000/00015
  56: allow multiple words per line in file classes; require a SCANF compilation
  57: flag to use sscanf in F specs in order to reduce image size
  58: 
  59: D 5.41  86/01/09 15:19:09   eric    463 462 00000/00000/00015
  60: apparently European timezones were wrong; thanks to Piet Beertema
  61: <mcvax!piet@seismo.CSS.GOV> for this one
  62: 
  63: D 5.40  86/01/09 14:38:45   eric    462 461 00000/00000/00015
  64: allow underscores in login names
  65: 
  66: D 5.39  86/01/05 18:49:01   eric    461 460 00000/00000/00015
  67: rewrite reply-to and resent-reply-to; save errorqueueu in qf file;
  68: some performance hacking; some alias handling cleanup; delete leading
  69: spaces from SMTP lines
  70: 
  71: D 5.38  85/12/17 23:54:45   eric    460 459 00000/00000/00015
  72: lint
  73: 
  74: D 5.37  85/12/17 21:35:28   eric    459 458 00000/00000/00015
  75: patch to clearenvelope to avoid dereferencing garbage pointers
  76: 
  77: D 5.36  85/12/09 10:29:07   miriam  458 457 00000/00000/00015
  78: Modify maphostname to do a gethostbyaddr if first character in name
  79: is a bracket.
  80: 
  81: D 5.35  85/12/07 08:17:56   eric    457 456 00000/00000/00015
  82: several small bugs: don't die if no environment, don't look in
  83: ESM_DEADLETTER state in savemail; lowercase before getpwnam to
  84: allow upper case regular names in alias file
  85: 
  86: D 5.34  85/11/22 11:38:09   miriam  456 455 00000/00000/00015
  87: Distinguish between temporary failure types.  Now will print the
  88: message "Host Name Lookup Failure" when h_errno contains TRY_AGAIN error value.
  89: 
  90: D 5.33  85/11/22 08:27:48   eric    455 454 00000/00000/00015
  91: give error if alias file cannot be opened; log a message when aliases
  92: are rebuilt; consider addresses with different q_uid's different so
  93: that two recipients forwarding to the same program will work
  94: 
  95: D 5.32  85/11/21 18:49:02   eric    454 453 00000/00000/00015
  96: don't duplicate original envelope into error envelope
  97: 
  98: D 5.31  85/10/24 10:38:28   eric    453 452 00000/00000/00015
  99: don't create a queue name in syserr; permit trailing blanks and quoted
 100: commas in aliases.
 101: 
 102: D 5.30  85/10/19 09:55:01   eric    452 451 00000/00000/00015
 103: strip spaces from ends of alias addresses so that blanks at end of line works
 104: 
 105: D 5.29  85/10/13 15:03:36   eric    451 450 00000/00000/00015
 106: fix botch with reapchild getting queue runs before intended wait
 107: 
 108: D 5.28  85/09/30 21:34:39   eric    450 449 00000/00000/00015
 109: clean up some aspects of error message display
 110: 
 111: D 5.27  85/09/30 21:06:04   eric    449 448 00000/00000/00015
 112: fixes in setproctitle to avoid problems with titles longer than
 113: argv + env
 114: 
 115: D 5.26  85/09/25 11:02:19   eric    448 447 00000/00000/00015
 116: DO use Ruleset 4 when defining $f -- it's very necessary (fix for <>
 117: will have to be done in configuration); pretty up mailq -v slightly
 118: 
 119: D 5.25  85/09/24 15:49:04   eric    447 446 00000/00000/00015
 120: clean up queue output somewhat (push null jobs to end); set
 121: SO_REUSEADDR and SO_KEEPALIVE on daemon sockets in the hopes of making
 122: dead connections disappear faster
 123: 
 124: D 5.24  85/09/24 15:09:56   eric    446 445 00000/00000/00015
 125: don't step on user environment
 126: 
 127: D 5.23  85/09/23 21:19:05   eric    445 444 00000/00000/00015
 128: deliver directly in SMTP if VERB command has been issued; don't
 129: externalize name using ruleset 4 when defining $f macro: this turns "<>"
 130: into "", which confuses local mail
 131: 
 132: D 5.22  85/09/21 16:35:33   eric    444 443 00000/00000/00015
 133: yet more cleanup to the process title code
 134: 
 135: D 5.21  85/09/21 16:24:06   eric    443 442 00000/00000/00015
 136: don't include ctime as part of priority, since the value affects the results of
 137: shouldqueue; we go back to adding ctime into the workcmpf in queue.c
 138: 
 139: D 5.20  85/09/21 15:52:02   eric    442 441 00000/00000/00015
 140: change sign on WkTimeFact so that is closer to what most people want
 141: 
 142: D 5.19  85/09/21 15:01:31   eric    441 440 00000/00000/00015
 143: fix silly botch in SMTP command decoding
 144: 
 145: D 5.18  85/09/21 14:45:53   eric    440 439 00000/00000/00015
 146: clean up priority handling, making several of the parameters configurable:
 147: y - WkRecipFact, z - WkClassFact, Z - WkTimeFact, Y - ForkQueueRuns; improve
 148: process title labelling; finish "errors to postmaster" option
 149: 
 150: D 5.17  85/09/21 10:31:27   eric    439 438 00000/00000/00015
 151: add -v mode to mailq to print priorities as well (this should be extended
 152: in the future); fix some problems in the savemail state machine.
 153: 
 154: D 5.16  85/09/20 09:43:20   eric    438 437 00000/00000/00015
 155: print cute labels on programs communicating with SMTP
 156: 
 157: D 5.15  85/09/19 23:16:24   eric    437 436 00000/00000/00015
 158: label child processes more effectively
 159: 
 160: D 5.14  85/09/19 22:01:02   eric    436 435 00000/00000/00015
 161: use rename instead of link/unlink
 162: 
 163: D 5.13  85/09/19 17:43:16   eric    435 434 00000/00000/00015
 164: fix botch in clearenvelope
 165: 
 166: D 5.12  85/09/19 15:57:48   eric    434 433 00000/00000/00015
 167: updates to make it possible to run the queue in one process; this
 168: permits a database of host status to be built
 169: 
 170: D 5.11  85/09/19 13:41:13   eric    433 432 00000/00000/00015
 171: lint
 172: 
 173: D 5.10  85/09/19 01:25:45   eric    432 431 00000/00000/00015
 174: incorporate SMI changes -- still experimental
 175: 
 176: D 5.9   85/09/17 21:46:27   eric    431 430 00000/00000/00015
 177: use SIGCHLD to catch processes as suggested by Serge Granik
 178: 
 179: D 5.8   85/09/17 19:24:39   eric    430 429 00000/00000/00015
 180: facilities in syslog
 181: 
 182: D 5.7   85/09/03 20:08:54   eric    429 428 00000/00000/00015
 183: increase MAXNAME and MAXLINE, as requested by Rick Adams, via
 184: George Goble, via Kirk Smith, via Miriam Amos (why????)
 185: 
 186: D 5.6   85/09/03 19:50:17   eric    428 427 00000/00000/00015
 187: Wander WIZ from weariful DEBUG to wonderful WIZ woption
 188: 
 189: D 5.5   85/06/17 18:53:09   eric    427 426 00000/00000/00015
 190: From Bill Nowicki: fixes to the statistics
 191: 
 192: D 5.4   85/06/16 16:04:51   eric    426 425 00000/00000/00015
 193: arrange for a useful error message if the mailer fork fails
 194: 
 195: D 5.3   85/06/15 18:52:11   eric    425 424 00000/00000/00015
 196: fix overzealous removal of df file
 197: 
 198: D 5.2   85/06/08 10:30:59   eric    424 423 00000/00000/00015
 199: lint for 4.3 release
 200: 
 201: D 5.1   85/06/07 15:19:18   dist    423 422 00013/00003/00002
 202: Add copyright
 203: 
 204: D 4.56  85/06/02 10:54:52   eric    422 421 00000/00000/00005
 205: plug another security hole with command line arguments
 206: 
 207: D 4.55  85/06/01 15:26:40   eric    421 420 00000/00000/00005
 208: More changes from Bill Nowicki -- file closing and improved logging.
 209: 
 210: D 4.54  85/05/24 11:00:43   eric    420 419 00000/00000/00005
 211: Changes from Bill Nowicki <sun!rose!nowicki> and Jay Lepreau <lepreau@utah-cs>:
 212: Fix "bad file number" problem; improve error reporting; try to keep messages
 213: closer to their original order.  Also, drop "safe" mode in readcf since we
 214: never run setuid when -C is specified.
 215: 
 216: D 4.53  85/05/15 20:26:44   eric    419 418 00000/00000/00005
 217: reenable signals in an event that may be called to run the queue; this
 218: allows hung connections to time out properly during a queue run.  This
 219: fix provided by Bill Nowicki.
 220: 
 221: D 4.52  85/05/06 20:06:04   eric    418 417 00000/00000/00005
 222: check syscall return values in a few questions; thanks go to Ian Darwin's
 223: rudely public ragging on this one.
 224: 
 225: D 4.51  85/04/29 22:48:37   eric    417 416 00000/00000/00005
 226: lock alias file while rebuilding if flock system call available
 227: 
 228: D 4.50  85/04/28 10:46:11   eric    416 415 00000/00000/00005
 229: stop collecting message on ferror(InChannel); changes to compile even
 230: if DEBUG isn't defined; avoid sending nonstandard 050 messages unless
 231: requested; recover from trashed DBM files; use recipient rewriting set
 232: on user part after ruleset 0 completes
 233: 
 234: D 4.49  85/04/25 20:06:08   miriam  415 414 00000/00000/00005
 235: Remove lib/libsys.a references - not used anymore.
 236: 
 237: D 4.48  85/04/20 15:14:15   eric    414 413 00000/00000/00005
 238: don't assume that all apparently local senders have passwd entries
 239: 
 240: D 4.47  85/04/04 17:48:45   miriam  413 412 00000/00000/00005
 241: Change serverity of LOG_ERR to LOG_MAIL so syslog will place in
 242: appropriate log file.
 243: 
 244: D 4.46  85/02/15 09:28:10   eric    412 411 00000/00000/00005
 245: fix some bugs with -C flag; one with queuing from Teus
 246: 
 247: D 4.45  85/02/14 22:43:42   eric    411 410 00000/00000/00005
 248: "and" file mode bits with 0777
 249: 
 250: D 4.44  84/12/06 10:35:01   eric    410 409 00000/00000/00005
 251: back out attempt to use flock in the queue -- we don't in gerneral have
 252: an open file descriptor available.
 253: 
 254: D 4.43  84/12/05 23:16:18   eric    409 408 00000/00000/00005
 255: Try to use flock call (this doesn't work because we don't always have an
 256: open fd); security and performance fixes from Kirk Smith at Purdue; "a"
 257: option is now the number of minutes to wait for "@:@" alias; fix bug in
 258: $[ $] using -t; random cleanup
 259: 
 260: D 4.42  84/11/13 12:46:05   eric    408 407 00000/00000/00005
 261: assorted optimizations (no functional changes)
 262: 
 263: D 4.41  84/09/18 19:53:05   eric    407 406 00000/00000/00005
 264: fix multiline aliases
 265: 
 266: D 4.40  84/09/08 17:44:21   eric    406 405 00000/00000/00005
 267: fix hostname mapping to be repeatable (as required by some .cf files).
 268: 
 269: D 4.39  84/08/11 23:19:30   eric    405 404 00000/00000/00005
 270: Add $[ and $] as RHS operators to look up the contents and pass them
 271: to maphostname; maphostname currently looks them up in /etc/hosts and
 272: converts them to canonical form, but could be turned into a general
 273: name server.....   huzzah!!
 274: 
 275: D 4.38  84/08/11 17:56:24   eric    404 403 00000/00000/00005
 276: changes from Tom Ferrin <ucsfcgl!tef>: don't drop messages on the floor
 277: if no local mailer available; give real "errno" message in syserr.
 278: 
 279: D 4.37  84/08/11 17:50:27   eric    403 402 00000/00000/00005
 280: Assorted changes from Guy Harris <rlgvax!guy>: mostly lint & USG
 281: 
 282: D 4.36  84/08/11 16:57:17   eric    402 401 00000/00000/00005
 283: don't add ".ARPA" (or whatever net name) to names that already have
 284: a dot in them; pull NetName out of initialized data space so that
 285: it can be changed in frozen configuration files
 286: 
 287: D 4.35  84/08/11 16:54:59   eric    401 400 00000/00000/00005
 288: Changes from Greg Couch <ucsfcgl!gregc> for V7 compatibility and
 289: miscellaneous bug fixes; "clear" => "bzero" and "bmove" => "bcopy"
 290: throughout for consistency; bzero is now in bcopy.c (these are
 291: supplied by libc on 4.2bsd)
 292: 
 293: D 4.34  84/08/11 14:38:46   eric    400 399 00000/00000/00005
 294: fixes from Liudvikas Bukys <bukys@rochester.ARPA>:
 295: allow -M flag to be used more than once;
 296: handle hosts where "gethostname" does not return the canonical name.
 297: 
 298: D 4.33  84/08/11 13:23:32   eric    399 398 00000/00000/00005
 299: add E mailer flag to > escape From lines (for files)
 300: 
 301: D 4.32  84/08/05 11:01:18   eric    398 397 00000/00000/00005
 302: add B option to set blank substitution character
 303: 
 304: D 4.31  84/08/05 10:14:14   eric    397 396 00000/00000/00005
 305: alway reset uid and gid immediately if alternate config file
 306: 
 307: D 4.30  84/05/13 15:45:35   eric    396 395 00000/00000/00005
 308: remove .mailcf hack -- it's been abused.
 309: 
 310: D 4.29  84/05/13 14:03:01   eric    395 394 00000/00000/00005
 311: change "returnto" to "returnq" for PDP-11 compilers
 312: 
 313: D 4.28  84/03/17 16:26:58   eric    394 393 00000/00000/00005
 314: always fold case on host names; fold case on the LHS of aliases
 315: 
 316: D 4.27  84/03/11 21:21:31   eric    393 392 00000/00000/00005
 317: fix argument to gethostname left over from some old interface....
 318: 
 319: D 4.26  84/03/11 19:58:20   eric    392 391 00000/00000/00005
 320: disable UPPER->lower case mapping in RHS's of aliases so that upper
 321: case letters can be used in file names and as args to programs.
 322: 
 323: D 4.25  84/03/11 16:49:25   eric    391 390 00000/00000/00005
 324: changes from Bill Nowicki <nowicki@diablo.ARPA> to avoid sending
 325: errors if a connection is aborted;
 326: changes from Greg Katz <katz@sri-tsc> to help with PDP-11 versions;
 327: allow home network name to be changed;
 328: change macro expansion character from $ to \001 so that $'s can be
 329: used in headers (.cf unchanged).
 330: 
 331: D 4.24  83/12/27 22:52:50   eric    390 389 00000/00000/00005
 332: don't close files immediately before exec of mailer so that we can log;
 333: use FIOCLEX instead.  Suggested by Tom Ferrin, UCSF CGL.
 334: 
 335: D 4.23  83/12/27 21:21:47   eric    389 388 00000/00000/00005
 336: fix bug with un-DBM'ed alias files that adds a newline on the end of
 337: the last entry in the alias; found by John Gilmore, SMI
 338: 
 339: D 4.22  83/11/26 18:52:55   eric    388 387 00000/00000/00005
 340: fix SERIOUS bug allowing anyone to be "wiz" without a password
 341: if the configuration was frozen
 342: 
 343: D 4.21  83/11/13 18:08:19   eric    387 386 00000/00000/00005
 344: Fixes two nasty problems, both pointed out by Bill Nowicki at Stanford:
 345: I/O errors on input in collect would cause infinite loops, and a protocol
 346: error (or other error that would call smtpquit abnormally) would cause
 347: core dumps
 348: 
 349: D 4.20  83/11/10 09:05:46   eric    386 385 00000/00000/00005
 350: Be able to override the hostname in the configuration file when frozen
 351: 
 352: D 4.19  83/10/29 16:46:12   eric    385 384 00000/00000/00005
 353: declare getpwnam in recipient.c for earlier systems
 354: 
 355: D 4.18  83/10/29 12:01:44   eric    384 383 00000/00000/00005
 356: add newline to "deferred" message in usersmtp.c
 357: 
 358: D 4.17  83/10/23 17:16:56   eric    383 382 00000/00000/00005
 359: handle dollar signs in headers properly
 360: 
 361: D 4.16  83/10/16 16:08:08   eric    382 381 00000/00000/00005
 362: Postpone opening the alias DBM file until after the fork in srvrsmtp so
 363: that the alias database is as current as possible; thanks to dagobah!efo
 364: (Eben Ostby) for this one.
 365: 
 366: D 4.15  83/10/16 15:26:12   eric    381 380 00000/00000/00005
 367: reset errno in parseaddr so that syserr gives a permanent error code and
 368: no extraneous information about non-errors
 369: 
 370: D 4.14  83/10/02 15:31:56   eric    380 379 00000/00000/00005
 371: Use old environment after the thaw; credit rhc for this.
 372: 
 373: D 4.13  83/10/01 16:57:57   eric    379 378 00000/00000/00005
 374: clean up error handling in general; make sure that something gets logged
 375: in the transcript if the connection cannot be established; clean up Teus
 376: Hagen's mod to arpadate.c to match the sendmail coding style.
 377: 
 378: D 4.12  83/09/07 09:45:41   eric    378 377 00000/00000/00005
 379: Increase timeout for greeting message to five minutes; remember to close
 380: the connection properly if we get a failure during connection establishment.
 381: 
 382: D 4.11  83/09/05 15:02:48   eric    377 376 00000/00000/00005
 383: Fix security hole caused by being able to freeze the configuration
 384: without owning the .fc file.
 385: 
 386: D 4.10  83/09/05 14:33:54   eric    376 375 00000/00000/00005
 387: Cut down the amount of bulk that is sent in SMTP error messages, by
 388: trying to log only real errors in the transcript.  -v mode is unchanged.
 389: 
 390: D 4.9   83/08/31 17:42:50   eric    375 374 00000/00000/00005
 391: fix problem with timeouts caused by change in EINTR semantics in 4.2bsd;
 392: add a two minute timeout on the greeting message in user smtp to detect
 393: hung connections
 394: 
 395: D 4.8   83/08/28 15:38:15   eric    374 373 00000/00000/00005
 396: set FIOCLEX on /dev/kmem file when getting load average
 397: 
 398: D 4.7   83/08/28 14:45:35   eric    373 372 00000/00000/00005
 399: Refuse to talk to yourself (i.e., reject HELO packets with your own name).
 400: Add two thresholds -- option 'x' is the load average at which messages are
 401: queued rather than delivered (default 12); option 'X' is the load average
 402: at which incoming TCP connections are refused (default 25).
 403: 
 404: D 4.6   83/08/21 15:40:13   eric    372 371 00000/00000/00005
 405: Drop "Sender:" hack, since it doesn't work properly when relaying messages.
 406: 
 407: D 4.5   83/08/21 15:15:09   eric    371 370 00000/00000/00005
 408: Insert a Sender: line if a From: line is specified and is different than
 409: what we would insert; don't send back a separate error message if we have
 410: diagnosed an error in a RCPT command; fix a *0 problem in some debug code.
 411: 
 412: D 4.4   83/08/06 10:37:57   eric    370 369 00000/00000/00005
 413: Clear errno before trying connect in an attempt to track down EPERM
 414: problems.
 415: 
 416: D 4.3   83/07/31 10:46:22   eric    369 368 00000/00000/00005
 417: Add EX_NOPERM to sysexits.h for kre
 418: 
 419: D 4.2   83/07/27 22:56:44   eric    368 367 00000/00000/00005
 420: Don't uppercase hostname in myhostname so that it can be used as a
 421: UUCP name.
 422: 
 423: D 4.1   83/07/25 19:46:27   eric    367 366 00000/00000/00005
 424: 4.2 release version
 425: 
 426: D 3.347 83/07/13 10:38:17   eric    366 365 00000/00000/00005
 427: Delete "load limiting" for SMTP connections (a bad ethernet board can
 428: hang up all incoming mail); use sfgets in collect (same reason); check
 429: for I/O error in collect (from Bill Nowicki); switch date format to
 430: RFC822 style.
 431: 
 432: D 3.346 83/06/14 11:05:18   eric    365 364 00000/00000/00005
 433: log the message-id only if non-null
 434: 
 435: D 3.345 83/06/11 20:59:30   eric    364 363 00000/00000/00005
 436: %d => %ld in mailq for PDP-11's
 437: 
 438: D 3.344 83/06/11 19:28:58   eric    363 362 00000/00000/00005
 439: MRs:    045
 440: MRs:    240
 441: don't rearrange input header lines; force Received: lines to be at the
 442: beginning by always adding new header fields at the end of the header.
 443: 
 444: D 3.343 83/05/21 11:01:51   eric    362 361 00000/00000/00005
 445: Miscellaneous changes for PDP-11's.
 446: Always send to a login name before a full name.
 447: 
 448: D 3.342 83/05/20 11:50:16   eric    361 360 00000/00000/00005
 449: MRs:    238
 450: MRs:    239
 451: Don't stack processes when VRFY fails.
 452: Give an error message on multiple RCPT commands with a bad address.
 453: 
 454: D 3.341 83/05/18 11:57:09   eric    360 359 00000/00000/00005
 455: Change WKTIMEFACT to be negative to force failing jobs to the end of the
 456: queue rather than to the beginning, giving better overall performance --
 457: as noted by Jay Lepreau.  Also, clean up the format of the mailq output.
 458: 
 459: D 3.340 83/05/07 11:28:37   eric    359 358 00000/00000/00005
 460: MRs:    237
 461: Pass the size of the buffer to myhostname.
 462: 
 463: D 3.339 83/05/04 11:29:53   eric    358 357 00000/00000/00005
 464: MRs:    235
 465: fix botch in 3.338 -- arguments reversed
 466: 
 467: D 3.338 83/05/04 11:16:29   eric    357 356 00000/00000/00005
 468: MRs:    235
 469: Don't send domain-based UUCP addresses to UGLYUUCP hosts
 470: 
 471: D 3.337 83/05/01 14:27:55   eric    356 355 00000/00000/00005
 472: MRs:    234
 473: avoid core dumps on messages with very long header fields
 474: 
 475: D 3.336 83/04/30 15:14:51   eric    355 354 00000/00000/00005
 476: lint
 477: 
 478: D 3.335 83/04/23 12:54:57   eric    354 353 00000/00000/00005
 479: MRs:    230
 480: Don't put Resent-*: lines in queue file to prevent outputing them
 481: inappropriately in the sent message.
 482: 
 483: D 3.334 83/04/19 19:20:44   eric    353 352 00000/00000/00005
 484: MRs:    228
 485: Fix bug causing convtime to loop forever on "w" (week) specification.
 486: 
 487: D 3.333 83/04/17 17:19:04   eric    352 351 00000/00000/00005
 488: MRs:    199
 489: MRs:    218
 490: MRs:    221
 491: MRs:    224
 492: put true current time on SMTP greeting message; drop >From hack (this belongs
 493: in the mailer if needed); fix bogus errno problems (clear errno in many
 494: places); fix *(0) problems
 495: 
 496: D 3.332 83/03/26 14:26:43   eric    351 350 00000/00000/00005
 497: MRs:    213
 498: MRs:    214
 499: MRs:    215
 500: increase buffer size in smtpmessage to avoid overflows; rewrite again with
 501: ruleset three after appending from domain so that we can add the bracket
 502: punctuation; changes from MRH for USG UNIX 5.0
 503: 
 504: D 3.331 83/03/19 14:25:33   eric    350 349 00000/00000/00005
 505: MRs:    211
 506: Don't have mail from su'ed people come from "daemon"
 507: 
 508: D 3.330 83/03/19 13:14:27   eric    349 348 00000/00000/00005
 509: MRs:    147
 510: Fix botch of putting incorrect full names on some addresses (usually
 511: UNIX-to-UNIX Copy)
 512: 
 513: D 3.329 83/03/12 18:05:51   eric    348 347 00000/00000/00005
 514: MRs:    196
 515: take ECONNRESET (Connection reset by peer) as a temporary error during
 516: connection initiation.
 517: 
 518: D 3.328 83/03/12 17:41:55   eric    347 346 00000/00000/00005
 519: MRs:    208
 520: Check for I/O error on close of temp file -- i.e., last buffer flush
 521: 
 522: D 3.327 83/03/12 15:40:05   eric    346 345 00000/00000/00005
 523: MRs:    207
 524: Don't artifically add a "from: $q" when running the queue -- this seems
 525: to cause the from line in the qf file to be ignored.
 526: 
 527: D 3.326 83/03/10 00:48:02   eric    345 344 00000/00000/00005
 528: MRs:    206
 529: Delete colon on front of aliases
 530: 
 531: D 3.325 83/03/08 19:22:48   eric    344 343 00000/00000/00005
 532: MRs:    205
 533: Pass the delimiter character to parseaddr so that we can correctly
 534: decide between comma and space
 535: 
 536: D 3.324 83/03/07 09:55:13   eric    343 342 00000/00000/00005
 537: MRs:    203
 538: Don't pass EX_TEMPFAIL code out (since we have already taken responsibility
 539: for delivering the message anyway).
 540: 
 541: D 3.323 83/03/07 09:25:01   eric    342 341 00000/00000/00005
 542: MRs:    202
 543: Handle OLDSTYLE addresses properly with the -t flag; notice that tabs also
 544: delimit addresses (as well as spaces)
 545: 
 546: D 3.322 83/03/06 16:30:29   eric    341 340 00000/00000/00005
 547: MRs:    201
 548: Handle messages with "Resent-xxx:" header lines properly (basically mark
 549: the message as being resent); ignore incoming From: lines if their text
 550: exactly matches our machine-readable address exactly -- this causes the
 551: full name to be added when called from (e.g.) MH.  Both of these mode are
 552: to improve interaction with MH.
 553: 
 554: D 3.321 83/03/05 17:39:11   eric    340 339 00000/00000/00005
 555: MRs:    200
 556: Ignore delimiters (e.g., commas) inside quotes
 557: 
 558: D 3.320 83/02/26 15:32:31   eric    339 338 00000/00000/00005
 559: MRs:    193
 560: Don't log message-id mapping and from person in a queue run
 561: 
 562: D 3.319 83/02/26 15:06:05   eric    338 337 00000/00000/00005
 563: MRs:    162
 564: map host name for $w macro to upper case -- this is more conventional
 565: 
 566: D 3.318 83/02/26 11:51:43   eric    337 336 00000/00000/00005
 567: MRs:    193
 568: log queueid <=> message-id correspondence
 569: 
 570: D 3.317 83/02/25 21:20:20   eric    336 335 00000/00000/00005
 571: MRs:    181
 572: More attempts at insuring that everything goes through ruleset 4
 573: 
 574: D 3.316 83/02/24 20:03:04   eric    335 334 00000/00000/00005
 575: MRs:    181
 576: arrange to cleanup addresses using ruleset 4 before storing in ADDR struct
 577: 
 578: D 3.315 83/02/24 18:55:32   eric    334 333 00000/00000/00005
 579: MRs:    162
 580: MRs:    192
 581: Fix bug in $w and $=w setup; truncate output to seven bits if the "limits"
 582: flag is set to insure that nothing can be sent that looks like TELNET
 583: protocol
 584: 
 585: D 3.314 83/02/20 12:29:15   eric    333 332 00000/00000/00005
 586: MRs:    190
 587: Avoid loops in the auto-closedown code
 588: 
 589: D 3.313 83/02/19 14:42:12   eric    332 331 00000/00000/00005
 590: MRs:    188
 591: Avoid core dumps on very long addresses in headers.
 592: 
 593: D 3.312 83/02/18 13:11:57   eric    331 330 00000/00000/00005
 594: MRs:    183
 595: Improve host verification -- put something in even if no HELO command given
 596: 
 597: D 3.311 83/02/18 12:44:13   eric    330 329 00000/00000/00005
 598: MRs:    183
 599: MRs:    185
 600: MRs:    187
 601: Add HELO hostname verification; give an error if a message terminates with
 602: EOF rather than dot in SMTP mode; put in a catch for "Not owner" error on
 603: connect -- see if we can find anything funny.
 604: 
 605: D 3.310 83/02/13 16:23:03   eric    329 328 00000/00000/00005
 606: MRs:    182
 607: fix clrbitmap to really clear the entire bitmap
 608: 
 609: D 3.309 83/02/10 10:00:49   eric    328 327 00000/00000/00005
 610: MRs:    176
 611: avoid core dump on return receipt processing; clean up return receipt
 612: message.
 613: 
 614: D 3.308 83/02/08 10:50:24   eric    327 326 00000/00000/00005
 615: MRs:    167
 616: MRs:    172
 617: MRs:    173
 618: MRs:    174
 619: clean up problems when QUEUE compile flag not defined; clean up hostname
 620: code to run on non-4.1c systems; fix use of -oeq (quiet on errors) flag.
 621: 
 622: D 3.307 83/02/03 10:46:02   eric    326 325 00001/00001/00004
 623: MRs:    160
 624: Change version stamp to have no date (so that it looks nice as $v/$V)
 625: 
 626: D 3.306 83/02/03 10:29:15   eric    325 324 00000/00000/00005
 627: MRs:    160
 628: $e macro is now SMTP entry message (so that configuration version can
 629: be included).
 630: 
 631: D 3.305 83/02/03 07:54:10   eric    324 323 00000/00000/00005
 632: MRs:    168
 633: Make mailer size limits a per-mailer parameter (M field in the mailer
 634: descriptor)
 635: 
 636: D 3.304 83/02/02 12:53:10   eric    323 322 00000/00000/00005
 637: MRs:    165
 638: implement classes and mailer flags as a bit map; define new class 'w'
 639: as the set of all hosts we are known by
 640: 
 641: D 3.303 83/02/01 20:47:34   eric    322 321 00000/00000/00005
 642: MRs:    166
 643: don't call printqueue() if queueing is turned off
 644: 
 645: D 3.302 83/01/18 20:38:09   eric    321 320 00000/00000/00005
 646: pause() after reply error if 18.100 set -- so that Sam can try to track
 647: down the state of the connection in the CMU-CS-A problem.
 648: 
 649: D 3.301 83/01/17 21:41:42   eric    320 319 00000/00000/00005
 650: MRs:    158
 651: Set the $w macro to the hostname if at all possible to allow generic
 652: configuration tables.
 653: 
 654: D 3.300 83/01/17 12:31:10   eric    319 318 00000/00000/00005
 655: MRs:    155
 656: fix bug that caused "\r\n" string in TCP mailer definition to turn
 657: into something else -- causing all TCP connections to hang.
 658: 
 659: D 3.299 83/01/17 09:32:18   eric    318 317 00000/00000/00005
 660: MRs:    154
 661: define a newline in "nullmailer" so that queue files get written with
 662: newlines between the "H" lines.
 663: 
 664: D 3.298 83/01/16 22:08:47   eric    317 316 00000/00000/00005
 665: put in socket debugging on a debug flag to help Sam find the CMU-CS-A
 666: problem -- this probably won't work with early 4.1c systems.
 667: 
 668: D 3.297 83/01/16 17:24:29   eric    316 315 00000/00000/00005
 669: MRs:    153
 670: make the maximum number of simultaneous SMTP connections an option
 671: 
 672: D 3.296 83/01/16 13:14:04   eric    315 314 00000/00000/00005
 673: MRs:    152
 674: Change mailer spec to have labelled fields for future expansion.
 675: **** This delta invalidates previous configuration files ****
 676: 
 677: D 3.295 83/01/15 17:40:49   eric    314 313 00000/00000/00005
 678: MRs:    149
 679: be sure everything gets appropriately externalized; canonname goes away,
 680: since everything is now done by remotename
 681: 
 682: D 3.294 83/01/12 08:56:51   eric    313 312 00000/00000/00005
 683: MRs:    144
 684: fix date format to be truly RFC822
 685: 
 686: D 3.293 83/01/09 15:43:11   eric    312 311 00000/00000/00005
 687: MRs:    139
 688: fix CRLF problem when sending SMTP commands; make newstr() and crlf()
 689: into macros
 690: 
 691: D 3.292 83/01/08 19:54:37   eric    311 310 00000/00000/00005
 692: MRs:    143
 693: release daemon resources when running the queue
 694: 
 695: D 3.291 83/01/08 13:49:08   eric    310 309 00000/00000/00005
 696: MRs:    142
 697: be sure to open a new transcript on every queue run; when returning
 698: an SMTP transcript, only send the last half (i.e., that part which
 699: describes the sending half).
 700: 
 701: D 3.290 83/01/06 18:21:54   eric    309 308 00000/00000/00005
 702: MRs:    141
 703: allow user-setable error codes in "error" mailer
 704: 
 705: D 3.289 83/01/06 18:09:01   eric    308 307 00000/00000/00005
 706: MRs:    140
 707: fix a botch in argument processing such that it used the last flag as
 708: a recipient if there were no other recipients (e.g., with "-t")
 709: 
 710: D 3.288 83/01/06 12:05:54   eric    307 306 00000/00000/00005
 711: MRs:    132
 712: fix (one more time!) long line wrapping.....
 713: 
 714: D 3.287 83/01/06 10:46:17   eric    306 305 00000/00000/00005
 715: MRs:    139
 716: split up FULLSMTP flag -- now have "X" (M_XDOT, use hidden dot algorithm),
 717: "p" (M_FROMPATH, use reverse-path in MAIL FROM:<> command), and "L"
 718: (M_LIMITS, enforce SMTP line limits).  I would like to change the format
 719: of the mail defn one more time to make named fields so that it would
 720: be more extensible.
 721: 
 722: D 3.286 83/01/05 20:30:10   eric    305 304 00000/00000/00005
 723: MRs:    132
 724: fix folded line output
 725: 
 726: D 3.285 83/01/05 17:57:11   eric    304 303 00000/00000/00005
 727: MRs:    138
 728: curiouser and curiouser.....  a read error on the reply from a QUIT will
 729: cause another QUIT command, and thus an fclose(NULL).  Some sites seem
 730: to be sending a 421 Shutting down and then closing without waiting for
 731: the QUIT, so this happens....
 732: 
 733: D 3.284 83/01/05 10:19:04   eric    303 302 00000/00000/00005
 734: MRs:    138
 735: improve error recovery for bizarre SMTP cases; unfortunately CMU has
 736: decided to start working again, so the strangest parts are untested.
 737: 
 738: D 3.283 83/01/04 19:53:55   eric    302 301 00000/00000/00005
 739: MRs:    137
 740: externalize $g macro using ruleset 4 also
 741: 
 742: D 3.282 83/01/04 18:52:08   eric    301 300 00000/00000/00005
 743: MRs:    136
 744: Don't try to drop our controlling TTY except when we are starting up a
 745: daemon; this can cause UUCP jobs to hang waiting for carrier on a dialin
 746: line (completely contrary to the intent).  Many thanks to Keith Sklower
 747: for pointing this one out.  However, that damned parameter to disconnect()
 748: has reappeared!
 749: 
 750: D 3.281 83/01/04 17:45:25   eric    300 299 00000/00000/00005
 751: MRs:    135
 752: Ignore SIGPIPE early (in main rather than in deliver) so that rude hosts
 753: that close the connection early don't cause us to die -- in particular,
 754: CMU-CS-A (nee CMU-10A) was doing this after the DATA command; the problem
 755: went away quite mysteriously, so I have no idea why it happened
 756: 
 757: D 3.280 83/01/04 13:10:35   eric    299 298 00000/00000/00005
 758: MRs:    129
 759: MRs:    134
 760: take EHOSTDOWN as a temporary failure; change the format of "deferred"
 761: message to be consistent with other messages.
 762: 
 763: D 3.279 83/01/04 10:58:55   eric    298 297 00000/00000/00005
 764: MRs:    133
 765: fix botch that causes sendmail to core dump when there are large
 766: numbers of requests
 767: 
 768: D 3.278 83/01/04 10:04:41   eric    297 296 00000/00000/00005
 769: MRs:    132
 770: Detect an internal error that seems to be occuring
 771: 
 772: D 3.277 83/01/03 18:01:33   eric    296 295 00000/00000/00005
 773: MRs:    129
 774: give more useful error messages (including the errno that caused
 775: a temporary failure); reflect these messages out to mailq
 776: 
 777: D 3.276 83/01/03 14:02:28   eric    295 294 00000/00000/00005
 778: MRs:    137
 779: have canonname pass the address through ruleset four also
 780: 
 781: D 3.275 83/01/03 13:44:39   eric    294 293 00000/00000/00005
 782: MRs:    131
 783: take ENETUNREACH (Network unreachable) as a transient error -- this
 784: probably isn't usually right, but it seem safer in the long run....
 785: 
 786: D 3.274 83/01/03 13:19:37   eric    293 292 00000/00000/00005
 787: MRs:    129
 788: print "request" instead of "requests" if there is only one request
 789: 
 790: D 3.273 83/01/03 13:03:01   eric    292 291 00000/00000/00005
 791: MRs:    130
 792: fix bug in commaize so that it won't core dump on every message (sigh);
 793: process timeouts like normal errors so that they will get delivered to
 794: the correct address (i.e., the Errors-To: address).
 795: 
 796: D 3.272 83/01/03 11:28:04   eric    291 290 00000/00000/00005
 797: MRs:    129
 798: fix botch in reading the queue that caused it to throw away the last
 799: entry it read -- this was particulary obvious with only one entry in
 800: the queue.
 801: 
 802: D 3.271 83/01/02 15:33:36   eric    290 289 00000/00000/00005
 803: MRs:    124
 804: Take errno 65, "Host is unreachable", to be a recoverable error
 805: 
 806: D 3.270 83/01/02 14:27:32   eric    289 288 00000/00000/00005
 807: MRs:    129
 808: clean up output of mailq mode
 809: 
 810: D 3.269 83/01/01 21:25:35   eric    288 287 00000/00000/00005
 811: MRs:    123
 812: Put CRLF on all lines in user SMTP.  Pass this info down to
 813: innumerable routines.
 814: 
 815: D 3.268 83/01/01 18:14:56   eric    287 286 00000/00000/00005
 816: MRs:    122
 817: Use a more resilient algorithm to handle the special case of an SMTP
 818: connection that is going down spontaneously (with a 421 reply code)
 819: 
 820: D 3.267 83/01/01 16:02:43   eric    286 285 00000/00000/00005
 821: MRs:    128
 822: tag syserr's specially in the log so they can be grep'ed out easily
 823: 
 824: D 3.266 82/12/30 17:30:57   eric    285 284 00000/00000/00005
 825: MRs:    114
 826: don't bother timing out on *.cf and qf* file reads -- they are
 827: really very vanilla
 828: 
 829: D 3.265 82/12/30 16:57:13   eric    284 283 00000/00000/00005
 830: MRs:    113
 831: close files 3 through 20 before startup to insure sufficient resources
 832: 
 833: D 3.264 82/12/29 17:39:27   eric    283 282 00000/00000/00005
 834: MRs:    112
 835: don't htons(sp->s_port) in makeconnection
 836: 
 837: D 3.263 82/12/24 08:14:55   eric    282 281 00000/00000/00005
 838: MRs:    108
 839: Change parse to parseaddr for BB&N TCP/IP implementation; clean up
 840: comments in daemon.c to simplify the poor alternate protocol type.
 841: 
 842: D 3.262 82/12/14 19:23:23   eric    281 280 00000/00000/00005
 843: MRs:    106
 844: fix freeze mode to do something more interesting that refreezing (over
 845: and over and over and .......)
 846: 
 847: D 3.261 82/12/14 16:57:16   eric    280 279 00000/00000/00005
 848: MRs:    105
 849: Add "print mail queue" mode (-bp flag or call as "mailq")
 850: 
 851: D 3.260 82/12/13 18:25:22   eric    279 278 00000/00000/00005
 852: MRs:    085
 853: The routine "sendto" is now a system call (yeuch!); change our sendto
 854: to "sendtolist"
 855: 
 856: D 3.259 82/12/13 17:47:27   eric    278 277 00000/00000/00005
 857: MRs:    085
 858: NEW-IPC: convert to 4.1c
 859: 
 860: D 3.258 82/12/09 19:18:32   eric    277 276 00000/00000/00005
 861: MRs:    036
 862: MRs:    053
 863: MRs:    064
 864: Fix a bug triggered when we add the sender's "@domain" to an address
 865: in the message body that is missing a domain -- we forgot to null
 866: terminate the list.
 867: 
 868: D 3.257 82/12/09 11:19:09   eric    276 275 00000/00000/00005
 869: MRs:    081
 870: MRs:    095
 871: MRs:    103
 872: log read timeouts as syserrs; be able to match the inverse of a class
 873: using the $~x syntax; don't add a full name during network forward operations
 874: 
 875: D 3.256 82/12/05 13:46:29   eric    275 274 00000/00000/00005
 876: MRs:    092
 877: Clear the envelope in the child in server SMTP to insure that our oh so
 878: helpful parent doesn't delete our transcript; move the transcript and
 879: temporary file pointers into the envelope; pass the envelope to other
 880: routines in the holy war against global variables; split off envelope
 881: routines from main.c to envelope.c
 882: 
 883: D 3.255 82/11/28 16:00:50   eric    274 273 00000/00000/00005
 884: implement SMTP auto-shutdown on 421 codes; clean up some error processing
 885: items, particularly in SMTP; don't reinstantiate error message bodies after
 886: queueing; other minor changes.  This is all cleanup from 3.253.
 887: 
 888: D 3.254 82/11/28 10:22:20   eric    273 272 00000/00000/00005
 889: fix a number of problems left over from yesterday's delta.  The big
 890: triumph is being able to delete the parameter from disconnect().
 891: 
 892: D 3.253 82/11/28 00:22:21   eric    272 271 00000/00000/00005
 893: Many changes resulting from a complete code readthrough.  Most of these
 894: fix minor bugs or change the internal structure for clarity, etc.  There
 895: should be almost no externally visible changes (other than some cleaner
 896: error message printouts and the like).
 897: 
 898: D 3.252 82/11/24 18:44:28   eric    271 270 00000/00000/00005
 899: lint it
 900: 
 901: D 3.251 82/11/24 17:15:30   eric    270 269 00000/00000/00005
 902: MRs:    026
 903: run SMTP jobs in a subprocess so that multiple jobs will work.  This
 904: delta also changes the envelope data structure so that flags are in
 905: a bit map, and adjusts some of the semantics.  The transcript is now
 906: local to an envelope.  A bunch of old code is deleted.  A serious bug
 907: was fixed in the "run in background" code.  Etc., etc.
 908: 
 909: D 3.250 82/11/21 17:19:05   eric    269 268 00000/00000/00005
 910: MRs:    026
 911: preliminary hacks for multiple SMTP transactions per connection: make
 912: assignment of multiple queue id's more efficient, make prefixes two
 913: characters (e.g., qfAA99999), pass the file name to freeze and thaw,
 914: add a mailer flag saying we are talking to one of our own kind.
 915: 
 916: D 3.249 82/11/20 12:43:29   eric    268 267 00000/00000/00005
 917: MRs:    083
 918: Accept user@[net.host.logical.imp] syntax
 919: 
 920: D 3.248 82/11/18 21:33:38   eric    267 266 00000/00000/00005
 921: MRs:    080
 922: Correctly run "sendmail -q" (had a reversed condition on QueueIntvl)
 923: 
 924: D 3.247 82/11/18 17:54:23   eric    266 265 00000/00000/00005
 925: MRs:    079
 926: Fix bug causing loops in sendto if there are scanner errors in addresses
 927: 
 928: D 3.246 82/11/18 08:56:27   eric    265 264 00000/00000/00005
 929: MRs:    060
 930: MRs:    073
 931: disconnect input, output, signals, etc. when running in background
 932: 
 933: D 3.245 82/11/17 09:36:47   eric    264 263 00000/00000/00005
 934: MRs:    060
 935: split operation mode ("-bx" flag) and delivery mode ("d" option)
 936: so that operation mode can apply to SMTP/daemon connections also.
 937: 
 938: D 3.244 82/11/14 15:34:59   eric    263 262 00000/00000/00005
 939: MRs:    075
 940: Explicitly inherit e_oldstyle from BlankEnvelope to MainEnvelope
 941: 
 942: D 3.243 82/11/14 15:14:00   eric    262 261 00000/00000/00005
 943: MRs:    074
 944: fix quote processing on program mailers
 945: 
 946: D 3.242 82/11/14 12:26:17   eric    261 260 00000/00000/00005
 947: MRs:    072
 948: Don't give an error message on unknown options
 949: 
 950: D 3.241 82/11/13 18:07:59   eric    260 259 00000/00000/00005
 951: MRs:    021
 952: MRs:    066
 953: MRs:    069
 954: MRs:    069
 955: MRs:    070
 956: MRs:    071
 957: Clean up argument structure (-I=>-bi, -Z=>-bz).  Add -bp stub to someday
 958: print queue.  Move compile conf into conf.h (still some stuff in the
 959: Makefile).  Assume -bp if called as "mailq" and -bi if called as
 960: "newaliases".  Drop old directory hack -- send out compat code instead.
 961: Don't rebuild the alias file automatically unless the D option is set.
 962: Clean up compilation flags.
 963: 
 964: D 3.240 82/11/07 16:14:44   eric    259 258 00000/00000/00005
 965: MRs:    041
 966: make all mailer output go to the transcript if running server smtp; this
 967: has the effect of making some significant changes in the output structure
 968: to handle such things as -em and -as together
 969: 
 970: D 3.239 82/11/07 15:31:50   eric    258 257 00000/00000/00005
 971: MRs:    063
 972: don't flag errors in setting dangerous options when -C is used
 973: 
 974: D 3.238 82/11/05 13:12:52   eric    257 256 00000/00000/00005
 975: MRs:    062
 976: arrange to freeze the configuration file for quick startup -- this
 977: technique requires reprocessing the argv so that flag settings don't
 978: get lost, and is really rather of a hack.
 979: 
 980: D 3.237 82/11/04 15:22:16   eric    256 255 00000/00000/00005
 981: MRs:    019
 982: don't unlink qf & df files on ^C
 983: 
 984: D 3.236 82/11/04 13:27:28   eric    255 254 00000/00000/00005
 985: MRs:    037
 986: put header conditionals into the .cf file
 987: 
 988: D 3.235 82/11/03 11:18:06   eric    254 253 00000/00000/00005
 989: MRs:    059
 990: don't strip quotes off of addresses during prescan
 991: 
 992: D 3.234 82/11/03 10:34:13   eric    253 252 00000/00000/00005
 993: MRs:    058
 994: Put the temporary file mode on the F option
 995: 
 996: D 3.233 82/11/03 09:49:15   eric    252 251 00000/00000/00005
 997: MRs:    049
 998: Arrange to strip quote bits in message header; move SPACESUB into
 999: conf.c; change SpaceSub to unquoted dot
1000: 
1001: D 3.232 82/11/03 09:00:33   eric    251 250 00000/00000/00005
1002: MRs:    056
1003: Arrange for queue.c to aapt to systems w/o new directory code
1004: 
1005: D 3.231 82/10/31 13:47:06   eric    250 249 00000/00000/00005
1006: MRs:    032
1007: MRs:    051
1008: Call ruleset 4 after doing per-mailer translation to convert from
1009: internal to external form.
1010: 
1011: D 3.230 82/10/28 17:41:15   eric    249 248 00000/00000/00005
1012: MRs:    039
1013: MRs:    027
1014: Put the "@:@" trick on the "a" option.  Also, move TrustedUsers into
1015: sendmail.h (it should have gone here in the first place!)
1016: 
1017: D 3.229 82/10/27 20:43:35   eric    248 247 00000/00000/00005
1018: MRs:    044
1019: strip out bcc: and resent-bcc: always
1020: 
1021: D 3.228 82/10/25 08:30:12   eric    247 246 00000/00000/00005
1022: MRs:    040
1023: Don't send closing protocol to SMTP if you haven't opened the
1024: connection; this happens if checkcompat fails on the only recipient.
1025: 
1026: D 3.227 82/10/22 09:02:44   eric    246 245 00000/00000/00005
1027: MRs:    023
1028: part of a heuristic hill climbing algorithm to minimize the number of
1029: IPC bugs that come crawling over me.
1030: 
1031: D 3.226 82/10/16 15:24:52   eric    245 244 00000/00000/00005
1032: MRs:    027
1033: Put list of login names able to use -f in the .cf file.
1034: 
1035: D 3.225 82/10/16 14:43:47   eric    244 243 00000/00000/00005
1036: MRs:    007
1037: Arrange for a wizards password (the W option).  The SMTP KILL command
1038: may only be issued if this option is set.  This delta adds the "WIZ"
1039: command, and changes _KILL => KILL, _DEBUG => DEBUG, _VERBOSE => VERB,
1040: and _SHOWQ => SHOWQ.
1041: 
1042: D 3.224 82/10/16 13:43:28   eric    243 242 00000/00000/00005
1043: MRs:    024
1044: Fix debug statement in sendall
1045: 
1046: D 3.223 82/10/16 13:22:22   eric    242 241 00000/00000/00005
1047: MRs:    010
1048: Arrange for MD_FORK to work well with -v so that we can use it as the
1049: default.  This was really a separate bug, but I have just lumped it in
1050: here -- the problem came up with stty tostop.
1051: 
1052: D 3.222 82/10/13 21:55:07   eric    241 240 00000/00000/00005
1053: MRs:    023
1054: Don't interrupt the process doing accepts (have a separate process
1055: running the queue) to avoid a large pile of 4.1[abc] bugs.  When
1056: something more stable comes out, I will change this.
1057: 
1058: D 3.221 82/10/13 18:43:28   eric    240 239 00000/00000/00005
1059: MRs:    022
1060: Don't interpret <, >, (, or ) while in QST (quote state) during prescan
1061: 
1062: D 3.220 82/10/11 09:51:43   eric    239 238 00000/00000/00005
1063: MRs:    016
1064: have auto-queueups print a polite message in the log (rather than an
1065: obnoxious "Temporary Failure").  Adds a new routine "logdelivery".
1066: 
1067: D 3.219 82/10/09 21:02:27   eric    238 237 00000/00000/00005
1068: MRs:    005
1069: force a queuename in returntosender to insure that everyone has a
1070: queue name.
1071: 
1072: D 3.218 82/10/09 20:27:42   eric    237 236 00000/00000/00005
1073: MRs:    003
1074: Lock out interrupts during alias rebuild; add an alias "@:@" after
1075: rebuild that we can check for to insure that the alias file is up to
1076: date.  Times out after five minutes (is this reasonable on ucbvax?)
1077: and forces a rebuild.  It shouldn't matter in the long run if two
1078: people rebuild, so I think this is the right thing to do.
1079: 
1080: D 3.217 82/10/09 19:06:31   eric    236 235 00000/00000/00005
1081: MRs:    002
1082: Handle Reverse-Path in some reasonable way.  You must put the 'X'
1083: flag (M_FULLSMTP) in the local mailer's flags to get this line.
1084: 
1085: D 3.216 82/10/09 18:11:21   eric    235 234 00000/00000/00005
1086: MRs:    013
1087: print a status indication when a message is autoqueued, either from
1088: a -bq flag or a NoConnect
1089: 
1090: D 3.215 82/10/09 17:22:35   eric    234 233 00000/00000/00005
1091: MRs:    008
1092: Force -v override of deferred connect
1093: 
1094: D 3.214 82/10/09 17:10:37   eric    233 232 00000/00000/00005
1095: MRs:    004
1096: Only put the "from" person on the error queue if an error actually
1097: occured -- prevents many "duplicate supressed" messages, etc.
1098: 
1099: D 3.213 82/10/09 09:05:35   eric    232 231 00000/00000/00005
1100: MRs:    001
1101: implement an experimental forward-path algorithm by stripping off a
1102: leading "@..." component and dropping it on the end.
1103: 
1104: D 3.212 82/10/07 08:52:47   eric    231 230 00000/00000/00005
1105: try to come up with a workaround on some of the IPC problems relating to
1106: interrupted accepts -- all this can go when everyone at Berkeley runs
1107: unflakey IPC.  Also, never use ruleset three alone -- involves changing
1108: canonname again.  Probably shouldn't do an auto-call of ruleset three now.
1109: 
1110: D 3.211 82/10/07 01:40:19   eric    230 229 00000/00000/00005
1111: bother.... it takes time to close a socket
1112: 
1113: D 3.210 82/10/07 00:09:14   eric    229 228 00000/00000/00005
1114: allow passing through multiple rewriting sets in test mode;
1115: <ndir.h> => <dir.h> for maximum portability
1116: 
1117: D 3.209 82/10/06 11:45:40   eric    228 227 00000/00000/00005
1118: add test mode (MD_TEST, -bt)
1119: 
1120: D 3.208 82/09/30 22:29:46   eric    227 226 00000/00000/00005
1121: workaround in daemon accept code for 4.1a kernel bug: if an accept
1122: gets an EINTR and then a valid accept before the interrupt returns,
1123: the connection will be lost forever (at least, as I understand it).
1124: 
1125: D 3.207 82/09/26 17:04:24   eric    226 225 00000/00000/00005
1126: Put more configuration into setoption; merge some of the argv processing
1127: with this; move configuration information out of conf.c into the .cf
1128: file.  Since a lot of stuff will default to zero, a new .cf file is
1129: required.
1130: 
1131: D 3.206 82/09/26 14:45:52   eric    225 224 00000/00000/00005
1132: completely instantiate queue files for all mail, even if not needed;
1133: fix a bug that would probably come up once every ten years in creating
1134: the queue id.  should merge argv flag processing with option processing.
1135: 
1136: D 3.205 82/09/24 19:39:25   eric    224 223 00000/00000/00005
1137: change option implementation; define a bunch of interesting options.
1138: 
1139: D 3.204 82/09/24 09:38:36   eric    223 222 00000/00000/00005
1140: arrange to be able to define options; put precedences in .cf file;
1141: send errors to an Errors-To: field; fix a serious bug causing mail
1142: to not be delivered to anyone if there were any errors.
1143: 
1144: D 3.203 82/09/22 10:50:47   eric    222 221 00000/00000/00005
1145: don't put commas in non-address fields; have -bq clean up its temp files
1146: 
1147: D 3.202 82/09/21 10:15:00   eric    221 220 00000/00000/00005
1148: get rid of double error returns; improve verbose mode output to be
1149: standard format (even though verbose mode isn't standard); output
1150: queue files with commas in headers to insure that the oldstyle stuff
1151: doesn't get confused.
1152: 
1153: D 3.201 82/09/18 20:37:46   eric    220 219 00000/00000/00005
1154: fix botch where it believes that a list is !oldstyle just because
1155: it has an alias expansion in it.
1156: 
1157: D 3.200 82/09/16 20:25:01   eric    219 218 00000/00000/00005
1158: drop ":...;" stuff -- it screws it up aliases; pass parameters to
1159: subroutines (this also adds $@ and $: features to subr calls); check
1160: overflow of "tobuf" on smtp deliveries, which caused core dumps on
1161: large mailing lists
1162: 
1163: D 3.199 82/09/12 22:17:30   eric    218 217 00000/00000/00005
1164: accept ": ... ;" syntax for groups if !oldstyle
1165: 
1166: D 3.198 82/09/12 16:44:03   eric    217 216 00000/00000/00005
1167: change inheritance for macros in envelopes; be able to canonicalize
1168: non-domained names by appending domain from sender; call ruleset 3
1169: explicitly before doing other rulesets; some general cleanup.
1170: 
1171: D 3.197 82/09/11 17:18:16   eric    216 215 00000/00000/00005
1172: don't assign $s to be the sending host (this mucks up Received:
1173: lines) -- instead just use HELO messages; chdir into queue directory
1174: and make all pathnames relative; be more conservative in creating
1175: queue id's -- in the event you get file table overflows, etc.
1176: 
1177: D 3.196 82/09/08 23:55:46   eric    215 214 00000/00000/00005
1178: fix stupid bug in wait code to dispose of "Interrupted system call" message
1179: 
1180: D 3.195 82/09/08 22:13:20   eric    214 213 00000/00000/00005
1181: fix a nasty botch in 3.194 that killed SMTP in daemon mode.   sigh......
1182: 
1183: D 3.194 82/09/08 21:20:05   eric    213 212 00000/00000/00005
1184: try to avoid "Interrupted system call" on wait in deliver and on
1185: writes; fix returned message to have proper sender; handle extra
1186: mailer output more cleverly.
1187: 
1188: D 3.193 82/09/06 19:55:17   eric    212 211 00000/00000/00005
1189: more hacking on oldstyle -- always assume sender fields are in new
1190: style so that locally generated fields are edited correctly.
1191: 
1192: D 3.192 82/09/06 18:47:26   eric    211 210 00000/00000/00005
1193: fix botch in "at"s in headers
1194: 
1195: D 3.191 82/09/06 18:24:40   eric    210 209 00000/00000/00005
1196: fix botch in computing e_oldstyle
1197: 
1198: D 3.190 82/09/06 17:58:40   eric    209 208 00000/00000/00005
1199: fix bug in scanner state machine that never let you out of quote state.
1200: 
1201: D 3.189 82/09/06 17:14:03   eric    208 207 00000/00000/00005
1202: increase log level needed to print "entered" message.
1203: 
1204: D 3.188 82/09/06 17:00:23   eric    207 206 00000/00000/00005
1205: user SMTP fixes to talk to ISI
1206: 
1207: D 3.187 82/09/06 16:24:51   eric    206 205 00000/00000/00005
1208: install new state-driven scanner; make everyone use it, thus fixing
1209: problems of quoted commas, etc.
1210: 
1211: D 3.186 82/09/05 18:08:58   eric    205 204 00000/00000/00005
1212: change $g processing from a macro substitution per mailer to two sets
1213: of rewriting rules per mailer -- one each for sender and recipient
1214: fields; convert to NBS standard on Return-Receipt-To: and Precedence:
1215: fields; clean up From: processing code and generalize it to all
1216: sender fields; tune debugging code; clean up canonname.
1217: **** This delta invalidates previous configuration files ****
1218: 
1219: D 3.185 82/09/05 11:48:27   eric    204 203 00000/00000/00005
1220: add $* to match zero or more and $> to make a "subroutine" call; stick
1221: in initial hooks for per-mailer rewriting; improve diagnostics in readcf,
1222: including number lines; increase the number of rewriting sets.
1223: 
1224: D 3.184 82/09/01 10:24:00   eric    203 202 00000/00000/00005
1225: log entering uid & pid; allow CANONUSER ($:) to abort a rewriting set.
1226: 
1227: D 3.183 82/08/31 17:46:56   eric    202 201 00000/00000/00005
1228: increase MAXMAILERS to 25
1229: 
1230: D 3.182 82/08/31 10:05:56   eric    201 200 00000/00000/00005
1231: clean up reply code processing some more; in particular, give more
1232: detail in many messages.  process connection failures correctly.
1233: 
1234: D 3.181 82/08/29 23:31:35   eric    200 199 00000/00000/00005
1235: handle comments and quotes in headers; still doesn't deal with
1236: backslashes however -- prescan should be cleaned up to deal with
1237: this case.  it turns out there are many bugs in prescan; it should
1238: be extensively rewritten.
1239: 
1240: D 3.180 82/08/29 17:32:49   eric    199 198 00000/00000/00005
1241: fix serious botch in SMTP reply code delta; change a bunch of
1242: "Internal error" codes to a new "Remote protocol error" -- so that
1243: I don't get blamed for things that other systems do.
1244: 
1245: D 3.179 82/08/29 16:52:31   eric    198 197 00000/00000/00005
1246: do a better job at interpreting SMTP reply codes
1247: 
1248: D 3.178 82/08/29 15:52:20   eric    197 196 00000/00000/00005
1249: give 554 message on syserr (instead of 451) if errno == 0; as it
1250: was some permanent errors appeared transient
1251: 
1252: D 3.177 82/08/27 18:01:25   eric    196 195 00000/00000/00005
1253: hack crackaddr to strip blanks off the end of a cracked address; this
1254: happens because "u at h" becomes "$g  " (with two spaces at the end).
1255: this doesn't solve the general case (e.g., "u at h (me)" comes out as
1256: "$g   (me)", with three spaces), but does handle the ugliest case.
1257: besides, the "at" syntax is supposed to go away.
1258: 
1259: D 3.176 82/08/27 16:01:58   eric    195 194 00000/00000/00005
1260: simplify timeout code; allow multiple simultaneous queue runs so that
1261: large messages don't freeze things up; fix EINTR problem in sfgets;
1262: clean up canonname to be really correct; lots of misc. cleanup
1263: 
1264: D 3.175 82/08/27 11:11:40   eric    194 193 00000/00000/00005
1265: release e_id after fork in daemon code; ignore events scheduled by
1266: another process
1267: 
1268: D 3.174 82/08/25 23:18:24   eric    193 192 00000/00000/00005
1269: assign a new queue id to all jobs coming in via TCP
1270: 
1271: D 3.173 82/08/25 21:22:10   eric    192 191 00000/00000/00005
1272: sigh....  more fun and games in the daemon code to try to guess right.
1273: 
1274: D 3.172 82/08/25 19:44:33   eric    191 190 00000/00000/00005
1275: recreate a socket after every failed accept()
1276: 
1277: D 3.171 82/08/25 16:19:23   eric    190 189 00000/00000/00005
1278: apply ruleset 4 to rewrite addresses in the body of the message; fix
1279: a clock.c bug that caused it to lose events; more time cleanup.
1280: 
1281: D 3.170 82/08/25 11:21:21   eric    189 188 00000/00000/00005
1282: clean up time manipulation to always be current; assign job
1283: id's earlier to make sure there is always one with a message.
1284: 
1285: D 3.169 82/08/25 10:46:27   eric    188 187 00000/00000/00005
1286: log locked files in queuer; don't mistakenly start up two runqueue's
1287: 
1288: D 3.168 82/08/24 19:55:39   eric    187 186 00000/00000/00005
1289: put queueup log messages on a higher logging level
1290: 
1291: D 3.167 82/08/24 19:41:32   eric    186 185 00000/00000/00005
1292: log more info (on log level 11); try to detect wild accept loops;
1293: some minor cleanup and debugging checks; fix NoConnect option to;
1294: only apply to expensive mailers (regardless of sendqueue order)
1295: 
1296: D 3.166 82/08/24 10:27:46   eric    185 184 00000/00000/00005
1297: clean up event handling so that events that do longjmp's don't turn
1298: off all future events; diagnose reentry of main().
1299: 
1300: D 3.165 82/08/23 11:59:50   eric    184 183 00000/00000/00005
1301: clean up queueing; log time in queue.
1302: **** This delta invalidates mqueue files ****
1303: 
1304: D 3.164 82/08/23 09:23:54   eric    183 182 00000/00000/00005
1305: allow continuation lines in .cf file (particularly in headers)
1306: 
1307: D 3.163 82/08/22 23:07:11   eric    182 181 00000/00000/00005
1308: change $i to $j; $i is now queue id; put "Received:" format in .cf
1309: file; minor cleanup
1310: 
1311: D 3.162 82/08/22 19:03:19   eric    181 180 00000/00000/00005
1312: assign a unique id to each transaction that can be determined from
1313: the queue file name.
1314: 
1315: D 3.161 82/08/21 17:54:37   eric    180 179 00000/00000/00005
1316: move <> and forward path processing to .cf file; increase MAXATOMS
1317: since some "comment" information may now be part of the address.
1318: **** this installation requires a new sendmail.cf file ****
1319: 
1320: D 3.160 82/08/20 20:35:15   eric    179 178 00000/00000/00005
1321: time stamp the SMTP greeting message; increase the buffer size in
1322: syslog to prevent core dumps.
1323: 
1324: D 3.159 82/08/17 20:45:43   eric    178 177 00000/00000/00005
1325: change Mail-From: to Received: for new SMTP spec (RFC821); handle
1326: folded lines in queue files correctly.
1327: 
1328: D 3.158 82/08/17 16:19:10   eric    177 176 00000/00000/00005
1329: rework header processing: do special purpose header munging in a
1330: separate routine so that the queue run can do it also; parse From lines
1331: in a fancy way, extracting the address part and turning it into a $g
1332: macro; avoid reading and processing core files that end up in the queue
1333: directory; check the queue directory name for legality; fix the verify
1334: (-bv) option.
1335: 
1336: D 3.157 82/08/15 17:35:39   eric    176 175 00000/00000/00005
1337: mark From: lines with the H_FROM bit; make VRFY work by adding the
1338: QuickAbort flag; handle headers more cleverly in queue files -- this
1339: seems to work, but I am frankly nervous.  Note: this version
1340: represents a flag day!-- old queues will not process properly.
1341: 
1342: D 3.156 82/08/15 11:58:25   eric    175 174 00000/00000/00005
1343: output class rather than priority in log; accept zero intervals in
1344: event scheduling; allow continuation lines in queue files (particularly
1345: for headers); don't diagnose inappropriate errors when accepting a
1346: connection; fix bug when reprocessing addresses that put garbage in
1347: the header; some misc. debugging info (-d14 => commaize)
1348: 
1349: D 3.155 82/08/08 21:15:44   eric    174 173 00000/00000/00005
1350: make "sleep" work correctly even in the face of other events; clean
1351: up the queue processing: child queue runs now go away when done.  more
1352: debugging logging is needed to verify that this works right though.
1353: 
1354: D 3.154 82/08/08 17:05:19   eric    173 172 00000/00000/00005
1355: move remotename() from deliver.c to parse.c; change default log level
1356: to 9; put error versus success delivery on different log levels;
1357: diagnose overlength lines in headers; more general event mechanism;
1358: initial implementation of canonname; don't diagnose link errors in
1359: queue, since another daemon could have grabbed it legitimately;
1360: fix a problem in VRFY on bad addresses
1361: 
1362: D 3.153 82/08/08 01:00:25   eric    172 171 00000/00000/00005
1363: change debug level to a debug vector; add levels on logging (and the
1364: -L flag); change logging to be by message-id; elevate message-id;
1365: some lint-type cleanup
1366: 
1367: D 3.152 82/08/07 11:13:15   eric    171 170 00000/00000/00005
1368: Fix address rewriting so that multiple spaces and tabs work properly
1369: 
1370: D 3.151 82/07/31 16:57:49   eric    170 169 00000/00000/00005
1371: don't give error on ETIMEDOUT on accept call; print errno properly
1372: in syserr()
1373: 
1374: D 3.150 82/07/31 12:56:56   eric    169 168 00000/00000/00005
1375: By default, just queue up the mail for most mailers and deliver
1376: from the queue.  This avoids the wild process problem in netnews
1377: (or so we hope).
1378: 
1379: D 3.149 82/07/27 23:09:04   eric    168 167 00000/00000/00005
1380: clean up semantics of daemon mode to facilitate use of other IPC;
1381: move some code to main.c because it is not part of creating a
1382: connection; if you can't create a socket assume there is another
1383: sendmail running and exit; improve the verbose information in an
1384: SMTP connection to make it more obvious which messages went which
1385: way; don't attempt delivery if you get an error reading the queue file.
1386: 
1387: D 3.148 82/07/25 13:11:20   eric    167 166 00000/00000/00005
1388: clean up error handling
1389: 
1390: D 3.147 82/07/22 01:23:15   eric    166 165 00000/00000/00005
1391: new version of syslog that uses 4.2 IPC
1392: 
1393: D 3.146 82/07/20 19:39:15   eric    165 164 00000/00000/00005
1394: be smarter about when to rerun the queue when you are in repeated
1395: queue mode.
1396: 
1397: D 3.145 82/07/14 11:19:27   eric    164 163 00000/00000/00005
1398: disconnect sendmail from the controlling tty in daemon mode.
1399: 
1400: D 3.144 82/07/14 11:00:33   eric    163 162 00000/00000/00005
1401: arrange for MotherPid to be correct in daemon mode
1402: 
1403: D 3.143 82/07/14 10:46:00   eric    162 161 00000/00000/00005
1404: fork automatically in daemon mode (but only if no debugging)
1405: 
1406: D 3.142 82/07/14 09:25:11   eric    161 160 00000/00000/00005
1407: don't accidently unlink a null pointer in finis(); change the way
1408: it decides whether to remove the temp file (you don't want to if you
1409: are queueing it up); fix a bug in Apparently-To: that caused it to
1410: output both pre- and post-expanded names (only output pre-expanded)
1411: 
1412: D 3.141 82/07/05 20:56:24   eric    160 159 00000/00000/00005
1413: flush fatal error flag before returning error messages to avoid error
1414: message loop; improve debugging: flush transcript before doing things
1415: that might take a long time, add some info to debug messages; extend
1416: configuration on timeouts so that text of error message is in conf.c
1417: 
1418: D 3.140 82/07/05 18:49:49   eric    159 158 00000/00000/00005
1419: add "Apparently-To:" field if no recipients are in the header.
1420: 
1421: D 3.139 82/07/05 13:21:21   eric    158 157 00000/00000/00005
1422: count Mail-From: lines to get a hop count, giving error as
1423: appropriate after collection; don't attempt delivery of message if
1424: errors occur before or during collection; fix a bug in -as mode
1425: (non-daemon SMTP).
1426: 
1427: D 3.138 82/07/05 12:37:23   eric    157 156 00000/00000/00005
1428: check for errors before opening a daemon connection
1429: 
1430: D 3.137 82/07/05 12:22:02   eric    156 155 00000/00000/00005
1431: split off clock stuff from util.c so that vacation will compile
1432: 
1433: D 3.136 82/07/05 12:02:53   eric    155 154 00000/00000/00005
1434: put timeouts on net reads
1435: 
1436: D 3.135 82/07/02 20:52:46   eric    154 153 00000/00000/00005
1437: arrange to not lose temporary queue control files (tf files)
1438: if you interrupt a queue run process.
1439: 
1440: D 3.134 82/07/02 10:00:16   eric    153 152 00000/00000/00005
1441: be paranoid about resetting the "FatalErrors" flag -- always reset
1442: after forking for daemon or queue mode.  This will prevent false error
1443: return delivery.
1444: 
1445: D 3.133 82/07/02 09:43:39   eric    152 151 00000/00000/00005
1446: take special care in outputing error messages to the transcript;
1447: a little bit of paranoia never hurt a mail system.
1448: 
1449: D 3.132 82/06/30 22:39:22   eric    151 150 00000/00000/00005
1450: open a separate transcript in the child of a daemon.
1451: 
1452: D 3.131 82/06/26 14:53:40   eric    150 149 00000/00000/00005
1453: clean up error messages on SMTP temporary failures resulting from
1454: failure to connect properly.
1455: 
1456: D 3.130 82/06/26 13:53:35   eric    149 148 00000/00000/00005
1457: more debug information; fix dependencies in makefile
1458: 
1459: D 3.129 82/06/26 13:10:41   eric    148 147 00000/00000/00005
1460: lint
1461: 
1462: D 3.128 82/06/26 12:33:39   eric    147 146 00000/00000/00005
1463: take environment variable "NAME" to determine what your full name
1464: is; this is overridden by -F.
1465: 
1466: D 3.127 82/06/26 11:56:51   eric    146 145 00000/00000/00005
1467: add _kill command to SMTP.  this is probably dangerous in the
1468: outside world.
1469: 
1470: D 3.126 82/06/25 19:38:24   eric    145 144 00000/00000/00005
1471: add debugging information to server smtp code: _debug to set
1472: Debug, _verbose to set verbose, and _showq to show the send queue
1473: (already existant, just a name change)
1474: 
1475: D 3.125 82/06/23 12:12:19   eric    144 143 00000/00000/00005
1476: check prescan return values in remotename
1477: 
1478: D 3.124 82/06/19 21:14:18   eric    143 142 00000/00000/00005
1479: remember to put a newline at the end of the UGLYUUCP line
1480: 
1481: D 3.123 82/06/19 21:09:10   eric    142 141 00000/00000/00005
1482: get rid of comment lines when storing rewriting rules
1483: 
1484: D 3.122 82/06/19 20:47:23   eric    141 140 00000/00000/00005
1485: improve SMTP error reporting
1486: 
1487: D 3.121 82/06/18 11:58:31   eric    140 139 00000/00000/00005
1488: believe host name on SMTP "HELO" line
1489: 
1490: D 3.120 82/06/17 10:44:38   eric    139 138 00000/00000/00005
1491: fix botch in -Q flag (sets AliasFile rather than QueueDir)
1492: 
1493: D 3.119 82/06/16 14:51:16   eric    138 137 00000/00000/00005
1494: allow connection refused as a temporary error; make sure there is
1495: always someone to return the mail to on error
1496: 
1497: D 3.118 82/06/16 14:29:20   eric    137 136 00000/00000/00005
1498: fix botch in outputing "recipient" type lines (e.g., To:)
1499: 
1500: D 3.117 82/06/07 23:53:26   eric    136 135 00000/00000/00005
1501: allow multiple connections; call putline to output FULL_SMTP
1502: lines (to limit line lengths, etc.); involves adding an asm.sed script
1503: to the makefile
1504: 
1505: D 3.116 82/06/07 07:54:55   eric    135 134 00000/00000/00005
1506: make transcripts verbose always; misc. message cleanup, etc.
1507: 
1508: D 3.115 82/06/07 07:06:13   eric    134 133 00000/00000/00005
1509: strip out xlate stuff -- this belongs at a different level
1510: 
1511: D 3.114 82/06/06 23:13:08   eric    133 132 00000/00000/00005
1512: avoid loops by not sending to owner-owner-* -- just send to
1513: owner-owner instead
1514: 
1515: D 3.113 82/06/06 23:05:17   eric    132 131 00000/00000/00005
1516: implement alias owner feature.  this actually works for any user.
1517: basically, if the alias owner-xxx exists, errors sending to xxx will be
1518: sent to that alias rather than to the sender.
1519: 
1520: D 3.112 82/05/31 19:03:47   eric    131 130 00000/00000/00005
1521: make temp files the correct modes in all cases
1522: 
1523: D 3.111 82/05/31 18:49:50   eric    130 129 00000/00000/00005
1524: pass lint.  notice that definitions in llib-lc have changed for
1525: alarm() and sleep() calls {arg was unsigned, is now int}.
1526: 
1527: D 3.110 82/05/31 17:10:51   eric    129 128 00000/00000/00005
1528: eliminate -V, -D, -p flags in favor of a single flag "-bx"
1529: (be in mode x).
1530: 
1531: D 3.109 82/05/31 15:35:57   eric    128 127 00000/00000/00005
1532: don't output SMTP/FTP error codes in transcript file
1533: 
1534: D 3.108 82/05/31 15:32:18   eric    127 126 00000/00000/00005
1535: finish implementing envelopes.  it's not completely clear to me that
1536: this is really the way to go, but it seems clearly better than what
1537: i had before.  this delta includes many other minor changes, so it
1538: should probably not be blithely removed.
1539: 
1540: D 3.107 82/05/30 10:25:35   eric    126 125 00000/00000/00005
1541: add M_FULLSMTP (``X'' flag in .cf file) for eventual implementation
1542: of full SMTP.  This version must support such garbage as line limits,
1543: address length limits, return-path, etc.
1544: 
1545: D 3.106 82/05/29 20:00:30   eric    125 124 00000/00000/00005
1546: allow the user with name "daemon" to send mail as anyone s/he wants.
1547: 
1548: D 3.105 82/05/22 02:05:48   eric    124 123 00000/00000/00005
1549: add "junk mail" -- error responses are never returned.
1550: 
1551: D 3.104 82/05/22 01:38:07   eric    123 122 00000/00000/00005
1552: add "envelopes" to contain the basic information needed as control
1553: info for each message.  currently there is only one envelope -- this
1554: being the obvious stupid conversion.  later there will be separate
1555: envelopes for error messages, return receipts, etc.
1556: 
1557: D 3.103 82/05/20 17:46:07   eric    122 121 00000/00000/00005
1558: add dfopen as a "determined fopen" -- it retries if it gets recoverable
1559: errors.  we use it for returning mail (to dead.letter) and creating the
1560: temp file.  the whole idea is to avoid dropping things on the floor on
1561: heavily loaded systems.  this is untested, since it seems impossible to
1562: fill up the inode or file tables on this VAX (but it works if the open
1563: succeeds).
1564: 
1565: D 3.102 82/05/15 12:29:36   eric    121 120 00000/00000/00005
1566: add the 'R' flag to mailers, saying to rewrite the recipient addresses
1567: to be relative to the recipient.  This makes reply code easy, but
1568: confuses user mail programs that are expecting to have to rewrite
1569: recipient addresses.  In general, the receiving host must be "smart"
1570: for this to work.
1571: 
1572: D 3.101 82/05/06 20:21:14   eric    120 119 00000/00000/00005
1573: allow socket number on [IPC] connections -- eventually this
1574: could be used to handle other low-level protocols.
1575: 
1576: D 3.100 82/03/27 20:15:12   eric    119 118 00000/00000/00005
1577: delete neat remotename feature, because it doesn't work right in
1578: UUCPland -- and breaks stupid hosts.  'Twill be fixed, I promise.  Time
1579: must be spent figuring out how to define the civilized versus the
1580: uncivilized world.
1581: 
1582: D 3.99  82/03/27 19:57:44   eric    118 117 00000/00000/00005
1583: compensate for bug in getlogin: can return the empty string ("")
1584: for certain error conditions rather than the NULL pointer.
1585: 
1586: D 3.98  82/03/22 22:37:54   eric    117 116 00000/00000/00005
1587: continue the impossible task of tracking Bill Joy
1588: 
1589: D 3.97  82/03/22 22:10:44   eric    116 115 00000/00000/00005
1590: more cleanup for new 4.2 system configuration and some more fixes
1591: for vanilla V7
1592: 
1593: D 3.96  82/03/20 18:13:01   eric    115 114 00000/00000/00005
1594: take % as an acceptable name terminator in GECOS field
1595: ("in-care-of") -- for TEF%UCSFCGL
1596: 
1597: D 3.95  82/03/20 16:12:27   eric    114 113 00000/00000/00005
1598: 16 bit changes -- should have no effect on VAX binaries to
1599: speak of.
1600: 
1601: D 3.94  82/03/06 16:11:49   eric    113 112 00000/00000/00005
1602: get queue scanning working correctly in conjunction with daemon mode
1603: 
1604: D 3.93  82/03/06 15:35:49   eric    112 111 00000/00000/00005
1605: have daemon mode assume SMTP mode
1606: 
1607: D 3.92  82/03/06 15:08:24   eric    111 110 00000/00000/00005
1608: give correct error message in SMTP if some of the addresses are not ok
1609: 
1610: D 3.91  82/03/06 14:52:22   eric    110 109 00000/00000/00005
1611: arrange to be able to accept a connection from any host.
1612: 
1613: D 3.90  82/03/06 14:15:55   eric    109 108 00000/00000/00005
1614: collapse special character processing into macro processing for
1615: simplicity of code.
1616: 
1617: D 3.89  82/03/06 12:09:18   eric    108 107 00000/00000/00005
1618: clean up error handling in IPC case; fix a minor bug in headers in
1619: queueing code; make SMTP mail multi user per connect.
1620: 
1621: D 3.88  82/03/05 10:45:48   eric    107 106 00000/00000/00005
1622: remove silly $U dependency in UGLYUUCP code
1623: 
1624: D 3.87  82/03/05 10:13:06   eric    106 105 00000/00000/00005
1625: include direct connect on outgoing mail if the pathname is "[IPC]" --
1626: this gives minimal number of processes for ethernet mail.
1627: 
1628: D 3.86  82/02/27 12:29:31   eric    105 104 00000/00000/00005
1629: more work on after $g translate rewriting
1630: 
1631: D 3.85  82/02/27 11:37:42   eric    104 103 00000/00000/00005
1632: implement "return receipt requested".
1633: 
1634: D 3.84  82/02/27 09:51:36   eric    103 102 00000/00000/00005
1635: improve rewriting of "after $g translate" to correspond to the
1636: real world.....
1637: 
1638: D 3.83  82/02/26 21:56:10   eric    102 101 00000/00000/00005
1639: implement daemon mode
1640: 
1641: D 3.82  82/02/26 19:02:33   eric    101 100 00000/00000/00005
1642: default to OldStyle headers -- this turns out to be needed so that it
1643: will work right when running as a server.
1644: 
1645: D 3.81  82/02/22 19:59:16   eric    100 99  00000/00000/00005
1646: some hacks to make the ethernet community happier -- .cf changes only
1647: 
1648: D 3.80  82/02/22 19:32:12   eric    99  98  00000/00000/00005
1649: be much more clever about splitting up addresses when doing header
1650: rewriting.  become NewStyle automatically based on heuristics; this
1651: makes some other addresses work, although there are conceivably
1652: sites that this could break.  Perhaps we should default to OldStyle?
1653: I don't think this would break anything.
1654: 
1655: D 3.79  82/02/20 16:56:02   eric    98  97  00000/00000/00005
1656: output names in a nice comma-separated fashion in messages -- this
1657: opens up other possibilities
1658: 
1659: D 3.78  82/02/20 12:59:46   eric    97  96  00000/00000/00005
1660: expand macros in rewriting rules early to allow multi-word macros to
1661: be processed correctly.
1662: 
1663: D 3.77  82/02/20 12:12:09   eric    96  95  00000/00000/00005
1664: add the -c flag, to cause sendmail to just queue messages that are for
1665: mailers that are expensive; a later instantiation can come around and
1666: send them in a batch.  Also, pass macro definitions through the
1667: queueing code so that macros can be expanded later rather than sooner;
1668: this is important for destination dependent macros such as $g.
1669: 
1670: D 3.76  82/02/04 20:31:21   eric    95  94  00000/00000/00005
1671: add host aliasing; add -p flag.  this version doesn't yet know about
1672: replacing the text of the host alias into the message however.  syntax
1673: is grotty: "/hostmatch:%s@newhost" or whatever.
1674: 
1675: D 3.75  82/01/23 14:21:06   eric    94  93  00000/00000/00005
1676: add M_UGLYUUCP flag; only catch names with leading slash as filenames;
1677: let the user redefine their full name; don't pass -r or -f to uux.
1678: 
1679: D 3.74  82/01/10 21:57:33   eric    93  92  00000/00000/00005
1680: cleanup from cbosgd (Mark Horton) testing; some internals, mostly
1681: configuration.  This tries to make the configuration file (cf.m4) be
1682: much more general, but I fear it is doomed to failure -- it may be
1683: better to just tell people to roll their own.
1684: 
1685: D 3.73  82/01/05 09:59:19   eric    92  91  00000/00000/00005
1686: fix botch in UGLYUUCP code -- gave "remote from <dest>" instead of
1687: "remote from <source>"
1688: 
1689: D 3.72  82/01/01 18:39:43   eric    91  90  00000/00000/00005
1690: know about all known Berknet host names so that we can handle the "."
1691: notation happily in the full name representation.
1692: 
1693: D 3.71  82/01/01 18:27:15   eric    90  89  00000/00000/00005
1694: send to dead.letter using sendto/recipient/deliver mechanism rather
1695: than mailfile; this fixes a bug with the "from" name and seems like
1696: a better abstraction.
1697: 
1698: D 3.70  81/12/06 12:39:10   eric    89  88  00002/00000/00003
1699: cleanup so it will go through lint without any fancy grep -v's;
1700: change the way SCCS Id's are handled.
1701: 
1702: D 3.69  81/12/05 14:14:06   eric    88  87  00000/00000/00003
1703: insert SMTP "Mail-From:" line.
1704: 
1705: D 3.68  81/12/05 11:53:41   eric    87  86  00000/00000/00003
1706: put the SMTP and queueing code on compilation flags so that sendmail
1707: will fit on non-ID PDP-11's (ugh); put the ugly UUCP hack on a
1708: compilation flag also to emphasize that it sucks eggs; makefile
1709: cleanup.
1710: 
1711: D 3.67  81/11/27 21:37:05   eric    86  85  00000/00000/00003
1712: this is a stupid hack to put "remote from <host>" lines on the From
1713: lines going to UUCP mail.  someday i hope to rip out this stupidity.
1714: it is triggered by any mailer named "uucp" -- it ought to be a special
1715: flag, but i refuse to legitimize antique hacky mistakes.
1716: 
1717: D 3.66  81/11/22 19:17:45   eric    85  84  00000/00000/00003
1718: Edit queue control files when running queue (assuming there are still
1719: recipients left).  Also, modify the MsgPriority to be the absolute
1720: number (not the Priority: value); this allows us to include aging into
1721: the priority algorithm.
1722: 
1723: D 3.65  81/11/21 18:42:47   eric    84  83  00000/00000/00003
1724: change the send queue to be only one queue instead of one per mailer.
1725: this is slightly inefficient but simpler.  also, pass this queue
1726: around so we can have multiple send queues.  this makes VRFY work.
1727: 
1728: D 3.64  81/11/21 16:38:29   eric    83  82  00000/00000/00003
1729: convert to SMTP draft 3 -- finishing touches.  Punt on the VRFY/
1730: EXPN commands for now; they aren't required anyhow.  Move the fullname
1731: into the address structure so it can be inherited.
1732: 
1733: D 3.63  81/11/11 20:24:07   eric    82  81  00000/00000/00003
1734: integrate user SMTP into sendmail itself.  If there is no $u arg
1735: in the mailer argument list, SMTP is run.  This can be used directly
1736: over the Ethernet or to any clever mailer.  We still need to edit
1737: spooled control files to remove recipients that have been successfully
1738: sent during queue processing.
1739: 
1740: D 3.62  81/11/08 13:00:21   eric    81  80  00000/00000/00003
1741: know about SMTP over TCP.  The current SMTP user is not clever
1742: enough to deal with multiple users at one host.  To fix this we will
1743: have to speak some smart protocol between sendmail and the mailer --
1744: maybe SMTP??
1745: 
1746: D 3.61  81/11/07 15:41:39   eric    80  79  00000/00000/00003
1747: clean up to compile & work on ARPAVAX; move stat file to
1748: /usr/lib/sendmail.st; fix bug in syserr with error codes
1749: 
1750: D 3.60  81/10/31 22:12:47   eric    79  78  00000/00000/00003
1751: drop old NCP stuff for ARPANET handling; fix some bugs in error
1752: messages with multiple recipients in SMTP; clean up error handling
1753: 
1754: D 3.59  81/10/27 12:24:51   eric    78  77  00000/00000/00003
1755: experimental version combining queueing with daemon operation.
1756: I'm sure this doesn't work -- if only because the wait()s are funny.
1757: 
1758: D 3.58  81/10/27 10:50:52   eric    77  76  00000/00000/00003
1759: More queueing cleanup: implement timeouts (still one-stage),
1760: properly implement priorities (didn't work before), and miscellaneous
1761: cleanup.
1762: 
1763: D 3.57  81/10/26 14:22:34   eric    76  75  00000/00000/00003
1764: Install new experimental queueing facility -- one stage timeout,
1765: etc.  This version is still quite incomplete.  It needs to reorder
1766: the queue after some interval, do two-stage timeout, take option
1767: info from the queue file instead of the command line, read the
1768: sender's .mailcf file, etc.  Some of this is useful for SMTP also.
1769: 
1770: D 3.56  81/10/23 19:38:09   eric    75  74  00000/00000/00003
1771: Eliminate magic MN_LOCAL and MN_PROG; change q_mailer item in ADDRESS
1772: to be pointer to mailer rather than index.
1773: 
1774: D 3.55  81/10/22 10:25:29   eric    74  73  00000/00000/00003
1775: move stats file to /usr/lib; put location of sendmail.hf in conf.c
1776: 
1777: D 3.54  81/10/22 09:43:48   eric    73  72  00000/00000/00003
1778: take fullname from /etc/passwd if Smtp mode and sender name
1779: is indeed local.  Also accepts names more often; this is probably
1780: a disaster for sender verification.
1781: 
1782: D 3.53  81/10/22 09:14:30   eric    72  71  00000/00000/00003
1783: implement HELP and MRSQ -- MRSQ is a partial implementation
1784: of old MTP -- in particular, To: fields in MAIL commands are not yet
1785: implemented.  The "message" routine now takes first args of the form
1786: "999-" to specify continuation.
1787: 
1788: D 3.52  81/10/20 11:36:24   eric    71  70  00000/00000/00003
1789: clean up the SMTP stuff some more
1790: 
1791: D 3.51  81/10/19 22:27:17   eric    70  69  00000/00000/00003
1792: implement SMTP mode -- doesn't support source routing or the
1793: HELP command, and doesn't give the correct code on VRFY or forwarding.
1794: Maybe someday....
1795: 
1796: D 3.50  81/10/17 16:58:04   eric    69  68  00000/00000/00003
1797: initial prep to put in Daemon mode
1798: 
1799: D 3.49  81/10/12 10:04:19   eric    68  67  00000/00000/00003
1800: throw in some "errno = 0;"'s to make syserr's more accurate;
1801: take any -f flag if debug mode and uid==euid.
1802: 
1803: D 3.48  81/10/08 22:55:37   eric    67  66  00000/00000/00003
1804: ignore interrupts and hangups while calling mailer.
1805: 
1806: D 3.47  81/10/08 09:13:30   eric    66  65  00000/00000/00003
1807: fix botch in backup code during rewriting
1808: 
1809: D 3.46  81/10/06 19:12:57   eric    65  64  00000/00000/00003
1810: change rewriting rules to use $N on RHS to match LHS, and include
1811: $=X (class match) in the matching; this will allow us to match the
1812: proposed "user.host@domain" syntax as well as the old syntax, by
1813: putting the known domains into a class to disambiguate.
1814: 
1815: D 3.45  81/10/02 11:05:21   eric    64  63  00000/00000/00003
1816: arrange to give the correct "from" person on error messages.
1817: 
1818: D 3.44  81/10/02 10:07:38   eric    63  62  00000/00000/00003
1819: use ruleset 2 to rewrite names after the $g translate (to fix some
1820: forwarding problems; do a read check in putmessage (just in case
1821: the temp file disappeared); some general cleanup.
1822: 
1823: D 3.43  81/09/30 10:00:20   eric    62  61  00000/00000/00003
1824: fix the <> syntax, convert "at" to "@" in from addresses also,
1825: plus some minorness to get the multi-machine case going nicely.
1826: 
1827: D 3.42  81/09/29 18:22:25   eric    61  60  00000/00000/00003
1828: change processing of From: person; basically, this mod deletes the
1829: Original-From: line if redundant with the generated From: line, uses
1830: the Original-From: line for the From: line if possible, and a host of
1831: other such trivialities.
1832: 
1833: D 3.41  81/09/29 14:59:00   eric    60  59  00000/00000/00003
1834: fix hash function computation for symbol table on 16-bit machines
1835: 
1836: D 3.40  81/09/28 19:17:29   eric    59  58  00000/00000/00003
1837: enable aliases to self-reference themselves correctly.
1838: 
1839: D 3.39  81/09/24 10:30:44   eric    58  56  00000/00000/00003
1840: changes to work under a V6 system -- mostly compilation flags
1841: 
1842: D 3.38.1.1  81/09/23 18:23:19   eric    57  56  00000/00000/00003
1843: break some configuration into conf.h -- simplifies makefile changes
1844: on different machines.  But there are still conditional libraries, so
1845: this may not be a good idea.....
1846: 
1847: D 3.38  81/09/23 09:52:23   eric    56  55  00000/00000/00003
1848: fix bug in file modes when mailing to files that didn't exist before;
1849: add an 'F' line to the .cf file that will read class entries from
1850: another file, given a scanf string to do the parsing.
1851: 
1852: D 3.37  81/09/22 13:24:25   eric    55  54  00000/00000/00003
1853: fix problem with using macros in rules; change configuration to send
1854: different flags when destined for arpanet vs. berknet hosts, etc.
1855: 
1856: D 3.36  81/09/22 11:33:29   eric    54  53  00000/00000/00003
1857: finally make suppression of sender in mailing lists work -- this version
1858: also works correctly on simple aliases.
1859: 
1860: D 3.35  81/09/21 18:49:53   eric    53  52  00000/00000/00003
1861: fix suppression of from address in mailing lists.
1862: 
1863: D 3.34  81/09/20 10:46:32   eric    52  51  00000/00000/00003
1864: don't let a mailer ever execute as root (that should solve the
1865: security problems!) -- essentially just map root into someone else.
1866: Adds yet another configuration variable (should this be in the .cf file?
1867: 
1868: D 3.33  81/09/16 20:04:26   eric    51  50  00000/00000/00003
1869: take underscore as well as space to separate parts of a person's
1870: full name.  Dot notation should be made to work someday also.
1871: 
1872: D 3.32  81/09/16 17:16:19   eric    50  49  00000/00000/00003
1873: have .forward ownership stick harder than :include: ownership:
1874: this prevents cretins from using writable root files for nastiness.
1875: all this is pointless if /usr/lib/aliases is writable though....
1876: 
1877: D 3.31  81/09/16 16:39:44   eric    49  48  00000/00000/00003
1878: be REALLY clever and inherit uid/gid from owner of :include:
1879: files also...   solves problem of alias to non-secure file
1880: 
1881: D 3.30  81/09/16 16:24:19   eric    48  47  00000/00000/00003
1882: last delta was too paranoid -- this increases the number of
1883: cases that work (but is still safe -- I hope)
1884: 
1885: D 3.29  81/09/16 16:08:08   eric    47  46  00000/00000/00003
1886: run as the user forwarding mail after a .forward operation;
1887: fix a bug in .forwarding that caused recursive expansion;
1888: restrict mail to programs, files, and with :include: for security
1889: reasons.
1890: 
1891: D 3.28  81/09/14 12:41:28   eric    46  45  00000/00000/00003
1892: check MAXATOM overflow; increase MAXATOM value
1893: 
1894: D 3.27  81/09/14 12:19:23   eric    45  44  00000/00000/00003
1895: fix but in mailers that only take one address at a time
1896: 
1897: D 3.26  81/09/12 17:34:05   eric    44  43  00000/00000/00003
1898: match on full name for local users
1899: 
1900: D 3.25  81/09/12 15:48:57   eric    43  42  00000/00000/00003
1901: change From: processing to reduce the number of Original-From:
1902: lines; change allocation of global variables.
1903: 
1904: D 3.24  81/09/07 14:12:48   eric    42  41  00000/00000/00003
1905: fix up umask; allow setuid on files to take recipient owner;
1906: factor some configuration info into conf.c
1907: 
1908: D 3.23  81/09/07 12:33:38   eric    41  40  00000/00000/00003
1909: add auto-rebuild on alias database; fix some aliasing bugs;
1910: add statistics to rebuild; slight code restructuring; change
1911: version handling one last (?) time
1912: 
1913: D 3.22  81/09/07 10:23:04   eric    40  39  00000/00000/00003
1914: add NOTUNIX compile flag to turn off UNIX "From " line processing
1915: 
1916: D 3.21  81/09/06 19:50:23   eric    39  38  00000/00000/00003
1917: cleanup, commenting, linting, etc.
1918: 
1919: D 3.20  81/09/06 14:23:20   eric    38  37  00000/00000/00003
1920: improve "version:" entry in makefile; fix -em (mail back errors) option
1921: 
1922: D 3.19  81/09/06 10:29:49   eric    37  36  00000/00000/00003
1923: fix $u argument processing bug (happened in uucp); .cf file cleanup
1924: 
1925: D 3.18  81/08/31 21:22:39   eric    36  35  00000/00000/00003
1926: collect mail statistics; minor configuration changes
1927: 
1928: D 3.17  81/08/31 12:11:57   eric    35  34  00000/00000/00003
1929: allow "error" as a net name to print error messages
1930: 
1931: D 3.16  81/08/29 19:16:24   eric    34  33  00000/00000/00003
1932: drop unnecessary H_FORCE bits in conf.c; delete H_DELETE
1933: (since H_ACHECK can be used with a zero mask field)
1934: 
1935: D 3.15  81/08/27 11:42:58   eric    33  32  00000/00000/00003
1936: on -t, use argument list as a supress list
1937: 
1938: D 3.14  81/08/25 16:06:37   eric    32  31  00000/00000/00003
1939: change handling of <LWSP> characters; remove special
1940: "at" processing (put it in .cf file)
1941: 
1942: D 3.13  81/08/24 14:05:39   eric    31  30  00000/00000/00003
1943: Add "-t" option to read To:, Cc:, and Bcc: lines to get recipients
1944: 
1945: D 3.12  81/08/23 12:08:53   eric    30  29  00000/00000/00003
1946: plug assorted security holes
1947: 
1948: D 3.11  81/08/22 17:52:06   eric    29  28  00000/00000/00003
1949: Arrange to pull full name out of From line if found; includes
1950: Original-From: hacking (oh so ugly).  There's got to be a better way
1951: to do this...
1952: 
1953: D 3.10  81/08/22 14:45:27   eric    28  27  00000/00000/00003
1954: fix UNIX From line parsing problem; add $b macro to get
1955: correct dates; fix mail-to-file problem; define basic macros
1956: before cracking arguments so that -D is more useful
1957: 
1958: D 3.9   81/08/21 18:51:33   eric    27  26  00000/00000/00003
1959: return transcript even if no message was collected
1960: 
1961: D 3.8   81/08/21 18:23:53   eric    26  25  00000/00000/00003
1962: drop M_FINAL, add $y=ttyname, rename some constants
1963: 
1964: D 3.7   81/08/20 15:19:50   eric    25  24  00000/00000/00003
1965: internal cleanup & minor improvements
1966: 
1967: D 3.6   81/08/18 11:40:37   eric    24  23  00000/00000/00003
1968: allow :include: specs
1969: 
1970: D 3.5   81/08/17 11:02:12   eric    23  22  00000/00000/00003
1971: implement hashing in symbol table and add more headers, from
1972: BB&N Report No. ICST/CBOS - 80/2, "Specification of a Draft Message
1973: Format Standard (Draft Report)", prepared for NBS.
1974: 
1975: D 3.4   81/08/09 19:08:25   eric    22  21  00000/00000/00003
1976: put mailer definitions into configuration file
1977: 
1978: D 3.3   81/03/28 11:52:37   eric    21  20  00003/00001/00000
1979: change format of Version to be suitable for internal use
1980: 
1981: D 3.2   81/03/20 09:45:43   eric    20  19  00001/00001/00000
1982: change name (again); from postbox to sendmail
1983: 
1984: D 3.1   81/03/07 14:27:18   eric    19  18  00001/00001/00000
1985: ----- delivermail ==> postbox -----
1986: 
1987: D 2.8   81/02/28 11:54:11   eric    18  17  00000/00000/00001
1988: install VAX mpx file logging
1989: 
1990: D 2.7   81/02/05 08:01:25   eric    17  16  00000/00000/00001
1991: always issued a delivermail error message regardless of M_QUIET
1992: 
1993: D 2.6   81/01/10 14:28:41   eric    16  15  00000/00000/00001
1994: include ArpaLocal; flush output on errors; allow
1995: "user" "at" "host" as separate parameters; etc.
1996: 
1997: D 2.5   81/01/08 23:57:31   eric    15  14  00000/00000/00001
1998: fixed botch in at => @ translation
1999: 
2000: D 2.4   81/01/08 19:37:22   eric    14  13  00000/00000/00001
2001: fixed several bugs in parser; translate <lwsp> into quoted .
2002: 
2003: D 2.3   80/12/06 17:33:32   eric    13  12  00000/00000/00001
2004: fix ^D botch in maketemp; allow "eric:eric,i.eric"
2005: 
2006: D 2.2   80/11/20 19:57:57   eric    12  11  00000/00000/00001
2007: make dates be taken as date sent rather than date delivered
2008: 
2009: D 2.1   80/11/05 11:00:06   eric    11  10  00000/00000/00001
2010: release 2
2011: 
2012: D 1.10  80/10/28 23:52:38   eric    10  9   00000/00000/00001
2013: fixed ANOTHER bug in aliasing (this is getting dull....)
2014: 
2015: D 1.9   80/10/27 19:28:30   eric    9   8   00000/00000/00001
2016: fix alias bug; count message sizes; map stderr->stdout; misc.
2017: 
2018: D 1.8   80/10/21 12:58:43   eric    8   7   00000/00000/00001
2019: install dbm stuff + fix quoting bugs
2020: 
2021: D 1.7   80/10/18 16:48:51   eric    7   6   00000/00000/00001
2022: cleanup for dbm stuff: Error => Errors; move local host
2023: detection into parse; misc cleanup
2024: 
2025: D 1.6   80/10/15 10:24:24   eric    6   5   00000/00000/00001
2026: deal with disk overflows
2027: 
2028: D 1.5   80/10/11 20:10:44   eric    5   4   00000/00000/00001
2029: fixed problem with sizeof MsgId == 0
2030: 
2031: D 1.4   80/10/11 18:55:35   eric    4   3   00000/00000/00001
2032: cleanup to simplify distribution
2033: 
2034: D 1.3   80/10/11 13:49:55   eric    3   2   00000/00000/00001
2035: accept multi-line fields in headers
2036: 
2037: D 1.2   80/10/11 13:37:53   eric    2   1   00000/00000/00001
2038: test
2039: 
2040: D 1.1   80/10/11 13:34:43   eric    1   0   00001/00000/00000
2041: 
2042: code versions:
2043: 
2044: conf.o
2045:     conf.c  5.14 (Berkeley) 1/10/86
2046: main.o
2047:      Copyright (c) 1980 Regents of the University of California.
2048:     main.c  5.11 (Berkeley) 1/30/86
2049:     sendmail.h  5.8     1/10/86
2050: collect.o
2051:     collect.c   5.2 (Berkeley) 6/8/85
2052: parseaddr.o
2053:     parseaddr.c 5.6 (Berkeley) 4/2/86
2054: alias.o
2055:     alias.c 5.13 (Berkeley) 4/17/86 (with DBM)
2056: deliver.o
2057:     deliver.c   5.10 (Berkeley) 3/2/86
2058: savemail.o
2059:     savemail.c  5.7 (Berkeley) 12/7/85
2060: err.o
2061:     err.c   5.7 (Berkeley) 11/22/85
2062: readcf.o
2063:     readcf.c    5.10 (Berkeley) 1/11/86
2064: stab.o
2065:     stab.c  5.2 (Berkeley) 6/7/85
2066: headers.o
2067:     headers.c   5.7 (Berkeley) 9/21/85
2068: recipient.o
2069:     recipient.c 5.7 (Berkeley) 1/9/86
2070: stats.o
2071:     stats.c 5.8 (Berkeley) 5/2/86
2072: daemon.o
2073:     daemon.c    5.18 (Berkeley) 4/2/86 (with daemon mode)
2074: usersmtp.o
2075:     usersmtp.c  5.7 (Berkeley) 4/2/86
2076: srvrsmtp.o
2077:     srvrsmtp.c  5.18 (Berkeley) 1/5/86
2078: queue.o
2079:     queue.c 5.21 (Berkeley) 4/17/86
2080: macro.o
2081:     macro.c 5.3 (Berkeley) 9/19/85
2082: util.o
2083:     util.c  5.8 (Berkeley) 12/17/85
2084: clock.o
2085:     clock.c 5.4 (Berkeley) 12/17/85
2086: trace.o
2087:     trace.c 5.2 (Berkeley) 6/7/85
2088: envelope.o
2089:     envelope.c  5.12 (Berkeley) 12/17/85
2090: sysexits.o
2091:     sysexits.c  5.2 (Berkeley) 6/7/85
2092: arpadate.o
2093:     arpadate.c  5.4 (Berkeley) 1/9/86
2094: convtime.o
2095:     convtime.c  5.1 (Berkeley) 6/7/85
2096: 
2097: # endif COMMENT

Defined functions

A defined in line 745; used 5 times
Amos defined in line 167; never used
Copyright defined in line 2023; used 2 times
ECONNRESET defined in line 502; never used
ENETUNREACH defined in line 775; never used
H_DELETE defined in line 1932; never used
Standard defined in line 1955; never used
VAX defined in line 1525; used 2 times
X defined in line 1801; never used
addresses defined in line 543; used 15 times
aliasing defined in line 2004; used 2 times
c defined in line 290; used 48 times
cbosgd defined in line 1677; never used
changes defined in line 886; used 21 times
crlf defined in line 688; never used
date defined in line 620; used 5 times
delimiters defined in line 549; never used
disconnect defined in line 886; used 3 times
early defined in line 745; used 2 times
efo defined in line 363; never used
em defined in line 1920; used 1 times
error defined in line 337; used 182 times
field defined in line 1525; used 10 times
files defined in line 1424; used 26 times
fix defined in line 697; used 76 times
flag defined in line 1464; used 31 times
forever defined in line 1115; used 1 times
from defined in line 549; used 49 times
h defined in line 999; used 5 times
hacking defined in line 1949; used 2 times
half defined in line 697; used 1 times
headers defined in line 328; used 15 times
info defined in line 1347; used 7 times
last defined in line 1910; used 6 times
lines defined in line 1494; used 20 times
log defined in line 1024; used 16 times
mail defined in line 1525; used 19 times
mailers defined in line 1294; used 5 times
main defined in line 1298; used 5 times
message defined in line 620; used 41 times
minutes defined in line 1074; used 2 times
mode defined in line 1424; used 29 times
names defined in line 1409; used 12 times
netnews defined in line 1372; never used
newstr defined in line 688; used 1 times
oeq defined in line 620; never used
optimizations defined in line 258; never used
parameter defined in line 620; used 2 times
password defined in line 1024; used 1 times
processing defined in line 1939; used 19 times
queue defined in line 1708; used 57 times
recipients defined in line 697; used 6 times
refreezing defined in line 839; never used
refused defined in line 401; used 1 times
remotename defined in line 1350; used 3 times
repeatable defined in line 258; never used
sleep defined in line 1506; never used
spontaneously defined in line 793; never used
string defined in line 1525; used 2 times
structure defined in line 886; used 5 times
syserr defined in line 1372; used 5 times
translate defined in line 1811; used 2 times
verify defined in line 1333; used 2 times
wait defined in line 1752; used 184 times
work defined in line 1853; used 17 times
yourself defined in line 392; used 1 times
  • in line 44

Defined variables

D defined in line 55; used 474 times
SccsId defined in line 12; used 1 times
  • in line 41
Version defined in line 15; used 1 times
allow defined in line 56; used 21 times
classes defined in line 56; used 1 times
eric defined in line 55; used 466 times
in defined in line 56; used 225 times
leave defined in line 53; used 1 times
multiple defined in line 56; used 11 times
of defined in line 53; used 108 times
per defined in line 56; used 8 times
periods defined in line 53; never used
rather defined in line 53; used 14 times
than defined in line 53; used 19 times
the defined in line 53; used 263 times
them defined in line 53; used 5 times
top defined in line 53; never used
toward defined in line 53; never used
words defined in line 56; never used
Last modified: 1986-05-03
Generated: 2016-12-26
Generated by src2html V0.67
page hit count: 8196
Valid CSS Valid XHTML 1.0 Strict