]> diplodocus.org Git - mdeliver/log
mdeliver
23 years ago(run_processor): New function.
epg [Sun, 8 Sep 2002 07:52:40 +0000 (07:52 +0000)]
(run_processor): New function.

(main): Move the logic of running the optional message processor to
the new run_processor function.

23 years ago(main): If running the optional program on the newly delivered message
epg [Fri, 6 Sep 2002 07:19:16 +0000 (07:19 +0000)]
(main): If running the optional program on the newly delivered message
fails, save errno before getting to work on creating an error file.

23 years ago(save_errno): New macro.
epg [Fri, 6 Sep 2002 07:08:49 +0000 (07:08 +0000)]
(save_errno): New macro.

Use save_errno to protect errno in the 101 places i was calling
unlink(2) and then err(3), possibly reporting the wrong error message.

23 years ago(get_filename): Handle failure cases for time(3) and gmtime(3).
epg [Fri, 6 Sep 2002 06:32:49 +0000 (06:32 +0000)]
(get_filename): Handle failure cases for time(3) and gmtime(3).

23 years ago(get_filename): Restore errno before returning.
epg [Fri, 6 Sep 2002 06:29:47 +0000 (06:29 +0000)]
(get_filename): Restore errno before returning.

23 years agoOnly include <sysexits.h> if MDELIVER_EXITCODE is not defined, and if
epg [Fri, 6 Sep 2002 05:58:27 +0000 (05:58 +0000)]
Only include <sysexits.h> if MDELIVER_EXITCODE is not defined, and if
it isn't defined, define it to EX_TEMPFAIL.  Change all references to
EX_TEMPFAIL to MDELIVER_EXITCODE.

23 years ago(strip_from): DOH! This will teach me to code at 2:30 in the middle
epg [Sun, 25 Aug 2002 07:39:04 +0000 (07:39 +0000)]
(strip_from): DOH!  This will teach me to code at 2:30 in the middle
of the night.  Use strncmp(3) correctly.

23 years agoDocument the get_filename, strip_from, and copy_message functions.
epg [Sun, 25 Aug 2002 07:22:41 +0000 (07:22 +0000)]
Document the get_filename, strip_from, and copy_message functions.

23 years ago(get_filename): Check gethostname(3) return value.
epg [Sun, 25 Aug 2002 07:11:23 +0000 (07:11 +0000)]
(get_filename): Check gethostname(3) return value.

23 years agoReorganize the deliver function, splitting out logical units into the
epg [Sun, 25 Aug 2002 07:05:50 +0000 (07:05 +0000)]
Reorganize the deliver function, splitting out logical units into the
separate functions deliver, get_filename, strip_from, and
copy_message.

(get_filename): Move deliver's filename-getting code to this new
function.

(strip_from): Move deliver's busted-from-line stripping code to this
new function.

(copy_message): Move deliver's stdin-to-new-file-copying code to this
new function.

(deliver): Call the above new functions appropriately.

23 years ago(deliver): Check for and strip 'From ' line that some broken mailers
epg [Sun, 25 Aug 2002 06:50:37 +0000 (06:50 +0000)]
(deliver): Check for and strip 'From ' line that some broken mailers
(such as Postfix) add as the first line of input.

23 years ago(deliver): Handle errors from read(2) on stdin.
epg [Sun, 25 Aug 2002 06:27:11 +0000 (06:27 +0000)]
(deliver): Handle errors from read(2) on stdin.

23 years ago(deliver): Create message files with mode 0600 instead of 0644.
epg [Sun, 25 Aug 2002 02:44:45 +0000 (02:44 +0000)]
(deliver): Create message files with mode 0600 instead of 0644.

23 years ago(main): Create the err directory before trying to store an error
epg [Sat, 24 Aug 2002 18:19:05 +0000 (18:19 +0000)]
(main): Create the err directory before trying to store an error
message in it.

23 years ago(main): Don't assume the current directory is the user's home
epg [Thu, 22 Aug 2002 04:08:30 +0000 (04:08 +0000)]
(main): Don't assume the current directory is the user's home
directory.  Get the HOME environment variable and chdir(2) there.

23 years ago(LDFLAGS): Set to -static.
epg [Thu, 22 Aug 2002 03:26:50 +0000 (03:26 +0000)]
(LDFLAGS): Set to -static.

23 years agoAdd program description comment at the top.
epg [Thu, 22 Aug 2002 03:25:28 +0000 (03:25 +0000)]
Add program description comment at the top.

23 years ago(rcsid): New global char[].
epg [Wed, 21 Aug 2002 07:20:34 +0000 (07:20 +0000)]
(rcsid): New global char[].

(main): Print rcsid and exit if -v is the first argument.

23 years agoSet svn:keywords to 'Id'.
epg [Wed, 21 Aug 2002 06:45:09 +0000 (06:45 +0000)]
Set svn:keywords to 'Id'.

23 years ago(main): Use execv(3) instead of execvp(3).
epg [Tue, 20 Aug 2002 22:36:00 +0000 (22:36 +0000)]
(main): Use execv(3) instead of execvp(3).

23 years agoInclude <limits.h>.
epg [Tue, 20 Aug 2002 05:46:34 +0000 (05:46 +0000)]
Include <limits.h>.

Define HOST_NAME_MAX if not set.  Use it instead of 64 for
gethostname(3).

Create new macro TMPNAMLEN for declaring maildir filename strings.

23 years agoNew program.
epg [Tue, 20 Aug 2002 05:07:37 +0000 (05:07 +0000)]
New program.

23 years ago(no commit message)
<> [Tue, 20 Aug 2002 05:07:36 +0000 (05:07 +0000)]