CVS log for odmrd/odmrd

[BACK] Up to [Local Repository] / odmrd

Request diff between arbitrary revisions


Keyword substitution: kv
Default branch: MAIN


Revision 1.63: download - view: text, markup, annotated - select for diffs
Mon Oct 15 13:50:32 2007 UTC (4 years, 7 months ago) by james
Branches: MAIN
CVS tags: HEAD
Diff to: previous 1.62: preferred, colored
Changes since revision 1.62: +8 -14 lines
New TLDs have all sorts of names -- make regex's test for valid domain name
  without assuming a particular format for the TLD part (.museum anyone?).
Update copyright date.

Revision 1.62: download - view: text, markup, annotated - select for diffs
Fri Sep 2 11:57:12 2005 UTC (6 years, 8 months ago) by james
Branches: MAIN
Diff to: previous 1.61: preferred, colored
Changes since revision 1.61: +176 -37 lines
Reorder subroutines to group related subs, and comment each related group.

Revision 1.61: download - view: text, markup, annotated - select for diffs
Thu Sep 1 16:38:05 2005 UTC (6 years, 8 months ago) by james
Branches: MAIN
Diff to: previous 1.60: preferred, colored
Changes since revision 1.60: +82 -61 lines
Clean up main loop: move ALRM sig handler setting into &serverloop() and
  &clientloop().
Clean up the message sending loop in &clientloop(): call new &rp_dt() to get
  Return-Path and Delivered-To, which calls &mail_header() to create the
  Mail::Header object.

Revision 1.60: download - view: text, markup, annotated - select for diffs
Thu Sep 1 15:45:22 2005 UTC (6 years, 8 months ago) by james
Branches: MAIN
Diff to: previous 1.59: preferred, colored
Changes since revision 1.59: +69 -59 lines
Clean up startup code: new &startup() replaces most of &logging(), which now just
  establishes logging. New &sig_handlers() for, well, sig handlers.
Fix &qmail_config() so that it doesn't try to use $err before &logging() has
  defined it.
Tiny change to scalar assignment in &maildir().

Revision 1.59: download - view: text, markup, annotated - select for diffs
Thu Sep 1 14:46:59 2005 UTC (6 years, 8 months ago) by james
Branches: MAIN
Diff to: previous 1.58: preferred, colored
Changes since revision 1.58: +24 -27 lines
Replace direct use of &logging() as a configuration tunable with a $logging scalar.
Tidy &msg_list code and its interaction with &dir_scan - &dir_scan now returns a single
  list reference or false instead of a two element list.

Revision 1.58: download - view: text, markup, annotated - select for diffs
Thu Sep 1 13:43:24 2005 UTC (6 years, 8 months ago) by james
Branches: MAIN
Diff to: previous 1.57: preferred, colored
Changes since revision 1.57: +42 -44 lines
Combine multiple calls to substr into a &cut() sub.
Tidy more of the debugging messages, remove unnecessary ones and fix a typo
  calling a `debugr' function.
Break up long line strings.
Reorder the tests when looking at ATRN command.
Combine some `assign then test' into a single statement.

Revision 1.57: download - view: text, markup, annotated - select for diffs
Tue Aug 30 18:01:31 2005 UTC (6 years, 8 months ago) by james
Branches: MAIN
Diff to: previous 1.56: preferred, colored
Changes since revision 1.56: +75 -78 lines
Make &debug() to tidy up debug message creation.

Revision 1.56: download - view: text, markup, annotated - select for diffs
Tue Aug 30 17:33:25 2005 UTC (6 years, 8 months ago) by james
Branches: MAIN
Diff to: previous 1.55: preferred, colored
Changes since revision 1.55: +4 -5 lines
Bug: Fix end-of-header regexp.
Drop useless debug message.

Revision 1.55: download - view: text, markup, annotated - select for diffs
Thu Dec 30 15:39:07 2004 UTC (7 years, 4 months ago) by james
Branches: MAIN
CVS tags: RELEASE_0_13
Diff to: previous 1.54: preferred, colored
Changes since revision 1.54: +11 -11 lines
Reverse the order of $bouncerecipient checks to test the more likely
  outcome first.

