From 5214f30f87aef7a3303c7bbecc9c930532f24db9 Mon Sep 17 00:00:00 2001 From: James Hillyerd Date: Mon, 12 Nov 2012 20:36:27 -0800 Subject: [PATCH] Add Windows config - Dist building powershell script - Sample config - Simple .bat launcher --- bin/dist-win.ps1 | Bin 0 -> 1600 bytes bin/inbucket.bat | 1 + etc/win-sample.conf | 82 ++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 83 insertions(+) create mode 100644 bin/dist-win.ps1 create mode 100644 bin/inbucket.bat create mode 100644 etc/win-sample.conf diff --git a/bin/dist-win.ps1 b/bin/dist-win.ps1 new file mode 100644 index 0000000000000000000000000000000000000000..555a71f94bcd2642030ad77798822463fbd03fe2 GIT binary patch literal 1600 zcmb7^O>fgc5QgWB#DB01hxCy2j>MsqP!Mf{0yk2jCUHrq9Y=NuMJ0b7c-~pIb-oJ7 zvUhiOX5M$c{PUMRvBZw8w8G{#wcIk!mo~F8>zv)luK9j;`4sukzPc>41sY>)YTsSq zqeAixiL6U@wLP{+{>oFuTUg6J+Pk}xyky+8>Brmabca zP@;Q^?hr}NZN#ZLi`Pr*+IxFzAFKyj;;3D0me^KqU7$Hb_rjj>oVeX9ZgMz?kvJ}F zf@O-gj99KYm*gY`FCa#=6Ht2KC2(w!tCF3(FInT=w#AY4$^7fRR`Gs2x|sDD92G|b zr_I{5;c~k-V=D{yk=@EZxxUU3cZFBwHAWdxwW`u77VCK)Ac>*xtPJ$;irA`Cl*jex z51m1C(mF(U!<(Ytrt12tyHdPPL7L!o2(u9$3p=zgNQ9CzN9yJ=vds>;uS_!w`WMWx ziaDsTuaPOE%5m)(h&hPb&5E2-onz+joQdc<(=a~^_o=B0^SdkZ0aM+y?x20c8@TR5 z>w|GbAD*#xh+Q>l|C!i-LtOXpH@u-oG4Sttg@*pecnE#7&gzO?G3g&RdN7VnPeRp% U+;{#y-|7`jjw<;-Tz4Y;2I$=f?*IS* literal 0 HcmV?d00001 diff --git a/bin/inbucket.bat b/bin/inbucket.bat new file mode 100644 index 0000000..0737139 --- /dev/null +++ b/bin/inbucket.bat @@ -0,0 +1 @@ +inbucket.exe etc\win-sample.conf \ No newline at end of file diff --git a/etc/win-sample.conf b/etc/win-sample.conf new file mode 100644 index 0000000..a6ea92b --- /dev/null +++ b/etc/win-sample.conf @@ -0,0 +1,82 @@ +# win-sample.conf +# Sample inbucket configuration for Windows + +############################################################################# +[DEFAULT] + +# Not used by directly, but is typically referenced below in %()s format. +install.dir=. + +############################################################################# +[logging] + +# Options from least to most verbose: ERROR, WARN, INFO, TRACE +level=INFO + +############################################################################# +[smtp] + +# IPv4 address to listen for SMTP connections on. +ip4.address=0.0.0.0 + +# IPv4 port to listen for SMTP connections on. +ip4.port=2500 + +# used in SMTP greeting +domain=inbucket.local + +# optional: mail sent to accounts at this domain will not be stored, +# for mixed use (content and load testing) +#domain.nostore=bitbucket.local + +# Maximum number of RCPT TO: addresses we allow from clients, the SMTP +# RFC recommends this be at least 100. +max.recipients=100 + +# How long we allow a network connection to be idle before hanging up on the +# client, SMTP RFC recommends at least 5 minutes (300 seconds). +max.idle.seconds=300 + +# Maximum allowable size of message body in bytes (including attachments) +max.message.bytes=2048000 + +# Should we place messages into the datastore, or just throw them away +# (for load testing): true or false +store.messages=true + +############################################################################# +[web] + +# IPv4 address to serve HTTP web interface on +ip4.address=0.0.0.0 + +# IPv4 port to serve HTTP web interface on +ip4.port=9000 + +# Name of web theme to use +theme=integral + +# Path to the selected themes template files +template.dir=%(install.dir)s\themes\%(theme)s\templates + +# Should we cache parsed templates (set to false during theme dev) +template.cache=true + +# Path to the selected themes public (static) files +public.dir=%(install.dir)s\themes\%(theme)s\public + +############################################################################# +[datastore] + +# Path to the datastore, mail will be written into subdirectories +path=.\inbucket-data + +# How many minutes after receipt should a message be stored until it's +# automatically purged. To retain messages until manually deleted, set this +# to 0 +retention.minutes=240 + +# How many milliseconds to sleep after purging messages from a mailbox. +# This should help reduce disk I/O when there are a large number of messages +# to purge. +retention.sleep.millis=100