mirror of
https://github.com/jhillyerd/inbucket.git
synced 2025-12-17 17:47:03 +00:00
mime & util unit tests pass
added a sample of what the config should look like, may need tweaking once I actually try to parse & use it.
This commit is contained in:
44
conf/inbucket.conf
Normal file
44
conf/inbucket.conf
Normal file
@@ -0,0 +1,44 @@
|
|||||||
|
# inbucket.conf
|
||||||
|
# Sample inbucket configuration
|
||||||
|
|
||||||
|
#############################################################################
|
||||||
|
[DEFAULT]
|
||||||
|
|
||||||
|
# Not used by directly, but is typically referenced below in %()s format.
|
||||||
|
install.dir=.
|
||||||
|
|
||||||
|
#############################################################################
|
||||||
|
[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=skynet
|
||||||
|
|
||||||
|
#############################################################################
|
||||||
|
[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
|
||||||
|
templates.dir=%(install.dir)s/themes/%(theme)/templates
|
||||||
|
|
||||||
|
# Path to the selected themes public (static) files
|
||||||
|
public.dir=%(install.dir)s/themes/%(theme)/public
|
||||||
|
|
||||||
|
#############################################################################
|
||||||
|
[datastore]
|
||||||
|
|
||||||
|
# Path to the datastore, mail will be written into subdirectories
|
||||||
|
path=/tmp/inbucket
|
||||||
@@ -79,7 +79,7 @@ func TestParseInlineHtml(t *testing.T) {
|
|||||||
// readMessage is a test utility function to fetch a mail.Message object.
|
// readMessage is a test utility function to fetch a mail.Message object.
|
||||||
func readMessage(filename string) *mail.Message {
|
func readMessage(filename string) *mail.Message {
|
||||||
// Open test email for parsing
|
// Open test email for parsing
|
||||||
raw, err := os.Open(filepath.Join("..", "..", "test-data", filename))
|
raw, err := os.Open(filepath.Join("test-data", filename))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
panic(fmt.Sprintf("Failed to open test data: %v", err))
|
panic(fmt.Sprintf("Failed to open test data: %v", err))
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user