Revision 1.54: download - view: text, markup, annotated - select for diffs
Mon Jul 19 17:24:49 2004 UTC (7 years, 10 months ago) by james
Branches: MAIN
Diff to: previous 1.53: preferred, colored
Changes since revision 1.53: +11 -10 lines
Include the line number for 'failed encoding' errors, and comments
  referring to RFC2821 2.3.7 and RFC2822 2.3.
Put 'ERROR' in the errors that cause odmrd to die().

Revision 1.53: download - view: text, markup, annotated - select for diffs
Tue Jul 13 11:16:18 2004 UTC (7 years, 10 months ago) by james
Branches: MAIN
Diff to: previous 1.52: preferred, colored
Changes since revision 1.52: +6 -5 lines
Bug: the regular expressions for a valid domain accepted a max of four
  characters in a TLD name. Not much good for .museum users!

Revision 1.52: download - view: text, markup, annotated - select for diffs
Mon Jul 12 22:32:13 2004 UTC (7 years, 10 months ago) by james
Branches: MAIN
Diff to: previous 1.51: preferred, colored
Changes since revision 1.51: +13 -13 lines
Improve some debug messages.

Revision 1.51: download - view: text, markup, annotated - select for diffs
Mon Jul 12 22:16:21 2004 UTC (7 years, 10 months ago) by james
Branches: MAIN
Diff to: previous 1.50: preferred, colored
Changes since revision 1.50: +3 -12 lines
Don't wait for a response after sending QUIT.

Revision 1.50: download - view: text, markup, annotated - select for diffs
Mon Jul 12 18:34:13 2004 UTC (7 years, 10 months ago) by james
Branches: MAIN
Diff to: previous 1.49: preferred, colored
Changes since revision 1.49: +30 -23 lines
Clarify and add comments.

Revision 1.49: download - view: text, markup, annotated - select for diffs
Mon Jul 12 17:10:27 2004 UTC (7 years, 10 months ago) by james
Branches: MAIN
Diff to: previous 1.48: preferred, colored
Changes since revision 1.48: +5 -5 lines
Bug: Assigning result of sockaddr_in() to @_ overwrites the argument to
	logging() sub. Thanks to Gerald Villemure.

Revision 1.48: download - view: text, markup, annotated - select for diffs
Mon Oct 13 11:22:29 2003 UTC (8 years, 7 months ago) by james
Branches: MAIN
CVS tags: RELEASE_0_12
Diff to: previous 1.47: preferred, colored
Changes since revision 1.47: +4 -3 lines
remove() triple bounce files.

Revision 1.47: download - view: text, markup, annotated - select for diffs
Mon May 26 14:20:37 2003 UTC (9 years ago) by james
Branches: MAIN
Diff to: previous 1.46: preferred, colored
Changes since revision 1.46: +4 -4 lines
Make the warning text from &warn_skipping() a little more generic so it
  doesn't look out of place when &qmailconf() calls it.

Revision 1.46: download - view: text, markup, annotated - select for diffs
Tue May 6 18:10:48 2003 UTC (9 years ago) by james
Branches: MAIN
Diff to: previous 1.45: preferred, colored
Changes since revision 1.45: +5 -3 lines
Use &warn_skipping() if we have to barf out of &data() because of
  a message file containing CRLF.

Revision 1.45: download - view: text, markup, annotated - select for diffs
Sat May 3 22:31:31 2003 UTC (9 years ago) by james
Branches: MAIN
Diff to: previous 1.44: preferred, colored
Changes since revision 1.44: +33 -19 lines
Ekk another speedup out of the message reading loop in &data(). Use
  seperate loops for the header and the body, the latter requiring none
  of the header checking tests, regexes, and whatnot.
``From '' header lines don't happen here, so don't bother checking for
  them (in &data()).

Revision 1.44: download - view: text, markup, annotated - select for diffs
Fri May 2 21:32:15 2003 UTC (9 years ago) by james
Branches: MAIN
Diff to: previous 1.43: preferred, colored
Changes since revision 1.43: +6 -6 lines
Emphasize the meaning of '$secretfield = "passwd"'

Revision 1.43: download - view: text, markup, annotated - select for diffs
Wed Apr 30 11:42:27 2003 UTC (9 years ago) by james
Branches: MAIN
Diff to: previous 1.42: preferred, colored
Changes since revision 1.42: +29 -21 lines
Consolidate four tests on $header to one test, in &data().
Combine a number of repeating 'if opt_D' constructs.

