]>
diplodocus.org Git - mdeliver/log
summary |
shortlog | log |
commit |
commitdiff |
tree
first ⋅ prev ⋅ next
epg [Sat, 30 Nov 2002 08:11:36 +0000 (08:11 +0000)]
Go back to using fork(2), since using vfork caused a segfault.
Maybe i misunderstood something. Worry about it later.
epg [Sat, 30 Nov 2002 07:25:13 +0000 (07:25 +0000)]
(TMPNAMLEN): Whoops, forgot to account for the two dots in the temp
file name.
epg [Tue, 17 Sep 2002 12:45:16 +0000 (12:45 +0000)]
Use vfork(2) instead of fork(2).
epg [Fri, 13 Sep 2002 02:16:06 +0000 (02:16 +0000)]
Make run_processor work again.
epg [Fri, 13 Sep 2002 01:49:16 +0000 (01:49 +0000)]
(run_processor): While there's nothing we can do if any of the
err-file-writing steps fail, there's no reason we can't be a little
more careful in doing it. Do so (including using fflush, fsync,
and close).
epg [Fri, 13 Sep 2002 01:43:09 +0000 (01:43 +0000)]
(run_processor): Now only takes a single argument, the filename of the
new message. The process to run is now hard-coded to be a dot-file in
the user's home directory.
(main): Now unconditionally call run_processor.
epg [Wed, 11 Sep 2002 02:12:04 +0000 (02:12 +0000)]
Rename copy_message to copy_file, document it, and make it slightly
more generic. Now i can share it with other programs (for example, my
portable install(1)).
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.
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.
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.
epg [Fri, 6 Sep 2002 06:32:49 +0000 (06:32 +0000)]
(get_filename): Handle failure cases for time(3) and gmtime(3).
epg [Fri, 6 Sep 2002 06:29:47 +0000 (06:29 +0000)]
(get_filename): Restore errno before returning.
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.
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.
epg [Sun, 25 Aug 2002 07:22:41 +0000 (07:22 +0000)]
Document the get_filename, strip_from, and copy_message functions.
epg [Sun, 25 Aug 2002 07:11:23 +0000 (07:11 +0000)]
(get_filename): Check gethostname(3) return value.
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.
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.
epg [Sun, 25 Aug 2002 06:27:11 +0000 (06:27 +0000)]
(deliver): Handle errors from read(2) on stdin.
epg [Sun, 25 Aug 2002 02:44:45 +0000 (02:44 +0000)]
(deliver): Create message files with mode 0600 instead of 0644.
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.
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.
epg [Thu, 22 Aug 2002 03:26:50 +0000 (03:26 +0000)]
(LDFLAGS): Set to -static.
epg [Thu, 22 Aug 2002 03:25:28 +0000 (03:25 +0000)]
Add program description comment at the top.
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.
epg [Wed, 21 Aug 2002 06:45:09 +0000 (06:45 +0000)]
Set svn:keywords to 'Id'.
epg [Tue, 20 Aug 2002 22:36:00 +0000 (22:36 +0000)]
(main): Use execv(3) instead of execvp(3).
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.
epg [Tue, 20 Aug 2002 05:07:37 +0000 (05:07 +0000)]
New program.
<> [Tue, 20 Aug 2002 05:07:36 +0000 (05:07 +0000)]