.irbrc
author Mahlon E. Smith <mahlon@martini.nu>
Fri, 03 Feb 2017 10:52:46 -0800
changeset 13 a03c08c289e9
parent 6 66beb495a861
permissions -rw-r--r--
Multiple changes. - Start converting from from the old 'config' file format where applicable. - Port the ezmlm address hashing algorithm for fast email lookups - Add subscription and unsubscription for primary and behavioral dirs - Add a safety check for writes to the list directory

#!/usr/bin/ruby -*- ruby -*-

BEGIN {
	require 'pathname'
	basedir = Pathname.new( __FILE__ ).dirname.expand_path
	libdir = basedir + "lib"

	puts ">>> Adding #{libdir} to load path..."
	$LOAD_PATH.unshift( libdir.to_s )

	require basedir + 'utils'
	include UtilityFunctions
}


# Try to require the 'thingfish' library
begin
	require 'ezmlm'
rescue => e
	$stderr.puts "Ack! Ezmlm library failed to load: #{e.message}\n\t" +
		e.backtrace.join( "\n\t" )
end