Revision 1.42: download - view: text, markup, annotated - select for diffs
Mon Mar 31 17:41:07 2003 UTC (9 years, 1 month ago) by james
Branches: MAIN
Diff to: previous 1.41: preferred, colored
Changes since revision 1.41: +5 -3 lines
Note discrepancies w.r.t. RFC2821.

Revision 1.41: download - view: text, markup, annotated - select for diffs
Thu Feb 27 13:12:05 2003 UTC (9 years, 2 months ago) by james
Branches: MAIN
Diff to: previous 1.40: preferred, colored
Changes since revision 1.40: +5 -3 lines
Log the values of $require_flag and $secretfield when debugging.

Revision 1.40: download - view: text, markup, annotated - select for diffs
Mon Feb 3 12:32:02 2003 UTC (9 years, 3 months ago) by james
Branches: MAIN
Diff to: previous 1.39: preferred, colored
Changes since revision 1.39: +3 -3 lines
Slightly neater logging of rcs rev. in debugging output.

Revision 1.39: download - view: text, markup, annotated - select for diffs
Tue Jan 28 12:14:16 2003 UTC (9 years, 3 months ago) by james
Branches: MAIN
Diff to: previous 1.38: preferred, colored
Changes since revision 1.38: +24 -3 lines
Add &warn_skipping() to output a clear warning for messages that can't be
  delivered due to some fault; bad/absent headers, empty, etc.
Sprinkle &warn_skipping() liberally.

Revision 1.38: download - view: text, markup, annotated - select for diffs
Thu Jan 23 18:30:31 2003 UTC (9 years, 4 months ago) by james
Branches: MAIN
CVS tags: RELEASE_0_11
Diff to: previous 1.37: preferred, colored
Changes since revision 1.37: +4 -4 lines
undef the return from &isdomain() (will generate a warning if it's ever
  inadvertantly used).

Revision 1.37: download - view: text, markup, annotated - select for diffs
Wed Jan 22 14:28:19 2003 UTC (9 years, 4 months ago) by james
Branches: MAIN
Diff to: previous 1.36: preferred, colored
Changes since revision 1.36: +10 -10 lines
Use SMTP status code from first line of response instead of last line, as
  per qmail-remote. Also saves repeated assignment to $status.
Reformat some comments.

Revision 1.36: download - view: text, markup, annotated - select for diffs
Wed Jan 22 13:41:20 2003 UTC (9 years, 4 months ago) by james
Branches: MAIN
Diff to: previous 1.35: preferred, colored
Changes since revision 1.35: +16 -7 lines
Don't manipulate $rp and $dt until we've verified that header->get gave
  us a sensible answer.

Revision 1.35: download - view: text, markup, annotated - select for diffs
Wed Jan 22 12:34:05 2003 UTC (9 years, 4 months ago) by james
Branches: MAIN
Diff to: previous 1.34: preferred, colored
Changes since revision 1.34: +31 -60 lines
Move repeated $state resets to the appropriate sub's.
Filehandle list was over-complicated. Drop &add_fh() and &close_fh() in
  favour of a modified &close_all_fh() that calls close on the individual
  filehandles that may be open.
Explicitly close the MSG filehandle if we hit a CRLF encode problem in
  &data().

Revision 1.34: download - view: text, markup, annotated - select for diffs
Tue Jan 21 17:26:20 2003 UTC (9 years, 4 months ago) by james
Branches: MAIN
Diff to: previous 1.33: preferred, colored
Changes since revision 1.33: +15 -12 lines
Wrap the pop+close operation into a &close_fh() sub.
&close_all_fh() will use closedir if we still have a dirhandle open on 'D'.

Revision 1.33: download - view: text, markup, annotated - select for diffs
Tue Jan 21 17:04:19 2003 UTC (9 years, 4 months ago) by james
Branches: MAIN
Diff to: previous 1.32: preferred, colored
Changes since revision 1.32: +38 -15 lines
Debug sub's don't need trailing semi-colons anymore.
Use @fh as a stack to record open filehandles, &add_fh() adds to top of
  stack, use &close_all_fh() in END block to ensure all filehandles are
  explicitly closed upon exit. pperl's --no-cleanup is now a realistic
  option.

