summaryrefslogtreecommitdiff
path: root/email_gateway.cfg
blob: 05ad723d3f40fb48cda041885d7291817654c2e2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
; =====================
; Example Configuration
; =====================
; [form-key]
; to = you@example.com
; subject = My awesome contact form
; from = Contact Form <noreply@example.com>
; message = First line of the message
; redirect = /contact-thanks.html
; site = http://(?:www\.)?example.com
; spam.check = True
; spam.pickle_file = /etc/email_gateway_spam.pkl
; spam.min_spam_prob = 0.90

; ======================
; Required Configuration
; ======================
; INI section is the form key to be passed by the form
;
; These must all be specified in some form or the app breaks
;
; to -- Email address (comma separated list) to receive the email
; subject -- Email subject
; from -- Email sent from email
; message -- Static message subject
; redirect -- URL to redirect to
; site -- Regex to match against referrer header

; ===================
; Special Form Fields
; ===================
; mailer.form-key -- Form key from config file
; mailer.redirect -- Target for a redirect
; mailer.fields.ignore -- Ignored fields
; mailer.labels.* -- Labels for form fields

; mailer.fields.message -- Message field
; mailer.fields.subject -- Subject field

; mailer.subject -- Subject of message
; mailer.message -- Message

; spam.check -- Check message against spambayes? True/False
; spam.pickle_file -- Filename of pickle file
; spam.min_spam_prob -- Minimum probability to consider message to be spam