Commit Graph

32 Commits

Author SHA1 Message Date
christos d43ad774cc Add Auto-Submitted: header per RFC 3834, from OpenBSD 2006-08-15 16:21:59 +00:00
christos 9e8b7b7aae PR/34095: Brian Buhrow: Vacation(1) core dumps when there is a Subject:
header with no content
2006-07-27 00:10:42 +00:00
christos 4a49cd4b02 Align usage with other vendor unices:
old -f -> -F
    old -t -> -T
    add -j
    add -f <datafile>
    add -m <msgfile>
    add -t <interval>, as an alias to -r and recognize <num>{w,d,h,m,s}
    add -s <sender>
    document -I as an alias to -i
Also, interpret $SUBJECT in the message.
Correct documentation.
2004-08-19 13:43:54 +00:00
christos 2a1bd4a323 - more void casts
- knf nits
- check for fdopen failure
2004-04-05 23:11:34 +00:00
wiz 2be3546ee6 Use setprogname(); sort options in usage. 2004-04-04 10:29:20 +00:00
christos ea764b2823 - add debugging flag
- use getprogname everywhere
- fix bug where if no .vacation.db existed, and the first message was not
  suitable for reply, vacation would create a 0 length db file, and from
  then on it would fail to process.
- handle e-mail address parsing better.
2004-04-04 01:19:35 +00:00
christos 911c325c50 reverse logic in from test; from wiz 2004-04-03 23:57:32 +00:00
christos 58fa7a1588 - Fix bug in the determination of apparently-to and delivered-to.
- Add -f flag to look in Sender:, From:, and Return-Path: for the sender.
2004-04-03 20:55:13 +00:00
agc 89aaa1bb64 Move UCB-licensed code from 4-clause to 3-clause licence.
Patches provided by Joel Baker in PR 22365, verified by myself.
2003-08-07 11:13:06 +00:00
itojun 870f37306c use bounded string op 2003-07-14 09:24:00 +00:00
christos 3a1e3ae4c9 Add flags to look in Apparently-To: or Delivered-To: fields. Inspired by jhawk. 2003-04-20 03:32:50 +00:00
christos 3de451fe1e PR/5039: Greg A. Woods: vacation should look at Apparently-To: and
Delivered-To: headers.
2003-04-20 01:58:00 +00:00
perry b88a15cf9c Add some missing voids. 2003-02-18 19:21:33 +00:00
lukem b792d3dea5 revert part of previous, and change back to LOG_USER (from LOG_MAIL).
however, unlike the original behaviour, this has been done with an explicit
openlog(...,LOG_USER) to make it more obvious what facility is used.
2001-01-10 23:15:42 +00:00
lukem 4d27ed96d9 use LOG_MAIL (instead of default, which is LOG_USER)
log all fatal errors to LOG_ERR
2001-01-10 12:34:50 +00:00
mjl ecb8be475b Fix name comparison bug due to questionable microoptimisation,
reported by Thilo Manske <Thilo.Manske@HEH.Uni-Oldenburg.DE>
in PR/10638.
2000-07-21 01:21:31 +00:00
christos 9622cbbfb5 char -> unsigned char 1998-12-19 23:37:14 +00:00
mycroft b223acf69a const poisoning. 1998-07-26 23:03:30 +00:00
cgd 0e1f4daac8 can't use fclose() in vforked() child this way. Fixes PR 5582. 1998-07-08 00:34:53 +00:00
mikel fe49cec369 syslog(3) cleanup: don't append \n, use %m instead of %s & strerror(3) 1998-02-07 07:06:24 +00:00
thorpej d616cbff44 Change an exit() -> _exit(), so that it's safe for vfork(). 1997-12-31 06:13:24 +00:00
lukem 73d70748a8 remove WARNS=0 here, use ANSI string funcs, fix .Nm usage 1997-10-20 02:53:02 +00:00
mikel f08412063c update for use with WARNS=1:
- use <sys/cdefs.h> __COPYRIGHT() and __RCSID() macros
- add parens and main() prototype to shut up gcc -Wall
also replace {,r}index() with str{,r}chr(), nuke 'register', and
  otherwise KNFify and clean up
1997-09-20 05:50:45 +00:00
mrg 8e81f950a4 Ensure that option processing is complete before externally supplied
arguments are passed to sendmail.
1997-08-28 08:13:41 +00:00
pk 4e8f3bc55c * NULL => 0 (Arne Juul; PR#3629)
* Use braces in initializers.
1997-05-17 20:24:26 +00:00
cgd 7a9112fdf0 XXX casts of LONG_MAX. this is wrong, and is marked as such. 1995-04-29 05:58:27 +00:00
jtc 5720e226ae misc cleanup by jimj and myself. 1994-12-21 07:11:00 +00:00
jtc 9afe744ec4 Merged with 4.4lite.
Changed to conform to NetBSD's new RCS Id conventions.
1994-11-17 07:55:49 +00:00
mycroft e9d867ef50 Add RCS identifiers. 1993-08-01 17:54:45 +00:00
mycroft 1713e2d1dd s/R_PUT/0/ 1993-04-26 02:02:47 +00:00
proven 01d55229cc Changed hash_open to dbopen. 1993-04-21 08:14:39 +00:00
cgd 61f282557f initial import of 386bsd-0.1 sources 1993-03-21 09:45:37 +00:00