Revision 1.32: download - view: text, markup, annotated - select for diffs
Thu Jan 16 19:24:45 2003 UTC (9 years, 4 months ago) by james
Branches: MAIN
Diff to: previous 1.31: preferred, colored
Changes since revision 1.31: +4 -4 lines
Don't commit to CVS with a pperl shebang.

Revision 1.31: download - view: text, markup, annotated - select for diffs
Thu Jan 16 19:04:13 2003 UTC (9 years, 4 months ago) by james
Branches: MAIN
Diff to: previous 1.30: preferred, colored
Changes since revision 1.30: +6 -6 lines
Bug: Missing prototypes for &sig_nodebug(), &sig_debug() and &dir_scan().

Revision 1.30: download - view: text, markup, annotated - select for diffs
Thu Jan 16 17:27:42 2003 UTC (9 years, 4 months ago) by james
Branches: MAIN
Diff to: previous 1.29: preferred, colored
Changes since revision 1.29: +126 -158 lines
Big changes, on the road to a new release ...
Use the vpopmail.pm module now. It has limited usefulness. Patch submitted
  to author to add what we need. Hope to be able to drop CDB_File.pm if
  patch is accepted.
As a consequence of above, &vopmailuser() is removed.
As a consequence of above, &homedir() is removed. &homedir() was
  broken, not taking into account vpopmail's hashing of directories.
Update &cdb_auth() to use the clear_text field for secrets -- looked up
  in vpasswd.cdb. Use vpopmail.pm for pw_gecos and pw_dir.
$usegecos is gone, replaced by $secretfield.
$header->get may fail. Don't use $dt before checking it's TRUE.
&smtp_read() logs $state when receives junk input.
Add /s op. to &stdin() s///, and omit chomp.
Formatting changes to single statement if's.
&has_access() into a one-liner.
We know $mdir is TRUE in &maildir(), don't waste time checking.
Rewrite &msg_list(). Push the real work into a new &dir_scan(), and
  call it twice so we now read Maildir/cur also. Since we read cur,
  permit colons in file names.
Chdir to / on startup.
Make USR{1,2} sig. handlers into named sub's so they can be reinstalled.

Revision 1.29: download - view: text, markup, annotated - select for diffs
Wed Dec 11 14:50:11 2002 UTC (9 years, 5 months ago) by james
Branches: MAIN
CVS tags: RELEASE_0_10
Diff to: previous 1.28: preferred, colored
Changes since revision 1.28: +40 -7 lines
Add support for using V_USERx mailbox flags to enable/disable ODMR access
 to a mailbox. Enable this feature by default.

Revision 1.28: download - view: text, markup, annotated - select for diffs
Thu Oct 10 10:56:44 2002 UTC (9 years, 7 months ago) by james
Branches: MAIN
Diff to: previous 1.27: preferred, colored
Changes since revision 1.27: +6 -5 lines
Minor comment changes.

Revision 1.27: download - view: text, markup, annotated - select for diffs
Tue Oct 8 10:37:31 2002 UTC (9 years, 7 months ago) by james
Branches: MAIN
CVS tags: RELEASE_0_9
Diff to: previous 1.26: preferred, colored
Changes since revision 1.26: +34 -33 lines
Move STDIN input stuff to &stdin() to ensure consistent input handling.
Bug: (of sorts) don't getpeername() if STDIN is a tty.
Be fascist about CRLF on input.
Bug: remotehost wasn't mentioned in 'does not like recipient' bounce msg.
Bug: Fix taint-ness failure dependency in unlink() in &bounce().
Pause for 1sec. in &needauth(), &b64fail() and &unimp().

Revision 1.26: download - view: text, markup, annotated - select for diffs
Fri Sep 6 15:11:55 2002 UTC (9 years, 8 months ago) by james
Branches: MAIN
CVS tags: RELEASE_0_8
Diff to: previous 1.25: preferred, colored
Changes since revision 1.25: +13 -7 lines
Suck in Socket.pm and use getpeername() to get remote side's IP address.
 Log this in bounce messages.
Default to 'vpopmail' for vpopmail username.

Revision 1.25: download - view: text, markup, annotated - select for diffs
Wed Aug 28 10:27:52 2002 UTC (9 years, 8 months ago) by james
Branches: MAIN
Diff to: previous 1.24: preferred, colored
Changes since revision 1.24: +6 -5 lines
Log multiple domain ATRNs.
Bug: &cdb_auth() tested $usegecos for the wrong element of its return
 list. $usegecos affected which field to use as the Maildir path, not
 secret.

Revision 1.24: download - view: text, markup, annotated - select for diffs
Tue Aug 27 13:21:34 2002 UTC (9 years, 8 months ago) by james
Branches: MAIN
CVS tags: RELEASE_0_7
Diff to: previous 1.23: preferred, colored
Changes since revision 1.23: +5 -4 lines
odmrlifetime of zero allows messages to remain in mailbox indefinitely.

Revision 1.23: download - view: text, markup, annotated - select for diffs
Sun Aug 25 16:58:36 2002 UTC (9 years, 9 months ago) by james
Branches: MAIN
CVS tags: RELEASE_0_6
Diff to: previous 1.22: preferred, colored
Changes since revision 1.22: +4 -4 lines
odmrlifetime should be two weeks; 1209600s.

Revision 1.22: download - view: text, markup, annotated - select for diffs
Sun Aug 25 16:34:14 2002 UTC (9 years, 9 months ago) by james
Branches: MAIN
Diff to: previous 1.21: preferred, colored
Changes since revision 1.21: +19 -31 lines
Be liberal in what we accept in &auth().
&quit() prototype wasn't accurate.
Delay for 3 sec's for refused ATRNs.
Minor comment and style changes.

Revision 1.21: download - view: text, markup, annotated - select for diffs
Tue Aug 20 13:50:18 2002 UTC (9 years, 9 months ago) by james
Branches: MAIN
Diff to: previous 1.20: preferred, colored
Changes since revision 1.20: +4 -4 lines
Log into syslog using mail facility.

Revision 1.20: download - view: text, markup, annotated - select for diffs
Fri Aug 16 16:42:09 2002 UTC (9 years, 9 months ago) by james
Branches: MAIN
Diff to: previous 1.19: preferred, colored
Changes since revision 1.19: +13 -8 lines
RFC2821 says to give a 501 response to QUIT cmd. with arguments.
Change our response for bad commands to a 500 instead of 502.
2821 says to wait 10 mins. for the message acceptance reply
  after DATA.

Revision 1.19: download - view: text, markup, annotated - select for diffs
Fri Aug 16 14:15:23 2002 UTC (9 years, 9 months ago) by james
Branches: MAIN
Diff to: previous 1.18: preferred, colored
Changes since revision 1.18: +443 -448 lines
Reorder lots of subroutines to have related subs next to each other.
Move the calls to sleep into &authfail() itself. Duh! Why didn't I
  think of that when I first put them in?

Revision 1.18: download - view: text, markup, annotated - select for diffs
Thu Aug 15 17:03:28 2002 UTC (9 years, 9 months ago) by james
Branches: MAIN
CVS tags: RELEASE_0_5
Diff to: previous 1.17: preferred, colored
Changes since revision 1.17: +8 -4 lines
Forward declare four subs that perl 5.6.1 warns ``foo() called too early
  to check prototype'' about.

Revision 1.17: download - view: text, markup, annotated - select for diffs
Thu Aug 15 14:28:51 2002 UTC (9 years, 9 months ago) by james
Branches: MAIN
Diff to: previous 1.16: preferred, colored
Changes since revision 1.16: +26 -24 lines
Delay for three seconds when authentication fails. Make password
  guessing a little more awkward.
Replace some nested foreach->if->foo type statements with
  foreach (grep { ... })

Revision 1.16: download - view: text, markup, annotated - select for diffs
Wed Aug 14 20:50:59 2002 UTC (9 years, 9 months ago) by james
Branches: MAIN
CVS tags: RELEASE_0_4
Diff to: previous 1.15: preferred, colored
Changes since revision 1.15: +6 -4 lines
Log sender and recipient before and after sending in &clientloop().

Revision 1.15: download - view: text, markup, annotated - select for diffs
Wed Aug 14 20:10:21 2002 UTC (9 years, 9 months ago) by james
Branches: MAIN
Diff to: previous 1.14: preferred, colored
Changes since revision 1.14: +7 -7 lines
Improve log messages in &atrn() for clarity, and change some debug
  messages to non-debug -- and vice versa.

Revision 1.14: download - view: text, markup, annotated - select for diffs
Wed Aug 14 16:55:07 2002 UTC (9 years, 9 months ago) by james
Branches: MAIN
Diff to: previous 1.13: preferred, colored
Changes since revision 1.13: +85 -95 lines
Reformat some comments and retab some code, trim out blank lines.
Improve non-debug log messages for clarity and consistency.
Use ``shift || ""'' liberally.
Reset timeout counter during reading of message file in &data() and
  before close of pipe to $mta.
Reduce timeout in &clientquit() to 45s.

Revision 1.13: download - view: text, markup, annotated - select for diffs
Tue Aug 13 11:53:12 2002 UTC (9 years, 9 months ago) by james
Branches: MAIN
CVS tags: RELEASE_0_3
Diff to: previous 1.12: preferred, colored
Changes since revision 1.12: +16 -6 lines
Don't bother trying to decode response strings that aren't a multiple
  of four characters in length. MIME::Base64 would work anyway, but it
  logs an annoying warning message.
Use &printable() on the results of decode_base64() -- it can return junk
  if given junk input.
Bug: don't assume the split() into @authuser returned two elements.
Create &b64fail() for Base64 decode failure message.

Revision 1.12: download - view: text, markup, annotated - select for diffs
Tue Aug 13 10:18:02 2002 UTC (9 years, 9 months ago) by james
Branches: MAIN
Diff to: previous 1.11: preferred, colored
Changes since revision 1.11: +3 -2 lines
Add RCS revision number to debugging output.

Revision 1.11: download - view: text, markup, annotated - select for diffs
Tue Aug 13 10:05:51 2002 UTC (9 years, 9 months ago) by james
Branches: MAIN
Diff to: previous 1.10: preferred, colored
Changes since revision 1.10: +19 -41 lines
Remove eval/die block in &data(). On rereading docs, it's not necessary.
  We can send the final dot and check the reponse then. We don't need to
  check for a response during message transmission. No more waiting for
  one second per message!
Reword some comments for clarity's sake.

Revision 1.10: download - view: text, markup, annotated - select for diffs
Mon Aug 12 16:43:17 2002 UTC (9 years, 9 months ago) by james
Branches: MAIN
Diff to: previous 1.9: preferred, colored
Changes since revision 1.9: +26 -16 lines
Don't set $| for input filehandles. It has no effect!
Don't set $| for pipe to qmail-inject. Let buffering do its thing. The
  close() will flush buffers when we're done.
Weed out non-printing characters. &printable() is applied to all input
  from STDIN. Might also need to use it on the results from
  Mail::Header.
Make bounce error messages a little more verbose and qmail-like.
&smtp_read() condenses consecutive whitespace, and won't accept more than
  150 lines in a response. Otherwise it'd take in data until the timeout
  fired.
Minor change in debug output from &logging() and comment in
  &qmail_config().

Revision 1.9: download - view: text, markup, annotated - select for diffs
Wed Aug 7 17:05:02 2002 UTC (9 years, 9 months ago) by james
Branches: MAIN
Diff to: previous 1.8: preferred, colored
Changes since revision 1.8: +8 -8 lines
rand() over a wider range. Still not happy with srand() though ...
Disable buffering on stdout and stderr before we output anything.
Clarify comment wrt to repeated assignment to $Sys::Syslog::host.

Revision 1.8: download - view: text, markup, annotated - select for diffs
Tue Aug 6 15:07:16 2002 UTC (9 years, 9 months ago) by james
Branches: MAIN
Diff to: previous 1.7: preferred, colored
Changes since revision 1.7: +21 -19 lines
Use shift(" ", ...) in place of shift(/\s+/, ...)
Seed rand() with data that's fractionally more than trivial to guess.
&msg_list() shouldn't return a ref. to @files in an error. @files has
  no reason to persist.
Log refused ATRNs.
Only set $header to 0 if it's currently 1, in &data().
Log missing vpopmail home dirs in &vpopmaildir().

Revision 1.7: download - view: text, markup, annotated - select for diffs
Fri Aug 2 09:00:13 2002 UTC (9 years, 9 months ago) by james
Branches: MAIN
CVS tags: RELEASE_0_2
Diff to: previous 1.6: preferred, colored
Changes since revision 1.6: +29 -23 lines
Verify $state after both &clientloop() and &serverloop().
&clientquit() no longer calls exit(). Must call exit explicitly. We
  need to &clientquit() to close the network connection but we need
  to stay running so we can &bounce().
&clientquit() prototype was incorrect. Increased its timeout too.
Enabled message bouncing by default.

Revision 1.6: download - view: text, markup, annotated - select for diffs
Thu Aug 1 12:55:36 2002 UTC (9 years, 9 months ago) by james
Branches: MAIN
Diff to: previous 1.5: preferred, colored
Changes since revision 1.5: +13 -16 lines
Textual changes to comments and remove some dead whitespace.
Place arguments to tie() in ()'s.
Typo in a &msg_list() debug message.
Bug: &isemail() checked for ``postmaster'' instead of ``<postmaster>''.

Revision 1.5: download - view: text, markup, annotated - select for diffs
Thu Aug 1 11:48:32 2002 UTC (9 years, 9 months ago) by james
Branches: MAIN
Diff to: previous 1.4: preferred, colored
Changes since revision 1.4: +44 -28 lines
More precedence changes; ||, && replaced with or, and; a few more
  ()'s removed.
&clientgreet() will now fallback to HELO if EHLO fails.

Revision 1.4: download - view: text, markup, annotated - select for diffs
Thu Aug 1 11:04:38 2002 UTC (9 years, 9 months ago) by james
Branches: MAIN
Diff to: previous 1.3: preferred, colored
Changes since revision 1.3: +7 -8 lines
Minor style changes; remove unnecessary ()'s and editing a comment here
  and there.

Revision 1.3: download - view: text, markup, annotated - select for diffs
Thu Aug 1 10:54:35 2002 UTC (9 years, 9 months ago) by james
Branches: MAIN
Diff to: previous 1.2: preferred, colored
Changes since revision 1.2: +134 -132 lines
Prototype all named subroutines.
Style; remove unnecessary ()'s and let normal precedence do its thing.
Bug: Messages which were permanently rejected (and so added to @bounces
  to be bounced) which were also too old were added to @bounces twice.
  Once when the delivery failed and a second time when we check the
  file age after the delivery attempt.
Bug: &bounce() wasn't removing queue files after sending bounces.
&data() doesn't need to stat() file files. They've been stat'd aleady
  and we catch any error from open() anyway.
Pattern for removing Return-Path wasn't accurate.
Have most subroutines return an explicit return value.
Move some repeatedly used &put()'s to their own subs; &atrnfail(),
  &authfail()
Rename &duplicate() to &dup().
Save a few scalars in &qmail_config().
Bug: $err was used _before_ the ref($err) test in &logging().

Revision 1.2: download - view: text, markup, annotated - select for diffs
Tue Jul 30 13:01:39 2002 UTC (9 years, 9 months ago) by james
Branches: MAIN
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +99 -71 lines
Pull in Sys::Syslog using a require/import only if needed. Save 400K
  mem.
Revisit timeouts. Lengthen most to 5 minutes and ensure we reset them
  after getting input so that a timer doesn't fire while we're
  processing the input.
Bug: Do CRLF and NULL s/// replaces globally.
Reorder some &&'s to short-circuit better.
Ensure we don't restore an ALRM timer of 0 after eval/die in &data()
Bug: &data() didn't return a list on success.
Bug: &smtp_read() tested for !4 instead of !$4. Also misinterpreted
  some broken input.
Bring wayward syscall error messages inline with
  majority:  foo($bar): $!
Add rand() into challenge string. Adds a little extra unpredictability.
  Not perfect, by any means, but it's useful. See note in &logging().
Save a few variables by their reuse or (ab)using $_.

Revision 1.1: download - view: text, markup, annotated - select for diffs
Mon Jul 22 17:24:13 2002 UTC (9 years, 10 months ago) by james
Branches: MAIN
CVS tags: RELEASE_0_1
Initial import.

Diff request

This form allows you to request diffs between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.

Log view options

James Raftery <james@now.ie>